Struts1.2+Spring2.0+Hibernate3.1项目框架构建中的问题及解决方案:
严重: action: null
java.lang.ClassNotFoundException: org.springframework.web.struts.ContextLoaderPlugIn(一)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)
at org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.java:117)
at org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.java:143)
................................................
................................................
................................................
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
2007-7-12 10:08:03 org.apache.catalina.core.ApplicationContext log
信息: Marking servlet action as unavailable
2007-7-12 10:08:03 org.apache.catalina.core.StandardContext loadOnStartup
严重: Servlet /ssh2 threw load() exception
javax.servlet.UnavailableException(二)
at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:880)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:336)
at javax.servlet.GenericServlet.init(GenericServlet.java:212)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4044)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)
................................................
................................................
................................................
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
解决方法:加入spring2.0.6的最核心得包:(可以用用CSDN网站上下载)
spring.jar
spring-aspects.jar
spring-mock.jar
重新编译(或者Project --〉clean)。。。。。。。。
严重: Servlet /ssh2 threw load() exception
javax.servlet.UnavailableException: org.springframework.beans.factory.config.ConfigurableListableBeanFactory.registerScope(三)(Ljava/lang/String;Lorg/springframework/beans/factory/config/Scope;)V
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:368)
at javax.servlet.GenericServlet.init(GenericServlet.java:212)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
................................................
................................................
................................................
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1580)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1560)
at java.lang.Thread.run(Thread.java:619)
解决方法:加入spring2.0.6的核心得包:
spring-core.jar
重新编译(或者Project --〉clean)。。。。。。。。
严重: Servlet /ssh2 threw load() exception
javax.servlet.UnavailableException: org/springframework/beans/factory/support/ConfigurableBeanFactoryUtils(五)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:368)
at javax.servlet.GenericServlet.init(GenericServlet.java:212)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4044)
................................................
................................................
................................................
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
解决方法:加入spring2.0.6的核心得包:
spring-hibernate3.jar
spring-dao.jar
spring-ibatis.jar
spring-aop.jar
spring-context.jar
重新编译(或者Project --〉clean)。。。。。。。。
2007-7-12 11:53:12 org.apache.catalina.core.AprLifecycleListener init
信息: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: E:/Program Files/Java/jdk1.6.0_01/bin;E:/Program Files/Apache Software Foundation/Tomcat 6.0/bin
2007-7-12 11:53:12 org.apache.coyote.http11.Http11Protocol init
................................................
................................................
................................................
2007-7-12 11:53:21 org.apache.jk.common.ChannelSocket init
信息: JK: ajp13 listening on /0.0.0.0:8009
2007-7-12 11:53:21 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=0/172 config=null
2007-7-12 11:53:21 org.apache.catalina.startup.Catalina start
信息: Server startup in 9391 ms