当前位置: 代码迷 >> J2EE >> 哪位高手能帮忙解决下关于The requested resource is not available.的有关问题
  详细解决方案

哪位高手能帮忙解决下关于The requested resource is not available.的有关问题

热度:218   发布时间:2016-04-22 02:40:51.0
谁能帮忙解决下关于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
  相关解决方案