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

» JWorld@TW » Web Framework » Struts  

按列印兼容模式列印這個話題 列印話題    把這個話題寄給朋友 寄給朋友    訂閱主題
reply to postflat modego to previous topicgo to next topic
本主題所含的標籤
無標籤
作者 請問strut在tomcat無法顯示的問題...
hahawawa





發文: 50
積分: 0
於 2005-04-12 16:10 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
我下載了tomcat4.1,可是我把我之前包含用strut寫的web程式的WAR檔放進去webapps\裡頭,結果啟動tomcat時,tomcat啟動的dos畫面並沒有出現說任和有關strut-config.xml的訊息...我在瀏覽器顯示jsp頁面沒問題,可是一旦有碰到
strut的部分就出現錯誤訊息...訊息如下:

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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
javax.servlet.ServletException: org/apache/commons/logging/LogFactory
  at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:498)
  at org.apache.jsp.index_jsp._jspService(index_jsp.java:61)
  at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:92)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:162)
  at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240)
  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)
  at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209)
  at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
  at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
  at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144)
  at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
  at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
  at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358)
  at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)
  at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
  at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118)
  at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
  at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)
  at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
  at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
  at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
  at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
  at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
  at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
  at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
  at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
  at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
  at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
  at java.lang.Thread.run(Thread.java:534)
 
root cause 
 
java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
  at org.apache.struts.util.MessageResources.<clinit>(MessageResources.java:105)
  at org.apache.struts.taglib.logic.ForwardTag.<clinit>(ForwardTag.java:93)
  at java.lang.Class.forName0(Native Method)
  at java.lang.Class.forName(Class.java:141)
  at org.apache.jsp.index_jsp.class$(index_jsp.java:71)
  at org.apache.jsp.index_jsp._jspx_meth_logic_forward_0(index_jsp.java:71)
  at org.apache.jsp.index_jsp._jspService(index_jsp.java:53)
  at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:92)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:162)
  at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240)
  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)
  at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209)
  at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
  at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
  at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144)
  at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
  at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
  at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358)
  at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)
  at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
  at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118)
  at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
  at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)
  at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
  at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
  at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
  at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
  at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
  at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
  at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
  at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
  at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
  at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
  at java.lang.Thread.run(Thread.java:534)
 


重點是...我的war檔之前是很正常的,是不是說在tomcat要做某些設定,它才讀的到strut-config.xml的資料呢?還是什麼呢???請高手幫幫忙...


reply to postreply to post
話題樹型展開
人氣 標題 作者 字數 發文時間
2004 請問strut在tomcat無法顯示的問題... hahawawa 7074 2005-04-12 16:10
1546 Re:請問strut在tomcat無法顯示的問題... anthonychen 137 2005-04-12 16:53
1522 Re:請問strut在tomcat無法顯示的問題... hahawawa 82 2005-04-12 21:46
1500 Re:請問strut在tomcat無法顯示的問題... hahawawa 91 2005-04-12 21:54
1511 Re:請問strut在tomcat無法顯示的問題... frank 357 2005-04-13 00:36
1726 Re:請問strut在tomcat無法顯示的問題... hahawawa 7441 2005-04-13 16:05
» JWorld@TW »  Web Framework » Struts

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