簡體   English   中英

Tomcat有時無法通過eclipse在ubuntu14.04中啟動

[英]Tomcat is not starting sometimes in ubuntu14.04 through eclipse

我正在使用eclipse中的tomcat服務器進行項目。 這些天來一切正常。 但是由於3天,tomcat有時不是從日食開始的。 我檢查了Internet,並嘗試了許多解決方案。 甚至與該問題相關的堆棧溢出其他文章中給出的解決方案也無濟於事。 控制台消息是

Oct 07, 2014 11:08:06 AM 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: /usr/java/ packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
Oct 07, 2014 11:08:06 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.j2ee.server:dims' did not find a matching property.
Oct 07, 2014 11:08:06 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:DReST' did not find a matching property.
Oct 07, 2014 11:08:06 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8181"]
Oct 07, 2014 11:08:06 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
Oct 07, 2014 11:08:06 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 303 ms
Oct 07, 2014 11:08:06 AM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Oct 07, 2014 11:08:06 AM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.54
Oct 07, 2014 11:08:07 AM org.apache.tiles.impl.BasicTilesContainer init
INFO: Initializing Tiles2 container. . .
Oct 07, 2014 11:08:07 AM org.apache.tiles.impl.BasicTilesContainer initializeDefinitionsFactory
INFO: Tiles2 container initialization complete.
Oct 07, 2014 11:08:07 AM org.apache.tiles.access.TilesAccess setContainer
INFO: Publishing TilesContext for context: org.apache.catalina.core.ApplicationContextFacade
Oct 07, 2014 11:08:07 AM com.opensymphony.xwork2.config.providers.XmlConfigurationProvider info
INFO: Parsing configuration file [struts-default.xml]
Oct 07, 2014 11:08:07 AM com.opensymphony.xwork2.config.providers.XmlConfigurationProvider info
INFO: Parsing configuration file [struts-plugin.xml]
Oct 07, 2014 11:08:07 AM com.opensymphony.xwork2.config.providers.XmlConfigurationProvider info
INFO: Parsing configuration file [struts.xml]
Oct 07, 2014 11:08:07 AM org.apache.struts2.config.BeanSelectionProvider info
INFO: Loading global messages from ApplicationResources
Servlet Context --call back method--contextInitialized()
/home/saipavan/apache-tomcat-7.0.54/wtpwebapps/dims/StudentDao.properties
/home/saipavan/apache-tomcat-7.0.54/wtpwebapps/dims/
/home/saipavan/apache-tomcat-7.0.54/wtpwebapps/dims/
/home/saipavan/apache-tomcat-7.0.54/wtpwebapps/dims/
/home/saipavan/apache-tomcat-7.0.54/wtpwebapps/dims/
/home/saipavan/apache-tomcat-7.0.54/wtpwebapps/dims/
Oct 07, 2014 11:08:09 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /home/saipavan/apache-tomcat-7.0.54/webapps/manager
Oct 07, 2014 11:08:09 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory /home/saipavan/apache-tomcat-7.0.54/webapps/manager has finished in 75 ms
Oct 07, 2014 11:08:09 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /home/saipavan/apache-tomcat-7.0.54/webapps/ROOT
Oct 07, 2014 11:08:09 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory /home/saipavan/apache-tomcat-7.0.54/webapps/ROOT has finished in 67 ms
Oct 07, 2014 11:08:09 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /home/saipavan/apache-tomcat-7.0.54/webapps/host-manager
Oct 07, 2014 11:08:09 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory /home/saipavan/apache-tomcat-7.0.54/webapps/host-manager has finished in 70 ms
Oct 07, 2014 11:08:09 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /home/saipavan/apache-tomcat-7.0.54/webapps/examples
Oct 07, 2014 11:08:09 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Oct 07, 2014 11:08:09 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Oct 07, 2014 11:08:09 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@7e7a19e7')
Oct 07, 2014 11:08:09 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory /home/saipavan/apache-tomcat-7.0.54/webapps/examples has finished in 142 ms
Oct 07, 2014 11:08:09 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /home/saipavan/apache-tomcat-7.0.54/webapps/docs
Oct 07, 2014 11:08:09 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory /home/saipavan/apache-tomcat-7.0.54/webapps/docs has finished in 68 ms
Oct 07, 2014 11:08:09 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8181"]
Oct 07, 2014 11:08:09 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
Oct 07, 2014 11:08:09 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 2670 ms

我可以通過終端啟動tomcat。 但是當我嘗試在啟動后在瀏覽器中打開tomcat時,出現錯誤

Firefox can't establish a connection to the server at localhost:8181.

可能是什么問題? 誰能幫我? 謝謝。

似乎本地主機未解析為IP地址。 嘗試ping localhost ping -c localhost或嘗試使用系統IP地址而不是localhost。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM