当前位置: 代码迷 >> Java Web开发 >> java EE错误如何解决阿,都是过了,没有能解决的!
  详细解决方案

java EE错误如何解决阿,都是过了,没有能解决的!

热度:5325   发布时间:2013-02-25 21:06:33.0
java EE异常怎么解决阿,都是过了,没有能解决的!!






严重: Exception starting filter struts
java.lang.ClassNotFoundException: org.apache.struts2.dispatcher.FilterDispatcher
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1647)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1493)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:269)
at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:115)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4038)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4692)
at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1244)
at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1342)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:303)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1385)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1649)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1658)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1638)
at java.lang.Thread.run(Unknown Source)
2011-5-24 9:42:12 org.apache.catalina.core.StandardContext start
严重: Error filterStart
2011-5-24 9:42:12 org.apache.catalina.core.StandardContext start
严重: Context [/Struts] startup failed due to previous errors



web.xml:
<filter>
        <filter-name>struts</filter-name>
        <filter-class>
            org.apache.struts2.dispatcher.FilterDispatcher
        </filter-class>
    </filter>
    <filter-mapping>
        <filter-name>struts</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>


<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>


struts.xml


<struts>
<package name="default" extends="struts-default">

<action name="connect" class="Action.ConnectAction">
<result name="success">/ok.jsp</result>
<result name="error">/error.jsp</result>
</action>
</package>
</struts>


页面中:<form action="connect.action" method="post">


导入的包:都是基本包+fileUpload+commons.io没有其他的东西,可是就是抱错,怎么解决阿,都3天了!!!!!

引用:
应该是Jar不全面吧,
commons-fileupload-1.2.1.jar
commons-logging.jar
freemarker-2.3.13.jar
ognl-2.6.11.jar
struts2-core-2.1.6.jar
xwork-2.1.2.jar
参考一下...
  相关解决方案
本站暂不开放注册!
内测阶段只得通过邀请码进行注册!
 
  • 最近登录:Tue Oct 23 20:32:56 CST 2018
  • 最近登录:Tue Oct 23 20:32:56 CST 2018
  • 最近登录:Tue Oct 23 20:32:56 CST 2018
  • 最近登录:Tue Oct 23 20:32:56 CST 2018
  • 最近登录:Tue Oct 23 20:32:56 CST 2018