Tomcat启动失败,怎么解决

星琳 发布于 2016/05/04 12:58
阅读 1K+
收藏 0

Tomcat报错,JSP+Servlet+MYSQL后台代码,
之前还好好的TT后来关了sql server和oracle 的服务就这样了……
求大神解决……

五月 04, 2016 12:42:18 下午 org.apache.tomcat.util.digester.SetPropertiesRule begin

警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:Project' did not find a matching property.
五月 04, 2016 12:42:18 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server version:        Apache Tomcat/7.0.67
五月 04, 2016 12:42:18 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server built:          Dec 7 2015 13:07:11 UTC
五月 04, 2016 12:42:18 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server number:         7.0.67.0
五月 04, 2016 12:42:18 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Name:               Windows 8.1
五月 04, 2016 12:42:18 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Version:            6.3
五月 04, 2016 12:42:18 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Architecture:          amd64
五月 04, 2016 12:42:18 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Java Home:             D:\Program Files\Java\jdk1.8.0_60
五月 04, 2016 12:42:18 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Version:           1.8.0_60-b27
五月 04, 2016 12:42:18 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Vendor:            Oracle Corporation
五月 04, 2016 12:42:18 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_BASE:         D:\Users\Administrator\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
五月 04, 2016 12:42:18 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_HOME:         D:\Program Files\Apache Software Foundation\Tomcat 7.0
五月 04, 2016 12:42:18 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.base=D:\Users\Administrator\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
五月 04, 2016 12:42:18 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.home=D:\Program Files\Apache Software Foundation\Tomcat 7.0
五月 04, 2016 12:42:18 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dwtp.deploy=D:\Users\Administrator\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps
五月 04, 2016 12:42:18 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.endorsed.dirs=D:\Program Files\Apache Software Foundation\Tomcat 7.0\endorsed
五月 04, 2016 12:42:18 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dfile.encoding=UTF-8
五月 04, 2016 12:42:18 下午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\Program Files\Java\jdk1.8.0_60\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;D:/Program Files/Java/jdk1.8.0_60/bin/server;D:/Program Files/Java/jdk1.8.0_60/bin;D:/Program Files/Java/jdk1.8.0_60/lib/amd64;D:\app\dell\product\11.2.0\dbhome_1\bin;C:\ProgramData\Oracle\Java\javapath;D:\Program Files (x86)\Java\jdk1.6.0\bin;C:\Program Files (x86)\Common Files\lenovo\easyplussdk\bin;c:\windows\system32;D:\Program Files\Apache Software Foundation\Tomcat 7.0\bin;D:\Program Files\VisualSVN Server\bin;F:\00安装包\Eclipse;;.
五月 04, 2016 12:42:18 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-bio-80"]
五月 04, 2016 12:42:18 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["ajp-bio-8009"]
五月 04, 2016 12:42:18 下午 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 1336 ms
五月 04, 2016 12:42:18 下午 org.apache.catalina.core.StandardService startInternal
信息: Starting service Catalina
五月 04, 2016 12:42:18 下午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/7.0.67
五月 04, 2016 12:42:19 下午 org.apache.catalina.startup.TldConfig execute
信息: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
五月 04, 2016 12:42:20 下午 org.apache.catalina.util.SessionIdGeneratorBase createSecureRandom
信息: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [566] milliseconds.
五月 04, 2016 12:42:20 下午 org.apache.catalina.loader.WebappClassLoaderBase validateJarFile
信息: validateJarFile(D:\Users\Administrator\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\Project\WEB-INF\lib\servlet-api.jar) - jar not loaded. See Servlet Spec 3.0, section 10.7.2. Offending class: javax/servlet/Servlet.class
五月 04, 2016 12:42:20 下午 org.apache.catalina.core.ContainerBase startInternal
严重: A child container failed during start
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/Project]]
at java.util.concurrent.FutureTask.report(Unknown Source)
at java.util.concurrent.FutureTask.get(Unknown Source)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1122)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:819)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1574)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1564)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/Project]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
... 6 more
Caused by: java.lang.IllegalArgumentException: The servlets named [cn.edu.ncwu.cs.actions.BatchInput] and [cn.edu.ncwu.cs.actions.FileTest] are both mapped to the url-pattern [/batchoutput] which is not permitted
at org.apache.catalina.deploy.WebXml.addServletMapping(WebXml.java:293)
at org.apache.catalina.startup.ContextConfig.processAnnotationWebServlet(ContextConfig.java:2443)
at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2118)
at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:2079)
at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:2072)
at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:2072)
at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:2072)
at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:2072)
at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:2072)
at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1304)
at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:889)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:386)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5479)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 6 more


五月 04, 2016 12:42:20 下午 org.apache.catalina.core.ContainerBase startInternal
严重: A child container failed during start
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]
at java.util.concurrent.FutureTask.report(Unknown Source)
at java.util.concurrent.FutureTask.get(Unknown Source)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1122)
at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:300)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:739)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.startup.Catalina.start(Catalina.java:693)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:428)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1574)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1564)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.catalina.LifecycleException: A child container failed during start
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1130)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:819)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 6 more


五月 04, 2016 12:42:20 下午 org.apache.catalina.startup.Catalina start
严重: The required Server component failed to start so Tomcat is unable to start.
org.apache.catalina.LifecycleException: Failed to start component [StandardServer[8005]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
at org.apache.catalina.startup.Catalina.start(Catalina.java:693)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:428)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardService[Catalina]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:739)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 7 more
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 9 more
Caused by: org.apache.catalina.LifecycleException: A child container failed during start
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1130)
at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:300)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 11 more


五月 04, 2016 12:42:20 下午 org.apache.coyote.AbstractProtocol pause
信息: Pausing ProtocolHandler ["http-bio-80"]
五月 04, 2016 12:42:20 下午 org.apache.coyote.AbstractProtocol pause
信息: Pausing ProtocolHandler ["ajp-bio-8009"]
五月 04, 2016 12:42:20 下午 org.apache.catalina.core.StandardService stopInternal
信息: Stopping service Catalina
五月 04, 2016 12:42:20 下午 org.apache.coyote.AbstractProtocol destroy
信息: Destroying ProtocolHandler ["http-bio-80"]
五月 04, 2016 12:42:20 下午 org.apache.coyote.AbstractProtocol destroy
信息: Destroying ProtocolHandler ["ajp-bio-8009"]

加载中
0
Chet_W
Chet_W

仔细看异常信息就能发现了,已经很清晰的告诉你了。

 The servlets named [cn.edu.ncwu.cs.actions.BatchInput] and [cn.edu.ncwu.cs.actions.FileTest] are both mapped to the url-pattern [/batchoutput] which is not permitted

0
南湖船老大
南湖船老大

别闹。。作为写代码的不要太懒。。这么简单的问题。。。我半分钟就看出来

Caused by: java.lang.IllegalArgumentException: The servlets named [cn.edu.ncwu.cs.actions.BatchInput] and [cn.edu.ncwu.cs.actions.FileTest] are both mapped to the url-pattern [/batchoutput] which is not permitted

0
阿斯兰
阿斯兰
如果不是前两位说的这情况,并且是用 <context path="" docbase=""> 部署,则有可能是路径没指定对
0
阿信sxq
阿信sxq

Caused by: java.lang.IllegalArgumentException: The servlets named [cn.edu.ncwu.cs.actions.BatchInput] and [cn.edu.ncwu.cs.actions.FileTest] are both mapped to the url-pattern [/batchoutput] which is not permitted

已经很清楚了

0
星琳
星琳

谢谢大家,已经解决了就是那俩个java类没有写对…

看到Tomcat那么长的错误报告人都晕了……都没注意到这…

这是第一个完整的项目^_^还是没经验啊TT要练的还有很多很多……

就设置第一个回答的最佳啦~~谢谢各位啦~~~

0
星琳
星琳

还想请问一下……

错误代码这么多……我应该怎么做才能快一些找到哪一个是主要的错误代码呢?

之前用A child container failed during start搜了好久……TT

是找有自己项目里的java的报错吗?

星琳
星琳
回复 @阿信sxq : 谢谢你~学习啦^_^~
阿信sxq
阿信sxq
你看错误的打印都时有缩进的,你重点关注顶格的那些,还有关注“Caused by: ......”,就容易一些
返回顶部
顶部