我正在使用tomcat 7,並且我有一個webapp,它有1個配置文件& 1 hazelcast.xml文件在tomcat bin目錄中。當我啓動tomcat作爲從startup.bat進程catalina.timestamp.log顯示INFO: Configuring Hazelcast from 'C:\Program Files\Apache Software Foundation\Tomcat 7.0_ApacheTomcat7\bin\hazelcast.xml'.
和一切工作正常,但是當我啓動相同的webapp通過啓動tomcat作爲一個Windows服務它轉到tomcat主目錄並在這裏尋找文件INFO: Configuring Hazelcast from 'C:\Program Files\Apache Software Foundation\Tomcat 7.0_ApacheTomcat7\hazelcast.xml'.
Tomcat無法加載作爲Windows服務運行時的webapp
是否有我需要放置的任何jvm或tomcat選項?下面
是在Tomcat的性能
-Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 7.0_ApacheTomcat7
-Dcatalina.base=C:\Program Files\Apache Software Foundation\Tomcat 7.0_ApacheTomcat7
-Djava.endorsed.dirs=C:\Program Files\Apache Software Foundation\Tomcat 7.0_ApacheTomcat7\endorsed
-Djava.io.tmpdir=C:\Program Files\Apache Software Foundation\Tomcat 7.0_ApacheTomcat7\temp
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
-Djava.util.logging.config.file=C:\Program Files\Apache Software Foundation\Tomcat 7.0_ApacheTomcat7\conf\logging.properties