初学struts,用的是struts(用的版本是1.2.9),开发工具是tomcat6.0,myeclipse7.0
我明明已经引入了struts包,可是还是在tomcat启动的时候报下列错误:
但是web应用程序可以正常访问。我的简单的登录验证,从结果看都是没有问题的。
难道是myclipse。不会吧?前面几个例子还好好的。
可是自从有发现这个后,把前面的几个例子重新部署,也是这个错误。但是可以运行出来结果。
2009-8-1 20:41:35 org.apache.catalina.core.AprLifecycleListener init
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\jdk1.6.0_14\bin;D:\tomcat6.0.18\bin
2009-8-1 20:41:35 org.apache.coyote.http11.Http11Protocol init
信息: Initializing Coyote HTTP/1.1 on http-80
2009-8-1 20:41:35 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 1129 ms
2009-8-1 20:41:36 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2009-8-1 20:41:36 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/6.0.18
2009-8-1 20:41:37 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: contextInitialized()
2009-8-1 20:41:37 org.apache.catalina.core.ApplicationContext log
信息: SessionListener: contextInitialized()
IPFilter init
authfilter init
CharsetEncodingFilter init
encoding=GB18030
AuthFilter init()
2009-8-1 20:41:41 org.apache.struts.action.ActionServlet initChain
信息: Loading chain catalog from jar:file:/D:/tomcat6.0.18/webapps/struts_jstl/WEB-INF/lib/struts-core-1.3.10.jar!/org/apache/struts/chain/chain-config.xml
2009-8-1 20:41:43 org.apache.struts.action.ActionServlet initChain
信息: Loading chain catalog from jar:file:/D:/tomcat6.0.18/webapps/struts_taglib/WEB-INF/lib/struts-core-1.3.10.jar!/org/apache/struts/chain/chain-config.xml
2009-8-1 20:41:45 org.apache.catalina.core.ApplicationContext log
信息: Marking servlet action as unavailable
2009-8-1 20:41:45 org.apache.catalina.core.ApplicationContext log
严重: Error loading WebappClassLoader
delegate: false
repositories:
/WEB-INF/classes/
----------> Parent Classloader:
org.apache.catalina.loader.StandardClassLoader@1386918
org.apache.struts.action.ActionServlet
java.lang.ClassNotFoundException: org.apache.struts.action.ActionServlet
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1094)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:992)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4058)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4371)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:926)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:889)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
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:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
2009-8-1 20:41:45 org.apache.catalina.core.StandardContext loadOnStartup
严重: Servlet /struts_login threw load() exception
java.lang.ClassNotFoundException: org.apache.struts.action.ActionServlet