JWorld@TW the best professional Java site in Taiwan
      註冊 | 登入 | 全文檢索 | 排行榜  

» JWorld@TW » Application Server » Tomcat  

按列印兼容模式列印這個話題 列印話題    把這個話題寄給朋友 寄給朋友   
reply to postflat modego to previous topicgo to next topic
本主題所含的標籤
無標籤
作者 Tomcat使用5.5.20,啟動後一下子就會自己關閉的問題
vandiene





發文: 6
積分: 0
於 2007-07-31 10:11 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
Tomcat使用5.5.20,啟動時ok,但是每次啟動沒有多久就會發生嚴重錯誤,導致該app無法使用,錯誤訊息主要是 Parse error in default web.xml,但是我覺得我的web.xml 沒有問題阿,我看到網路上很多方法,也都去測試,有包括說,把 commons-beanutils-1.7.0.jar 以及 commons-digester-1.6.jar 放到 commons 目錄下,結果一樣都是造樣錯誤。最後,我把我放在 該 app下 lib 目錄中的 xerces.jar 拿掉,就再也沒事了。原因我不知道。
不過這是我的解法,可以給也遇到相同問題的人作個參考。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
信息: Reloading this Context has started
2006-11-23 17:39:38 [org.apache.jasper.servlet.JspServlet]-[DEBUG] JspServlet.destroy()
2006-11-23 17:39:38 [org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/dmim]]-[DEBUG] Stopping filters
2006-11-23 17:39:39 org.apache.catalina.startup.ContextConfig processDefaultWebConfig
嚴重: Parse error in default web.xml
java.lang.NullPointerException
  at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1111)
  at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1561)
  at org.apache.catalina.startup.ContextConfig.processDefaultWebConfig(ContextConfig.java:676)
  at org.apache.catalina.startup.ContextConfig.defaultWebConfig(ContextConfig.java:613)
  at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:1040)
  at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:260)
  at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
  at org.apache.catalina.core.StandardContext.start(StandardContext.java:4143)
  at org.apache.catalina.core.StandardContext.reload(StandardContext.java:3024)
  at org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java:432)
  at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1277)
  at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1569)
  at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1578)
  at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1578)
  at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1558)
  at java.lang.Thread.run(Thread.java:595)
log4j:WARN No appenders could be found for logger (org.apache.commons.digester.Digester.sax).
log4j:WARN Please initialize the log4j system properly.
2006-11-23 17:39:39 org.apache.catalina.startup.ContextConfig applicationWebConfig
嚴重: Parse error in application web.xml file at jndi:/localhost/dmim/WEB-INF/web.xml
java.lang.NullPointerException
  at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1111)
  at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1561)
  at org.apache.catalina.startup.ContextConfig.applicationWebConfig(ContextConfig.java:351)
  at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:1041)
  at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:260)
  at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
  at org.apache.catalina.core.StandardContext.start(StandardContext.java:4143)
  at org.apache.catalina.core.StandardContext.reload(StandardContext.java:3024)
  at org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java:432)
  at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1277)
  at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1569)
  at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1578)
  at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1578)
  at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1558)
  at java.lang.Thread.run(Thread.java:595)
2006-11-23 17:39:39 org.apache.catalina.startup.ContextConfig start
嚴重: Marking this application unavailable due to previous errorMoon
2006-11-23 17:39:39 org.apache.catalina.core.StandardContext start
嚴重: Error getConfigured
2006-11-23 17:39:39 org.apache.catalina.core.StandardContext start
嚴重: Context [/dmim] startup failed due to previous errors 


reply to postreply to post
話題樹型展開
人氣 標題 作者 字數 發文時間
3111 Tomcat使用5.5.20,啟動後一下子就會自己關閉的問題 vandiene 4175 2007-07-31 10:11
» JWorld@TW »  Application Server » Tomcat

reply to postflat modego to previous topicgo to next topic
  已讀文章
  新的文章
  被刪除的文章
Jump to the top of page

JWorld@TW 本站商標資訊

Powered by Powerful JuteForum® Version Jute 1.5.8