注册 登录
编程论坛 J2EE论坛

Error filterStart

SoftWarezx 发布于 2010-09-10 10:54, 585 次点击
程序代码:
严重: Error filterStart
2010-9-10 10:42:38 org.apache.catalina.core.StandardContext start
严重: Context startup failed due to previous errors
2010-9-10 10:42:41 org.apache.catalina.core.StandardHostDeployer install<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4"
    xmlns="http://java. xmlns:xsi="http://www. xsi:schemaLocation="http://java. http://java.
    <!-- 定义struts2的核心控制器 -->
    <filter>
        <filter-name>struts2</filter-name>
        <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
    </filter>
    <!-- FilterDispatcher用来初始化Struts2并且处理所有的Http请求 -->
    <filter-mapping>
        <filter-name>struts2</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>
  <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
  </welcome-file-list>
</web-app>
struts2.xml
程序代码:
<!DOCTYPE struts PUBLIC
          "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
          "http://struts. <package name="default" extends="struts-default">
        <action name="login" class="action.LoginAction">
            <result name="index" type="chain">bookshow</result>
            <result name="input">login.jsp</result>
        </action>
        <action name="bookshow" class="action.BookshowAction">
            <result name="bookshow">bookshow.jsp</result>
        </action>
        <action name="deletebook" class="action.DeletebookAction">
            <result name="bookshow" type="chain">bookshow</result>
        </action>
        <action name="addbook" class="action.AddbookAction">
            <result name="success">success.jsp</result>
        </action>
        <action name="bookdetail" class="action.BookdetailAction">
            <result name="bookdetail">bookdetail.jsp</result>
        </action>
    </package>  
</struts>
包:commons-fileupload-1.2.jar   commons-io-1.3.1.jar    commons-logging-1.1.jar  freemarker-2.3.8.jar  ognl-2.6.11.jar
ojdbc14.jar  struts2-core-2.0.6.jar   xwork-2.0.1.jar


各位大侠帮个忙吧!谢谢了!
3 回复
#2
SoftWarezx2010-09-10 12:44
.....
#3
2010-09-12 01:39
   <result name="index" type="chain">bookshow</result>
这句好像有点问题,,很久没有看过struts2了,写的时候要仔细点,那么就是你的jar包有点问题
#4
SoftWarezx2010-09-13 09:34
问题解决了,是MyEclipse版本与jdk的1.5和1.6版本冲突的问题
1