日期:2014-05-18  浏览次数:20797 次

struts+hibernate的问题??
刚照着书上完成了小项目struts+hibernate,一个网络商城。完成后一部署,结果myeclipse里的tomcat要等上5-10分钟才能开启,开启的同时显示的错误如下:

信息: Initialization processed in 1406 ms
2009-3-4 21:48:23 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2009-3-4 21:48:23 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/5.5.26
2009-3-4 21:48:23 org.apache.catalina.core.StandardHost start
信息: XML validation disabled
2009-3-4 21:48:25 org.apache.catalina.core.ApplicationContext log
信息: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]]
2009-3-4 21:48:32 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: contextInitialized()
2009-3-4 21:48:32 org.apache.catalina.core.ApplicationContext log
信息: SessionListener: contextInitialized()
log4j:ERROR Could not instantiate class [org.apche.log4j.RollingFileAppender].
java.lang.ClassNotFoundException: org.apche.log4j.RollingFileAppender
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1363)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1209)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at org.apache.log4j.helpers.Loader.loadClass(Loader.java:160)
at org.apache.log4j.helpers.OptionConverter.instantiateByClassName(OptionConverter.java:309)
 。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:448)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
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:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
log4j:ERROR Could not instantiate appender named "file".
2009-3-4 21:54:42 org.apache.catalina.startup.HostConfig deployDirectory
严重: Error deploying web application directory netshop
java.lang.NoSuchMethodError: org.apache.log4j.Category.log(Ljava/lang/String;Lorg/apache/log4j/Level;Ljava/lang/Object;Ljava/lang/Throwable;)V
at org.apache.commons.logging.impl.Log4JCategoryLog.error(Log4JCategoryLog.java:149)
at org.apache.catalina.core.ApplicationContext.log(ApplicationContext.java:676)
at org.apache.catalina.core.ApplicationContextFacade.log(ApplicationContextFacade.java:270)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1175)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
at o