java.lang.ClassNotFoundException: org.apache.struts.action.ActionServlet

问题描述:严重: Servlet /图书馆管理系统 threw load() exception

                  java.lang.ClassNotFoundException: org.apache.struts.action.ActionServlet

    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)

    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)

    at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:532)

    at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:514)

    at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:133)

    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1137)

    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1081)

    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5027)

    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5314)

    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)

    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)

    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)

    at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1114)

    at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1673)

    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)

    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)

    at java.util.concurrent.FutureTask.run(FutureTask.java:138)

    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

    at java.lang.Thread.run(Thread.java:662)

   2013-1-5 10:18:03 org.apache.coyote.AbstractProtocol start

   信息: Starting ProtocolHandler ["http-apr-8082"]

   2013-1-5 10:18:03 org.apache.coyote.AbstractProtocol start

  信息: Starting ProtocolHandler ["ajp-apr-8009"]

  2013-1-5 10:18:03 org.apache.catalina.startup.Catalina start

  信息: Server startup in 3027 ms

解决方法:我在Myeclipse9.0的tomcat损坏,重新装过tomcat7.0,先检查配置,没有错,后按照网上其他人说法,检查jar包(antlr.jarcommons-beanutils.jar   commons-digester.jar   commons-logging.jar   commons-fileupload.jar  commons-validator.jar   jakarta-oro.jarstruts.jar),不是因为包的问题,最后,把tomcat目录:C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps中原先的项目删掉即可。


你可能感兴趣的:(tomcat,tomcat,MyEclipse,MyEclipse,MyEclipse,ActionServlet)