Tomcat没有从日食开始 [英] Tomcat not starting from eclipse

查看:143
本文介绍了Tomcat没有从日食开始的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图从eclipse启动tomcat服务器6.0.32(NOT MY APP),但是出现错误时出现服务器Apache Tomcat v6.0.32在localhost无法启动。但是当我启动它与startup.bat它是没问题。我检查所有端口的tomcat - 他们是免费的。这是一个控制台日志

I'm trying to start tomcat server 6.0.32 (NOT MY APP) from eclipse but it fails with error "Server Apache Tomcat v6.0.32 at localhost failed to start". But when I'm starting it with startup.bat it is ok. I checked all ports for tomcat - they are free. Here it is a console log

11.08.2011 15:15:46 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: <MY_PATH_VARIABLE>
11.08.2011 15:15:47 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
11.08.2011 15:15:47 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1068 ms
11.08.2011 15:15:47 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
11.08.2011 15:15:47 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.32
11.08.2011 15:15:47 org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor ProjectName.xml



<可能有人知道如何解决它?(((

Maybe someone know how to fix it?((((

推荐答案

我有同样的问题,即没有任何错误当使用run.sh从命令行启动时,日志和服务器启动正常。但是,一旦我使用Eclipse(没有或没有我的应用程序),Tomcat根本就不会启动。

I had the same problem i.e. no errors in any of the logs, and the server started fine when launched from the command line using run.sh. However as soon as I used Eclipse (without or without my app) Tomcat wouldn't start at all.

我解决了通过执行以下步骤来解决问题:

I solved this problem by performing the following steps:


  1. 在Eclipse中,转到服务器选项卡。

  2. 双击服务器。

  3. 配置概述应显示在Eclipse主Eclipse面板中。

  4. 在服务器位置选择单选按钮'使用Tomcat安装'(对我而言,这是中间的单选按钮)。

  5. 保存配置(无论如何都应该提示您这样做)。

  6. 重新启动服务器,您应该找到localhost:8080在Eclipse浏览器中工作。

  1. In Eclipse, go to the 'Servers' tab.
  2. Double click the server.
  3. A configuration overview should be displayed in the main Eclipse panel.
  4. Under the sub-section 'Server Locations', select the radio button 'Use Tomcat Installation' (for me this was the middle radio button).
  5. Save the configuration (you should be prompted to do so anyway).
  6. Restart your server, and you should find localhost:8080 works from within the Eclipse browser.

这篇关于Tomcat没有从日食开始的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆