Java学习空间
Java新人
posts - 9,  comments - 17,  trackbacks - 0
在启动Tomcat的时候出现如下错误。
java.lang.reflect.InvocationTargetException
    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:
585)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:
271)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:
409)
Caused by: java.lang.NoClassDefFoundError: org
/apache/commons/logging/LogFactory
    at org.apache.naming.NamingContext.
<clinit>(NamingContext.java:57)
    at org.apache.catalina.core.NamingContextListener.lifecycleEvent(NamingContextListener.java:
207)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:
119)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:
676)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:
537)
它的意思好像是找不到commons-logging.jar包,但是以前我启动Tomcat的时候就没有这个包,还是可以启动的,今天由于修改了一些东西,所以出现这样的错误,但是我又把Tomcat的配置还原成修改以前的状态,还是出现这样的错误。
我的问题:(1)commons-logging.jar,此包要放在什么位置,tomcat启动时才找得到?
                    (2)commons-logging.jar,此包的作用的是什么?
请各位大哥大姐帮帮忙,小弟万分感激!!!
posted on 2007-08-06 17:22 Elven 阅读(1156) 评论(1)  编辑  收藏

FeedBack:
# java[未登录]
2007-08-08 12:24 | java
ding  回复  更多评论
  

只有注册用户登录后才能发表评论。


网站导航:
 

<2007年8月>
2930311234
567891011
12131415161718
19202122232425
2627282930311
2345678

常用链接

留言簿(3)

随笔分类

随笔档案

文章档案

搜索

  •  

最新评论

  • 1. re: struts2.0
  • 如果采用虚拟目录的话,docBase 指到WEB-INF目录的上一级目录!
    chenwangdu@vip.citiz.net
  • --chenwangdu
  • 2. re: struts2.0
  • 楼上的高手,加个QQ咯
  • --wk
  • 3. re: struts2.0
  • 评论内容较长,点击标题查看
  • --syz
  • 4. re: 还是struts2问题
  • 为什么不直接使用wtp呢,完整的集成环境,非要自己配置干什么?
  • --cherishchen
  • 5. re: 还是struts2问题
  • 多半是因为你的web.xml中有什么错误导致的,可以查tomcat的日志文件,看看其中有什么exception
  • --Tiger F

阅读排行榜

评论排行榜