简体   繁体   English

部署特定的.war文件后,Apache Tomcat将无法完成启动

[英]Apache Tomcat will not complete startup after a certain .war File is deployed

I have a Java web application that I am trying to deploy to our company's application server. 我有一个Java Web应用程序,我正尝试将其部署到我们公司的应用程序服务器中。 It uses spring and spring-security. 它使用spring和spring-security。 Everything works correctly when I run the application in Tomcat from Eclipse but when I try and deploy the .war file into a standalone Tomcat instance the server does not even finish starting up. 当我从Eclipse在Tomcat中运行应用程序时,一切正常,但是当我尝试将.war文件部署到独立的Tomcat实例中时,服务器甚至无法完成启动。

These are the catalina logs from the last attempt: 这些是上次尝试的卡塔琳娜州日志:

Jan 30, 2014 1:16:39 PM org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded APR based Apache Tomcat Native library 1.1.23 using APR version 1.4.6.
Jan 30, 2014 1:16:39 PM org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random       [true].
Jan 30, 2014 1:16:39 PM org.apache.catalina.core.AprLifecycleListener initializeSSL
INFO: OpenSSL successfully initialized with version OpenSSL 1.0.0g 18 Jan 2012
Jan 30, 2014 1:16:40 PM org.apache.coyote.http11.Http11AprProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Jan 30, 2014 1:16:40 PM org.apache.coyote.ajp.AjpAprProtocol init
INFO: Initializing Coyote AJP/1.3 on ajp-8009
Jan 30, 2014 1:16:40 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2567 ms
Jan 30, 2014 1:16:40 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jan 30, 2014 1:16:40 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.36
Jan 30, 2014 1:16:41 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor host-manager.xml
Jan 30, 2014 1:16:41 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor manager.xml
Jan 30, 2014 1:16:41 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive MyApp.war

And then startup stops. 然后启动停止。

These are the localhost logs: 这些是localhost日志:

Jan 30, 2014 1:16:46 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext

And then nothing... 然后什么都没有...

All of the other log files for this last attempt are blank. 最后一次尝试的所有其他日志文件均为空白。

Any insight you guys might have would be greatly appreciated! 你们可能有任何见解将不胜感激!

This problem was caused by not setting the JAVA_OPTS property to point to my .ini files. 造成此问题的原因是未将JAVA_OPTS属性设置为指向我的.ini文件。

I included this in my startup script: 我将其包含在启动脚本中:

set JAVA_OPTS= -DLOGCONFIG=%CATALINA_HOME%\conf\logging.ini -DINIFILE=%CATALINA_HOME%\conf\webapps.ini

and it ran succesfully 它成功运行

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法在Tomcat管理器中启动已部署的War文件 - Deployed war file not starting in tomcat manager spring war文件部署到tomcat 9但没有正确重定向? - spring war file deployed to tomcat 9 but not redirecting properly? Tomcat 7:部署的war文件的缓存副本 - Tomcat 7: cached copy of war file deployed 使用多租户 org.apache.catalina.startup.HostConfig.deployWAR 在 tomcat 中部署 war 文件部署时出错 - Error to deploy war in tomcat with multitenant org.apache.catalina.startup.HostConfig.deployWAR Error during file deployment 类加载器如何在 Apache Tomcat 中部署的 WAR 中工作 - How does class loaders work in a WAR deployed in Apache Tomcat 删除根后如何访问部署在Tomcat Docker容器中的War File Build - How to access War File Build deployed in Tomcat Docker Container after deleting root 如何在Apache Tomcat上部署的java系统启动时自动启动一个函数 - how to start a function automatically on the system startup in java deployed on Apache Tomcat 在Apache Tomcat上部署WAR文件-不起作用 - Deploying WAR file on Apache Tomcat - Not working 创建后在Apache Tomcat上部署War文件 - Deploy war file on apache tomcat upon creation Apache Ant 如何将.war 文件部署到 Tomcat - How Apache Ant deploys .war file to Tomcat
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM