description The requested resource () is not available.50分求解.

问题描述

今天到新公司上班,拿了一份jsp网站,配置好java运行环境.运行任何jsp网站都没出错,可就是我拿到这份jsp程序怎么都不行.现在把web.xml文件代码发出来给大家看下,高手帮我看看怎么搞.小弟4年没摸java了.实在搞不到了.崩溃的底部了.<?xmlversion="1.0"encoding="UTF-8"?><!DOCTYPEweb-appPUBLIC"-//SunMicrosystems,Inc.//DTDWebApplication2.3//EN""http://java.sun.com/dtd/web-app_2_3.dtd"><web-app><display-name>Shane</display-name><description>ShaneProjectFrame</description><distributable/><!--========================================================================ContextParams=========================================================================--><!--Acegiconfig--><context-param><param-name>contextConfigLocation</param-name><param-value>/WEB-INF/security.xml,/WEB-INF/services.xml,/WEB-INF/dispatcher-servlet.xml</param-value></context-param><!--log4jconfig--><context-param><param-name>log4jConfigLocation</param-name><param-value>/WEB-INF/log4j.properties</param-value></context-param><!--========================================================================Filters=========================================================================--><!--<filter><filter-name>performanceFilter</filter-name><filter-class>org.acegisecurity.util.FilterToBeanProxy</filter-class><init-param><param-name>targetClass</param-name><param-value>com.shaneall.web.filter.PerformanceFilter</param-value></init-param></filter>--><filter><filter-name>encodingFilter</filter-name><filter-class>com.shaneall.web.filter.EncodingFilter</filter-class><init-param><param-name>encoding</param-name><param-value>UTF-8</param-value></init-param></filter><filter><filter-name>forbiddenFilter</filter-name><filter-class>com.shaneall.web.filter.ForbiddenFilter</filter-class></filter><filter><filter-name>expiresFilter</filter-name><filter-class>com.shaneall.web.filter.ExpiresFilter</filter-class><init-param><param-name>.css</param-name><param-value>3600</param-value></init-param><init-param><param-name>.jpg</param-name><param-value>3600</param-value></init-param><init-param><param-name>.gif</param-name><param-value>3600</param-value></init-param><init-param><param-name>.js</param-name><param-value>3600</param-value></init-param></filter><filter><filter-name>memoryCacheFilter</filter-name><filter-class>org.acegisecurity.util.FilterToBeanProxy</filter-class><init-param><param-name>targetClass</param-name><param-value>com.shaneall.web.filter.MemoryCacheFilter</param-value></init-param></filter><filter><filter-name>fileCacheFilter</filter-name><filter-class>org.acegisecurity.util.FilterToBeanProxy</filter-class><init-param><param-name>targetClass</param-name><param-value>com.shaneall.web.filter.FileCacheFilter</param-value></init-param></filter><filter><filter-name>acegiFilterChain</filter-name><filter-class>org.acegisecurity.util.FilterToBeanProxy</filter-class><init-param><param-name>targetClass</param-name><param-value>org.acegisecurity.util.FilterChainProxy</param-value></init-param></filter><!--<filter-mapping><filter-name>performanceFilter</filter-name><url-pattern>*.shane</url-pattern><dispatcher>REQUEST</dispatcher></filter-mapping>--><filter-mapping><filter-name>encodingFilter</filter-name><url-pattern>*.shane</url-pattern><dispatcher>REQUEST</dispatcher></filter-mapping><filter-mapping><filter-name>forbiddenFilter</filter-name><url-pattern>*.htm</url-pattern><dispatcher>REQUEST</dispatcher></filter-mapping><filter-mapping><filter-name>expiresFilter</filter-name><url-pattern>*.css</url-pattern></filter-mapping><filter-mapping><filter-name>expiresFilter</filter-name><url-pattern>*.jpg</url-pattern></filter-mapping><filter-mapping><filter-name>expiresFilter</filter-name><url-pattern>*.gif</url-pattern></filter-mapping><filter-mapping><filter-name>expiresFilter</filter-name><url-pattern>*.png</url-pattern></filter-mapping><filter-mapping><filter-name>expiresFilter</filter-name><url-pattern>*.js</url-pattern></filter-mapping><filter-mapping><filter-name>memoryCacheFilter</filter-name><url-pattern>*.shane</url-pattern></filter-mapping><filter-mapping><filter-name>fileCacheFilter</filter-name><url-pattern>*.shane</url-pattern></filter-mapping><filter-mapping><filter-name>acegiFilterChain</filter-name><url-pattern>*.shane</url-pattern></filter-mapping><!--========================================================================Listeners=========================================================================--><listener><listener-class>org.springframework.web.util.Log4jConfigListener</listener-class></listener><listener><listener-class>org.springframework.web.context.ContextLoaderListener</listener-class></listener><!--========================================================================Servlets=========================================================================--><servlet><servlet-name>dispatcher</servlet-name><servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class><load-on-startup>0</load-on-startup></servlet><servlet-mapping><servlet-name>dispatcher</servlet-name><url-pattern>*.shane</url-pattern></servlet-mapping><servlet><servlet-name>ValidateCodeServlet</servlet-name><servlet-class>com.shaneall.web.ValidateCodeServlet</servlet-class><init-param><param-name>width</param-name><param-value>80</param-value></init-param><init-param><param-name>height</param-name><param-value>24</param-value></init-param><init-param><param-name>codeCount</param-name><param-value>4</param-value></init-param></servlet><servlet-mapping><servlet-name>ValidateCodeServlet</servlet-name><url-pattern>/validateCodeServlet.shane</url-pattern></servlet-mapping><!--========================================================================Session=========================================================================--><session-config><session-timeout>30</session-timeout></session-config><welcome-file-list><welcome-file>welcome.jsp</welcome-file></welcome-file-list><!--Uncommentthisifusingwebserver'sJNDI-DataSource<resource-ref><description>Container-managedDataSource</description><res-ref-name>java:comp/env/jdbc/bookstore</res-ref-name><res-type>javax.sql.DataSource</res-type><res-auth>Container</res-auth></resource-ref>--></web-app>

解决方案

解决方案二:
源代码没有,只有封装好的程序.现在求解了.急!!!!!!!!!!!!!!!
解决方案三:
运行环境JDK1.6+TOMCAT6.0.18+MYSQL5.1.40
解决方案四:
没有人帮忙解答吗>???

时间: 2024-10-21 20:51:33

description The requested resource () is not available.50分求解.的相关文章

jsp报错 跳转-The requested resource is not available.

问题描述 The requested resource is not available. 我在webcontent下面没有建01文件夹啊,这个是怎么找到的,为什么我一运行index.jsp就报这个错误 : type Status report message /01/index.jsp description The requested resource is not available. 我的index.jsp只写了这一句话:<%response.sendRedirect("Diary

web.xml-404错误The requested resource is not available.

问题描述 404错误The requested resource is not available. 路径是按web.xml配置的路径,但是还是显示404错误 This is the description of my J2EE componentThis is the display name of my J2EE componentDeleteStuServletservlet.DeleteStuServlet <servlet-mapping> <servlet-name>D

servlet错误The requested resource is not available

问题描述 servlet错误The requested resource is not available 初学jsp,servlet的错误, servlet: import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class HelloWorld extends HttpServlet{ public void doGet(HttpServletRequest request,HttpServ

解决The requested resource is not available的办法

1.问题描述:       eclipse中使用tomcat来运行HelloWorld时出现The requested resource is not available. 在报错中有一行Setting property 'source' to 'org.eclipse.jst.jee.server:HelloWorld' did not find a matching property    运行环境eclipse,tomcat-8.0.20,javaweb 1.2解决办法: 将HelloWo

在k8s中安装flannel的故障解决: Failed to create SubnetManager: error retrieving pod spec for : the server does not allow access to the requested resource

花了一个上午来追踪问题,k8s都反复新建了十多次,docker都重启了几次.(一次显示不有获取磁盘空间,重启docker,清空存储解决) 在用kubeadm安装容器化的几个组件时,flannel组件死活不能启动,报如下问题: Failed to create SubnetManager: error retrieving pod spec for 'kube-system/kube-flannel-ds-xxx': the server does not allow access to the

struts2.0-Struts2显示The requested resource is not available.

问题描述 Struts2显示The requested resource is not available. 为什么老是显示找不到资源呢,刚刚入门,希望大家解答一下 解决方案 花了一段时间把<Thinking in Java>看得差不多了,不过编程这个东西是实用型的,所以自己觉得应该一边做一边对语言进行巩固与进一步的学习.之前听别人说过,eclipse+tomcat的组合还不错,于是找来,配置好.我想做的事情是用它们来做网站,但此时却仍然是一头雾水,十分茫然,即使学,也不晓得从哪里学起.bai

window location-window.location调用java方法时出现 The requested resource is not available.

问题描述 window.location调用java方法时出现 The requested resource is not available. JSP代码 <%@ page language="java" import="jikon.action.*" pageEncoding="UTF-8"%> <% String path = request.getContextPath(); String basePath = requ

tomcat-用JSP页面上传文件转到servlet处理时提示requested resource is not available

问题描述 用JSP页面上传文件转到servlet处理时提示requested resource is not available 我是利用JSP和servlet上传图像,自己写代码和从网上找的代码都是运行到点击上传按钮之后就提示HTTP Status 404(The requested resource is not available),我查看了文件位置.名称都没有错误,另外Tomcat也配置了,否则工程前面的页面无法显示,web.xml里面也配置了servlet的相关事项.一直找不到原因.w

struts2-The requested resource (/StrutsTest/struts.action) is not available.

问题描述 The requested resource (/StrutsTest/struts.action) is not available. 1.struts.xml----------------------------------------------------- <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE struts PUBLIC "-//Apache Softwar