我遇到了Java Servlet应用程序的情况。最初创建了一个“ dev”版本,然后完成时,我们创建了“ test”然后是“ live”。所有这3个(开发,测试和实时)部署和运行在我的开发PC上都很好。但是,当我们转移到服务器时,Dev和Test会部署并正常启动,但是Live不会启动。我在两台机器上都使用相同版本的Java JRE和Tomcat(Windows XP开发PC和服务器上的Windows Server)。
有人可以告诉我这里可能出什么问题吗?
提前致谢
这是Tomcat控制台输出
07-Jan-2014 10:50:17 org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting propert
y 'source' to 'org.eclipse.jst.jee.server:Orion' did not find a matching propert
y.
07-Jan-2014 10:50:17 org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
07-Jan-2014 10:50:17 org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-nio-8443"]
07-Jan-2014 10:50:17 org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
INFO: Using a shared selector for servlet write/read
07-Jan-2014 10:50:17 org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
07-Jan-2014 10:50:17 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 911 ms
07-Jan-2014 10:50:17 org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
07-Jan-2014 10:50:17 org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.29
07-Jan-2014 10:50:22 com.sun.xml.ws.transport.http.servlet.WSServletDelegate <init>
INFO: WSSERVLET14: JAX-WS servlet initializing
07-Jan-2014 10:50:22 com.sun.xml.ws.transport.http.servlet.WSServletContextListener
contextInitialized
INFO: WSSERVLET12: JAX-WS context listener initializing
07-Jan-2014 10:50:22 com.sun.xml.ws.transport.http.servlet.WSServletContextListener
contextInitialized
INFO: WSSERVLET12: JAX-WS context listener initializing
07-Jan-2014 10:50:22 org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive C:\Apache\Tomcat 7.0\webapps\PPSLDev.war
07-Jan-2014 10:50:27 com.sun.xml.ws.transport.http.servlet.WSServletDelegate <init>
INFO: WSSERVLET14: JAX-WS servlet initializing
07-Jan-2014 10:50:27 com.sun.xml.ws.transport.http.servlet.WSServletContextListener
contextInitialized
INFO: WSSERVLET12: JAX-WS context listener initializing
07-Jan-2014 10:50:27 com.sun.xml.ws.transport.http.servlet.WSServletContextListener
contextInitialized
INFO: WSSERVLET12: JAX-WS context listener initializing
07-Jan-2014 10:50:27 org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive C:\Apache\Tomcat 7.0\webapps\PPSLTest.war
07-Jan-2014 10:50:31 com.sun.xml.ws.transport.http.servlet.WSServletDelegate <init>
INFO: WSSERVLET14: JAX-WS servlet initializing
07-Jan-2014 10:50:31 com.sun.xml.ws.transport.http.servlet.WSServletContextListener
contextInitialized
INFO: WSSERVLET12: JAX-WS context listener initializing
07-Jan-2014 10:50:31 com.sun.xml.ws.transport.http.servlet.WSServletContextListener
contextInitialized
INFO: WSSERVLET12: JAX-WS context listener initializing
07-Jan-2014 10:50:31 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\Apache\Tomcat 7.0\webapps\docs
07-Jan-2014 10:50:32 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\Apache\Tomcat 7.0\webapps\examples
07-Jan-2014 10:50:32 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\Apache\Tomcat 7.0\webapps\host-manager
07-Jan-2014 10:50:32 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\Apache\Tomcat 7.0\webapps\manager
07-Jan-2014 10:50:33 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\Apache\Tomcat 7.0\webapps\ROOT
07-Jan-2014 10:50:33 org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
07-Jan-2014 10:50:33 org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-nio-8443"]
07-Jan-2014 10:50:33 org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
07-Jan-2014 10:50:33 org.apache.catalina.startup.Catalina start
INFO: Server startup in 16115 ms
问候
联合会
在server.xml中,您可以控制可以部署的应用程序以及部署方式。您可以从上下文中控制许多选项(在此处链接)。
让我给你举一个可以在tomcat中输入server.xml的例子
<Context docBase="AppName" path="/AnyAppContext" reloadable="false" crossContext="true" source="org.eclipse.jst.j2ee.server:AppName">
</Context>
现在,当tomcat加载时,它将AppName.war
在Deployments文件夹(webapps / wtpwebapps)中搜索war名称并将其部署在上下文路径中/AnyAppContext
。因此,现在您的应用程序AppName.war
将在path可用http://someHost:port/AnyAppContext
。
现在针对您面临的问题,确保所有3个应用程序都存在相关条目。检查应用程序的路径和名称
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句