2015-12-22 121 views
-4

我遇到問題對於localhost。 (eclipse indigo,Java)。以下是錯誤消息,服務器無法在45ms中啓動。有人可以解釋我得到這個錯誤嗎?啓動期間子容器失敗java.util.concurrent.ExecutionException:

SEVERE: A child container failed during start 
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/JDAExt]] 
    at java.util.concurrent.FutureTask$Sync.innerGet(Unknown Source) 
    at java.util.concurrent.FutureTask.get(Unknown Source) 
    at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1130) 
    at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:782) 
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) 
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1568) 
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1558) 
    at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) 
    at java.util.concurrent.FutureTask.run(Unknown Source) 
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(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[/JDAExt]] 
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154) 
    ... 7 more 
Caused by: java.lang.IllegalArgumentException: Invalid <url-pattern> CrystalReportViewerHandler in servlet mapping 
    at org.apache.catalina.core.StandardContext.addServletMapping(StandardContext.java:3208) 
    at org.apache.catalina.core.StandardContext.addServletMapping(StandardContext.java:3183) 
    at org.apache.catalina.deploy.WebXml.configureContext(WebXml.java:1302) 
    at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1239) 
    at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:825) 
    at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:300) 
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) 
    at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90) 
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5161) 
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) 
    ... 7 more 
Dec 22, 2015 8:58:31 AM org.apache.catalina.core.ContainerBase startInternal 
SEVERE: 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$Sync.innerGet(Unknown Source) 
    at java.util.concurrent.FutureTask.get(Unknown Source) 
    at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1130) 
    at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:293) 
    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:727) 
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) 
    at org.apache.catalina.startup.Catalina.start(Catalina.java:646) 
    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:322) 
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:450) 
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:1568) 
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1558) 
    at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) 
    at java.util.concurrent.FutureTask.run(Unknown Source) 
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(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:1138) 
    at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:782) 
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) 
    ... 7 more 
Dec 22, 2015 8:58:31 AM org.apache.catalina.startup.Catalina start 
SEVERE: Catalina.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:646) 
    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:322) 
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:450) 
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:727) 
    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:1138) 
    at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:293) 
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) 
    ... 11 more 
Dec 22, 2015 8:58:31 AM org.apache.catalina.startup.Catalina start 
INFO: Server startup in 4312 ms 

謝謝。我能夠修復web.xml,但現在我得到了一個不同的錯誤。

SEVERE: Exception sending context initialized event to listener instance of class requisite.servlet.RequisiteHomeServletContextListener 
java.lang.ExceptionInInitializerError 
    at requisite.servlet.RequisiteHomeServletContextListener.contextInitialized(RequisiteHomeServletContextListener.java:50) 
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4779) 
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5273) 
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) 
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1568) 
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1558) 
    at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) 
    at java.util.concurrent.FutureTask.run(Unknown Source) 
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) 
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) 
    at java.lang.Thread.run(Unknown Source) 
Caused by: java.lang.NullPointerException 
    at devon.core.log.appender.LFileAppender.write(Unknown Source) 
    at devon.core.log.LLogger.write(Unknown Source) 
    at devon.core.log.LLogger.println(Unknown Source) 
    at devonframework.service.security.requisite.impl.LErrorLogger.println(Unknown Source) 
    at requisite.rule.RuleMapper.getRuleDirectory(RuleMapper.java:72) 
    at requisite.rule.RuleMapper.refresh(RuleMapper.java:81) 
    at requisite.rule.RuleMapper.<clinit>(RuleMapper.java:40) 
    ... 11 more 
Dec 22, 2015 10:14:08 AM org.apache.catalina.core.StandardContext startInternal 
SEVERE: Error listenerStart 
+0

你能分享你的web.xml嗎? –

+0

在web.xml中,url-pattern是不正確的,就像你說的。它沒有以'/'開頭 – juno0628

回答

0

檢查這一行:

Caused by: java.lang.IllegalArgumentException: 
    Invalid <url-pattern> CrystalReportViewerHandler in servlet mapping 

你的web.xml文件中包含的servlet CrystalReportViewerHandler無效的映射。

正確的,你會沒事的。如果您不知道如何更正:發佈web.xml snipplet。

+0

謝謝。我能夠修復web.xml,但現在我得到以下錯誤。 – juno0628

0

這是關於這條線;

Caused by: java.lang.IllegalArgumentException: Invalid <url-pattern> CrystalReportViewerHandler in servlet mapping 

在Web應用程序部署描述符,以下語法用於定義映射:

  • 的字符串用「/」字符開頭和以「/ *」後綴結尾是用於路徑映射。
  • 以'*。'開頭的字符串被用作擴展映射。
  • 空字符串(「」)是一種特殊的URL模式,它準確映射到應用程序的上下文根,即形式爲 http://host:port/ /的請求。在這種情況下,路徑信息是'/',並且 servlet路徑和上下文路徑是空字符串(「」)。
  • 只包含'/'字符的字符串表示應用程序的「默認」servlet。在這種情況下,servlet路徑是 請求URI減去上下文路徑,路徑信息爲空。
  • 所有其他字符串僅用於

完全匹配如果您共享的web.xml,我們可以給出具體的答案。

僅供參考,請看Java Servlet SpecificationServlet Configuration

+0

謝謝我現在修復了Web xml,但是我收到了一個新錯誤。 – juno0628

相關問題