设为首页 收藏本站
查看: 2166|回复: 0

[经验分享] Eclipse中无法启动Apache Tomcat 7.0 Server

[复制链接]

尚未签到

发表于 2015-8-1 09:25:07 | 显示全部楼层 |阅读模式
问题

今天在使用SpringSource ToolSuite启动Tomcat时发现Eclipse WTP抛出这样的错误信息:
  
  
Server Tomcat v7.0 Server at localhost was   unable to start within 45 seconds. If the server   requires more time, try increasing the timeout in the server editor.
解决办法

Google后发现,网上的其他人也碰到过这样的问题。

从Eclipse forums中,我们可以找出此类问题的一般解决方法。
  
  
Larry Isaacs explains:

The lack of output in the Console view suggests that the attempt to   launch Tomcat is failing. After attempting to start Tomcat, switch to the   Debug perspective and look in the Debug window. You should see a terminated   launch. You can right-click on the nested item   under the terminated launch and select Properties.   This should display the command line that is being used to launch Tomcat. You   could try that command in a terminal window   to see what happens.

从上述解释,通过右键查看terminated lanch,可以知道Eclipse在后台使用的命令。
DSC0000.png
这里的命令是javaw.exe(注意,javaw程序不在console中输出任何东西)。
DSC0001.png

可以把javaw.exe替换为java.exe,并在命令行中重新运行此命令,就能方便地定位出启动过程过长的原因。
  
  
D:\>D:\develop\language\java\jdk\jre\bin\java.exe -Dcatalina.base=E:\work\projects\PricingTool\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1   -Dcatalina.home=D:\develop\ide\springsource\apache-tomcat-7.0.23 -Dwtp.deploy=E:\work\projects\PricingTool\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps   -Djava.endorsed.dirs=D:\develop\ide\springsource\apache-tomcat-7.0.23\endorsed -Dfile.encoding=UTF-8 -classpath D:\develop\ide\springsource\apache-tomcat-7.0.23\bin\bootstrap.jar;D:\develop\ide\springsource\apache-tomcat-7.0.23\bin\tomcat-juli.jar   org.apache.catalina.startup.Bootstrap start
Jan 20, 2012 1:43:33 PM org.apache.catalina.core.AprLifecycleListener   init
INFO: The APR based Apache Tomcat Native   library which allows optimal performance in   production environments was not found on the   java.library.path: D:\develop\language\java\jdk\jre\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;D:\develop\oracle\product\11.2.0\client_1\bin;D:\develop\language\java\jdk\bin;C:\Program Files (x86)\RSA SecurID Token Common;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program   Files\Intel\WiFi\bin\;C:\Program Files\Common   Files\Intel\WirelessCommon\;D:\Program Files   (x86)\Tencent\QQPCMgr\6.6.2136.201;D:\Program   Files\TortoiseSVN\bin;C:\Program   Files\Intel\WiFi\bin\;C:\Program Files\Common   Files\Intel\WirelessCommon\;D:\Program Files   (x86)\Tencent\QQPCMgr\6.6.2136.201;.
Jan 20, 2012 1:43:34 PM   org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting   property 'source' to 'org.eclipse.jst.j2ee.server:PricingToolsWF' did not find a matching property.
Jan 20, 2012 1:43:34 PM org.apache.coyote.AbstractProtocol   init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Jan 20,   2012 1:43:34 PM   org.apache.coyote.AbstractProtocol init
INFO:   Initializing ProtocolHandler ["ajp-bio-8009"]
Jan 20,   2012 1:43:34 PM   org.apache.catalina.startup.Catalina load
INFO:   Initialization processed in 1065 ms
Jan 20, 2012 1:43:34 PM   org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Jan 20, 2012 1:43:34 PM org.apache.catalina.core.StandardEngine   startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.23
Jan 20, 2012 1:43:36 PM   org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
2012-01-20 13:43:41,489 [pool-2-thread-1] INFO   com.avnet.em.pricingtool.service.listener.ApplicationContextListener - App started
2012-01-20 13:43:41,491 [pool-2-thread-1] INFO   com.avnet.em.pricingtool.service.listener.ApplicationContextListener - 1399004
2012-01-20 13:43:41,494 [pool-2-thread-1] INFO   com.avnet.em.pricingtool.service.listener.ApplicationContextListener -   org.springframework.context.event.Context
RefreshedEvent[source=Root WebApplicationContext:   startup date [Fri Jan 20 13:43:36 CST 2012]; root of context hierarchy]
Jan 20, 2012 1:43:41 PM org.apache.catalina.core.ApplicationContext   log
INFO: Initializing Spring FrameworkServlet   'PricingToolsWF'
Jan 20, 2012 1:43:43 PM org.apache.coyote.AbstractProtocol   start
INFO: Starting ProtocolHandler ["http-bio-8080"]
Jan 20,   2012 1:43:43 PM   org.apache.coyote.AbstractProtocol start
INFO:   Starting ProtocolHandler ["ajp-bio-8009"]
Jan   20, 2012 1:43:43 PM org.apache.catalina.startup.Catalina   start
INFO: Server startup in 9368   ms


通过 Wiz 发布

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-92894-1-1.html 上篇帖子: 转:How to generate Certificate Signing Request (CSR) file with Apache OpenSSL 下篇帖子: 安装配置Subversion和Apache
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表