日期:2014-05-20  浏览次数:20761 次

谁能帮忙解决下关于The requested resource is not available.的问题
我的web.xml如下:  

<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
<welcome-file-list>
<welcome-file>/index.jsp</welcome-file>
</welcome-file-list>

<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>

<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:beans.xml</param-value>
</context-param>

<filter> <!--过滤中文乱码 -->
<filter-name>encodingFilter</filter-name>
<filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
<init-param>
<param-name>encoding</param-name>
<param-value>UTF-8</param-value>
</init-param>

</filter>

<filter-mapping>
<filter-name>encodingFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>


<filter><!--没有事务管理边界时,openSession默认事务为只读的 -->
<filter-name>openSessionInView</filter-name>
<filter-class>org.springframework.orm.hibernate3.support.OpenSessionInViewFilter</filter-class>
<init-param>
<param-name>sessionFactoryBeanName</param-name>
<param-value>sessionFactory</param-value>
</init-param>
</filter>

<filter-mapping>
<filter-name>openSessionInView</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>

<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
</filter>

<filter-mapping>
<filter-name>struts2</filter-name>
<!--<url-pattern>/*</url-pattern>
-->
 
<url-pattern>*.action</url-pattern> 
  <url-pattern>*.jsp</url-pattern>

</filter-mapping>

<filter>
<filter-name>struts-cleanup</filter-name>
<filter-class>org.apache.struts2.dispatcher.ActionContextCleanUp</filter-class>
</filter>
<filter-mapping>
<filter-name>struts-cleanup</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>


<servlet>
  <servlet-name>Connector</servlet-name>
  <servlet-class>
  econ.fckeditor.ConnectorServlet
  </servlet-class>
  <init-param>
  <param-name>listings</param-name>
  <param-value>true</param-value>
  </init-param>
   
  <load-on-startup>1</load-on-startup>
  </servlet>
  <servlet-mapping>
  <servlet-name>Connector</servlet-name>
  <url-pattern>
  /fckeditor/editor/filemanager/connectors/*
  </url-pattern>
  </servlet-mapping>
</web-app>


我的struts.xml如下:
  <?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC