我遇到了Java Servlet应用程序的情况。最初创建了一个“dev”版本,然后在完成时我们创建了一个“test”,然后创建了一个“live”。所有3(开发,测试和实时)在我的开发PC上部署并运行良好。但是当我们转移到服务器时,开发和测试部署并开始正常但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
此致
AJF
答案 0 :(得分:0)
在server.xml中,您可以控制可以部署的应用程序以及方式。您可以从上下文(link here)控制许多选项。
让我举几个例子,在tomcat中输入server.xml
<Context docBase="AppName" path="/AnyAppContext" reloadable="false" crossContext="true" source="org.eclipse.jst.j2ee.server:AppName">
</Context>
现在,当tomcat加载时,它将在deployments文件夹(webapps / wtpwebapps)中搜索战争名称AppName.war
,并将其部署在上下文路径/AnyAppContext
上。现在,您的应用AppName.war
将在路径http://someHost:port/AnyAppContext
上提供。
现在针对您所面临的问题,确保所有3个应用程序都存在相关条目。检查路径和应用名称