开发者社区> 问答> 正文

tomcat启动又有问题了!!大牛帮帮忙 谢谢!?报错

完整的报错如下,警告部分我标红了  大神帮忙看一下

ps:etc/hosts 里边有 127.0.0.1 localhost 

Jun 27, 2014 4:01:37 PM org.apache.catalina.core.AprLifecycleListener init

INFO: Loaded APR based Apache Tomcat Native library 1.1.20.
Jun 27, 2014 4:01:37 PM org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
Jun 27, 2014 4:01:38 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: Failed to initialize the SSLEngine.
Jun 27, 2014 4:01:38 PM org.apache.coyote.http11.Http11AprProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Jun 27, 2014 4:01:38 PM org.apache.coyote.ajp.AjpAprProtocol init
INFO: Initializing Coyote AJP/1.3 on ajp-8009
Jun 27, 2014 4:01:38 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1785 ms
Jun 27, 2014 4:01:38 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jun 27, 2014 4:01:38 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.32
Jun 27, 2014 4:01:38 PM org.apache.catalina.startup.ContextConfig init
SEVERE: Exception fixing docBase for context []
java.io.IOException: Application base directory /usr/local/tomcat6/apps does not exist
 at org.apache.catalina.startup.ExpandWar.expand(ExpandWar.java:123)
        at org.apache.catalina.startup.ContextConfig.fixDocBase(ContextConfig.java:886)
        at org.apache.catalina.startup.ContextConfig.init(ContextConfig.java:1021)
        at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:279)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
        at org.apache.catalina.core.StandardContext.init(StandardContext.java:5700)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4448)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
        at org.apache.catalina.core.StandardService.start(StandardService.java:525)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Jun 27, 2014 4:01:38 PM org.apache.catalina.core.StandardContext resourcesStart
SEVERE: Error starting static Resources
java.lang.IllegalArgumentException: Invalid or unreadable WAR file : /usr/local/tomcat6/projects/GGE-Backend.war
        at org.apache.naming.resources.WARDirContext.setDocBase(WARDirContext.java:130)
        at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4319)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4488)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
        at org.apache.catalina.core.StandardService.start(StandardService.java:525)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Jun 27, 2014 4:01:38 PM org.apache.catalina.core.StandardContext start
SEVERE: Error in resourceStart()
Jun 27, 2014 4:01:38 PM org.apache.catalina.core.StandardContext start
SEVERE: Error getConfigured
Jun 27, 2014 4:01:38 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [] startup failed due to previous errors
Jun 27, 2014 4:01:38 PM org.apache.catalina.core.StandardContext stop
INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].[backend.gge.hk].[/] has not been started
Jun 27, 2014 4:01:44 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
Jun 27, 2014 4:02:02 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor host-manager.xml
Jun 27, 2014 4:02:02 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor manager.xml
Jun 27, 2014 4:02:02 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory examples
Jun 27, 2014 4:02:03 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Jun 27, 2014 4:02:03 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Jun 27, 2014 4:02:03 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory docs
Jun 27, 2014 4:02:03 PM org.apache.coyote.http11.Http11AprProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Jun 27, 2014 4:02:03 PM org.apache.catalina.connector.MapperListener registerEngine
WARNING: Unknown default host: localhost
Jun 27, 2014 4:02:03 PM org.apache.coyote.ajp.AjpAprProtocol start
INFO: Starting Coyote AJP/1.3 on ajp-8009
Jun 27, 2014 4:02:03 PM org.apache.catalina.connector.MapperListener registerEngine
WARNING: Unknown default host: localhost
Jun 27, 2014 4:02:03 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 24907 ms

展开
收起
爱吃鱼的程序员 2020-06-20 16:54:05 733 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    看一下你的server.xml是否修改正确;路径是否正确;不行的话换一个tomcat试试看。

    解决了吗我也是这个问题war包里有- 去掉就正常了
    2020-06-20 16:54:23
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
Apache Tomcat 的云原生演进 立即下载
CentOS Nginx PHP JAVA 多语言镜像使用手 立即下载
CentOS Nginx PHP JAVA多语言镜像使用手册 立即下载