这个The requested resource is not available怎么解决 [问题点数:20分]

Bbs1
本版专家分:0
结帖率 0%
The requested resource is not available.
-
因配置不对,导致出现The requested resource is not available解决方法
在myeclipse下部署web工程时,经常会出现The <em>requested</em> <em>resource</em> is not <em>available</em>这种小问题,不胜其烦,现总结一下: 1.马虎粗心:比如Xml中配置没写对,英文大小写问题,或者servlet路径没写对,servlet中跳转的jsp页面路径和名字等等之类的,所以先仔细检查一下这些小地方。 2.有时图方便,喜欢直接copy、paste重命名一个工程,然
复制项目后修改项目名,添加到tomcat,运行提示The requested resource is not available.
复制SpringMvc框架更改项目名后,部署到Tomact上运行出错 HTTP Status 404 - /VC/index type Status report message /VC/index description The <em>requested</em> <em>resource</em> is not <em>available</em>. <em>解决</em>办法:    点击项目 ----右键Propert
HTTP_Status_404(The_requested_resource_is_not_available)的几种解决方案_补充
HTTP_Status_404(The_<em>requested</em>_<em>resource</em>_is_not_<em>available</em>)的几种<em>解决</em>方案_补充
jsp项目servlet类的访问和servlet中的转发出现the requested resource is not available错误的解决方法
1.我在做jsp项目时用到servlet,刚开始一直访问不了,后来在表单的action属性是加上/项目名才访问成功2。我在servlet实例里进行了转发一开始也是访问不了,找不到jsp页面,知道在jsp页面前加上该页面所在文件夹名字/才访问成功,出现上面两种错误的人可以试下,希望可以帮到你们...
The requested resource (/) is no available
<em>这个</em>问题<em>怎么</em><em>解决</em>?运行的时候是右键--run as--run on server,所以不是路径问题。运行其他项目是可以的,所以tomcat也没有问题。项目是从cvs下载下来的
The requested resource () is not available
[img=http://img.bbs.csdn.net/upload/201408/04/1407129098_711333.jpg][/img]rn[img=http://img.bbs.csdn.net/upload/201408/04/1407129132_520115.jpg][/img]rn[img=http://img.bbs.csdn.net/upload/201408/04/1407129149_640274.jpg][/img]rn[img=http://img.bbs.csdn.net/upload/201408/04/1407129161_111607.jpg][/img]rn[img=http://img.bbs.csdn.net/upload/201408/04/1407129190_871533.jpg][/img]rn[img=http://img.bbs.csdn.net/upload/201408/04/1407129285_899372.jpg][/img]rn能帮我看看问题出在哪里吗,真的很无奈,,
The requested resource ... is not available
jdk1.6rneclipse3.2.1rnmyeclipse5.1.0rntomcat6.0rn在myeclipse新建一个web project项目后在,不能在浏览器中访问到页面rn提示The <em>requested</em> <em>resource</em> ... is not <em>available</em>rn而新建一个web service project项目就可以访问到
The requested resource (/login.do) is not available
web.xml rn rn actionrn org.apache.struts.action.ActionServletrn rn configurern /WEB-INF/struts-config.xmlrn rn 0rn rn rn actionrn *.dorn rn rnrnstruts-congfig.xmlrnrn rn rn rn rn rn rn rn rn rn rn rn rnrnrnlogin.jsprnrn rn username: rn password: rn rn rn rnrn点击提交 出现 The <em>requested</em> <em>resource</em> (/login.do) is not <em>available</em> 错误 求大神解释下
The requested resource (/strutstest) is not available
web.xmlrnrnrnrnrn actionrn org.apache.struts.action.ActionServletrn rn configrn /WEB-INF/struts-config.xmlrn rn rn 0rnrnrnrn actionrn *.dornrnrnrnrnstruts-config.xmlrnrnrnrnrn rn rn rn rn rn rn rn rn rnrnrnrnrnLogin.jsprnrnrnrnrnrn rn Insert title herernrnrn rn username: rn password: rn rn rnrnrn
The requested resource is not available
type Status reportrnrnmessage /a/hello.actionrnrndescription The <em>requested</em> <em>resource</em> is not <em>available</em>.rnrnrn--------------------------------------------------------------------------------rnrnApache Tomcat/7.0.53rn配置,jar包什么的都没问题,tomcat/conf/web也改了.rn求解,纠结两天了。。。。
win7建立无线wifi热点的几个常见的问题
问题汇总:(个人尝试出的一些总结)   1:不出现Microsoft Virtual WiFi Miniport Adapter,或者microsoft virtual wifi miniport adapter有感叹号!       <em>解决</em>方案:先卸载无线网卡的驱动,再执行上面的开启虚拟网卡的命令,就可以了。   2.The hosted network couldn't be star
myclipse中JSP文件运行时,出现“The requested resource is not available”问题解决方法
在myclipse中新建web project,运行JSP文件时出现了The <em>requested</em> <em>resource</em> is not <em>available</em>。一直找不到<em>解决</em>的办法。百度搜索上解释是:1、文件未放到正确的位置,不应该放到WEB-INF里面,把他移动到WEBROOT下面就可以<em>解决</em>。这一点排除,文件位置是正确的。2、web-INF下的web.xml里面的false改为TRUE,但仍然未<em>解决</em>问题。...
打印管理系统5.3试用版
管理系统5.3试用版(去广告以及限制的功能)
The requested resource (/JSPExample/registerServlet) is not available
HTTP Status 404 - /JSPExample/registerServletrnrn--------------------------------------------------------------------------------rnrntype Status reportrnrnmessage /JSPExample/registerServletrnrndescription The <em>requested</em> <em>resource</em> (/JSPExample/registerServlet) is not <em>available</em>.rnrnrn--------------------------------------------------------------------------------rnrnApache Tomcat/6.0.35
The requested resource (/Demo/login.do) is not available
Web.xml配置rnrnrn Demorn rn actionrn org.apache.struts.action.ActionServletrn rn configrn /WEB-INF/struts-config.xmlrn rn rn debugrn 2rn rn rn detailrn 2rn rn 0rn rn rn actionrn *.dorn rn rn login.jsprn rn rn rn /tags/struts-beanrn /WEB-INF/struts-bean.tldrn rn rn /tags/struts-htmlrn /WEB-INF/struts-html.tldrn rn rn /tags/struts-logicrn /WEB-INF/struts-logic.tldrn rn rn /tags/struts-nestedrn /WEB-INF/struts-nested.tldrn rn rnrnstruts-config.xmlrn rnrnrn rn rn rn rn rn rn rn rn rn rn rnrn工程目录[img=C:\Users\Administrator\Desktop\1.png][/img]
该死的The requested resource (/admin) is not available
安装了Tomcat5以后,运行服务,打开 http://127.0.0.1:8080/admin 提示 The <em>requested</em> <em>resource</em> (/admin) is not <em>available</em> <em>怎么</em><em>解决</em>?
The requested resource (/hello/dispaly.jsp) is not available
这是一个很简单的例子,在重装之前时刻已运行的,重装之后,第一个页面login.jsp可以看到,但在跳转到第二个页面display.jsp时就会出现404的问题:The <em>requested</em> <em>resource</em> (/hello/dispaly.jsp) is not <em>available</em>rnrn下面是程序源代码:rn[b](1)UserBean.java[/b]rnpackage user;rnrnpublic class UserBean rnrn private String username;rn private String password;rn public String getUsername() rn return username;rn rn public void setUsername(String username) rn this.username = username;rn rn public String getPassword() rn return password;rn rn public void setPassword(String password) rn this.password = password;rn rnrn[b](2)login.java[/b]rnrnrn rnusernamern rnpassword rn rnrnrnrnrn[b](3)display.java[/b]rnrnrnrnrnrn rnyour password is:rnrn[b](4)目录结构如下(MyEclipse6.0)[/b]rnhello(工程/项目名)rn srcrn userrn WebRootrn login.jsprn display.jsprn(当然有一些自动生成的目录及文件没有列出,还有web.xml我已经修改过了,将index.jsp替换成login.jsp)rn请问为什么,从login.jsp跳转到display.jsp会出现异常呢,以前可以用,什么classpath,path等都设置过,例子是书上的
The requested resource (/HTTP/1.1) is not available
编了个访问Tomcat的小程序,rnrnpackage TestHttp;rnrnimport java.io.BufferedReader;rnimport java.io.IOException;rnimport java.net.Socket;rnimport java.net.UnknownHostException;rnimport java.io.*;rnrnrnpublic class Test rnrn public static void main(String[] args) throws UnknownHostException, IOException rn String ss;rn rn Socket s = new Socket("127.0.0.1", 8080);rn rn OutputStream os = s.getOutputStream();rn rn PrintWriter pw = new PrintWriter(os);rn rn pw.println("GET /HTTP/1.1 ");rn pw.println("Host:localhost");rn pw.println("Content-type: text ml");rn pw.println();rn pw.flush();rn rn BufferedReader bf = new BufferedReader(new InputStreamReader(s.getInputStream()));rn rn while(( ss =bf.readLine())!=null) rn System.out.println(ss);rn rn rn bf.close();rn pw.close();rn os.close();rn s.close();rn rn rnrnrn返回一些文本rnrn Apache Tomcat/7.0.11 - Error report HTTP Status 404 - /HTTP/1.1 type Status report message /HTTP/1.1 description The <em>requested</em> <em>resource</em> (/HTTP/1.1) is not <em>available</em>. Apache Tomcat/7.0.11rnrn转为html格式,显示为 HTTP 404 异常rnThe <em>requested</em> <em>resource</em> (/HTTP/1.1) is not <em>available</em>.rnrn我用的是Tomcat 7.0,不知什么原因产生此异常……rnrnrn
The requested resource (/FirstDemo/login.jsp) is not available
刚学struts, 然而做第一个例子就碰到问题。rn如标题。rn希望哪位大侠帮忙<em>解决</em>下。。
The requested resource (/stru/login.do) is not available
刚接触struts2 按照书上的操作,但是总是出现<em>这个</em>错误,比对以后不知道到底是哪个地方出现问题,请高手帮指点一下 rnindex.jsp代码如下:rnrn rn 用户: rn 密码: rn rn rn rnrnweb.xml配置如下:rn rn struts2rn org.apache.struts2.dispatcher.FilterDispatcherrn rn rn struts2rn /*rn rnrnstruts.xml 配置如下:rn rn rn rn /pages/loginSuc.jsprn /pages/loginFail.jsprn rn rnrnrn错误提示信息:rnrntype Status reportrnrnmessage /stru/login.dornrndescription The <em>requested</em> <em>resource</em> (/stru/login.do) is not <em>available</em>.rnrnrn本人刚接触,希望高手帮指点一下,到底是哪个地方出现问题?
struts2-404错误--The requested resource is not available
struts2-404错误--The <em>requested</em> <em>resource</em> is not <em>available</em>rn真心搞不懂为什么了。今天才开始学就遇到<em>这个</em>不能打开的问题。请大家帮忙看看。rnrn[img=http://img.bbs.csdn.net/upload/201406/03/1401792132_558533.png][/img]rnrn[b]web.xml[/b]rnrnrnrn StrutsTestrnrn rn struts2rn rn org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilterrn rn rn rn struts2rn /*rn rn rnrn Index.jsprn rn rnrnrnrnrn[b]struts.xml[/b]rnrnrnrnrn rnrnrn/hello.jsprn/validateLogin.jsprnrnrnrnrn[b]Index.jsp[/b]rnrnrnrnrnrn rn Insert title herernrnrnrnrnrnrnrnrnrnrnrnrnrn[b]LoginAction.javarn[/b]rnrnrnpackage com.action;rnimport com.opensymphony.xwork2.ActionSupport; rnpublic class LoginAction extends ActionSupport rn public static final long serialVersionUID = 1L;rn private String name;rn private int age;rn private String tel;rn rn public String getName()rn return name; rn rn public void setName(String name)rn this.name = name; rn rnrn public void setAge(int age) rn this.age = age;rn rn public int getAge() rn return age;rn rn public String getTel() rn return tel;rn public void setTel(String tel) rn this.tel = tel;rn rn @Overridern public String execute() throws Exception rn // TODO Auto-generated method stubrn return "hello";rn rn @Overridern public void validate() rn // TODO Auto-generated method stubrn System.out.println("11111");rn rn public void validateLog() rn // TODO Auto-generated method stubrn System.out.println("ssssss");rn if(age30)rn addFieldError("age", "7777777777");rn rn rnrnrn[b]hello.jsp[/b]rnrnrnrnrnrn rn Insert title herernrnrnName: rnAge: rnTelephone: rnrnrnrn[b]validateLogin.jsp[/b]rnrnrnrnrn rn Insert title herernrnrnAge: Wrong rnrnrnrnrn[img=http://img.bbs.csdn.net/upload/201406/03/1401792378_207848.png][/img]rn[img=http://img.bbs.csdn.net/upload/201406/03/1401792388_73530.png][/img]rnrnrn真心不明白为什么。小女子先谢过大家。。
The requested resource (/gest/) is not available的问题
小弟我写了一个测试查询 程序很简单 就是用户注册和登录 我的web.xml配置如下rnrnrnrn rn actionrn org.apache.struts.action.ActionServletrn rn configrn /WEB-INF/struts-config.xmlrn rn rn debugrn 3rn rn rn detailrn 3rn rn 0rn rn rn actionrn *.dorn rn rn index.jsprn rn rn rn contextConfigLocation rn /WEB-INF/applicationContext.xml rn rn rn context rn org.springframework.web.context.ContextLoaderServlet rn 1 rn rnrn rn rn org.springframework.web.util.Log4jConfigListenerrn rn rn rn rnrnrn开始是能运行的 中途我重新导入到tomcat后就不行了 现在页面显示:rntype Status reportrnrnmessage /gest/rnrndescription The <em>requested</em> <em>resource</em> (/gest/) is not <em>available</em>.rnrn谢谢各位!
(二)Solr的安装配置及部署
下载solr下载地址:http://archive.apache.org/dist/lucene/solr/或去百度云盘链接:链接:http://pan.baidu.com/s/1o8wGwuI 密码:wm8s1、将solr-6.3.0\server\solr-webapp下的solr.war拷贝到apache-tomcat-8.5.8\webapps下,启动tomcat解压solr.war,解压完
ssh5的源文件
一直出现HTTP Status 404 - Servlet action is not <em>available</em> -------------------------------------------------------------------------------- type Status report message Servlet action is not <em>available</em> description The <em>requested</em> <em>resource</em> (Servlet action is not <em>available</em>) is not <em>available</em>. -------------------------------------------------------------------------------- Apache Tomcat/5.5.25的问题
description The requested resource (Servlet jsp is not available) is not availab
HTTP Status 404 - Servlet jsp is not <em>available</em>rnrn--------------------------------------------------------------------------------rnrntype Status reportrnrnmessage Servlet jsp is not <em>available</em>rnrndescription The <em>requested</em> <em>resource</em> (Servlet jsp is not <em>available</em>) is not <em>available</em>.rnrnrnrn这是<em>怎么</em>个情况?之前的发布都可以,突然所有都不行了。
description The requested resource (Servlet action is not available) is not avai
rnrnrnrnrn rn rn rn My JSP 'queryAllStu.jsp' starting pagern rn rn rn rn rn rn rnrn rn rn rn rn rn rn rn 学号:rn rn rn rn 姓名:rn rn rn rn 性别:rn 男女rn rn rn rn rn rn rn rn rn rn 学生信息表 rn 学号 姓名 性别rn rn rn rn rn rn rn rn rn rn rnrnrnrnTomact已经启用了 用浏览器打开出现下面的提示rnHTTP Status 404 - /Prj03/addStu.jsprnrn--------------------------------------------------------------------------------rnrntype Status reportrnrnmessage /Prj03/addStu.jsprnrndescription The <em>requested</em> <em>resource</em> (/Prj03/addStu.jsp) is not <em>available</em>.rnrnrn--------------------------------------------------------------------------------rnrnApache Tomcat/6.0.35rnrn这是为什么? 我的路径是正确的啊
(IDEA)使用struts2后出现启动拦截器失败
ClassNotFoundException: org...dispatcher.ng.filter.StrutsPrepareAndExecuteFilter   1、确保所有struts2所需要的包都导进去了(红色标记的),如图:  2、将外部lib下的包都复制到WEB-INFO下: 重新运行程序,成功! 也就是说,Tomcat默认从WEB-INF/
Struts2 出现struts The requested resource () is not available
[img=http://img.bbs.csdn.net/upload/201505/15/1431682253_622144.png][/img]rnrnweb.xmlrnrnrnrn Struts 2 rn rn index.jsprn rn rn rn struts2rn rn org.apache.struts2.dispatcher.FilterDispatcherrn rn rnrn rn struts2rn /*rn rnrn/*rn删掉 rn rn struts2rn rn org.apache.struts2.dispatcher.FilterDispatcherrn rn rnrn rn struts2rn /*rn rn就不会出现错误,但是点击按钮就没用了rn*/rnstruts.xmlrnrnrnrnrnrn rn rn rn /HelloWorld.jsprn rn rnrnrnHelloWorldAction.javarnrnrnpackage com.tutorialspoint.struts2;rnrnpublic class HelloWorldActionrn private String name;rnrn public String execute() throws Exception rn return "success";rn rn rn public String getName() rn return name;rn rnrn public void setName(String name) rn this.name = name;rn rn rnrnindex.jsprnrnrnrnrnrnrnrnrn rn rn rn My JSP 'index.jsp' starting pagern rn rn rn rn rn rn rn rn rn Hello World From Struts2rn rn Please enter your name rn rn rn rn rnrnrnhelloWorld.jsprnrnrnrnrnrnrnrnrn rn rn rn My JSP 'helloWorld.jsp' starting pagern rn rn rn rn rn rn rnrn rn rn rn Hello World, rn rnrnrn初学Struts2 看不懂啊。。。找不到哪里错了
The requested resource (Servlet action is not available) is not available.
输入用户名 密码,点击登录按钮,应该跳到user.do处理,但老是提示找不到actionrnindex.jsp中rnstruts-config.xml中rn有UserAction.javarn会是哪的问题呢
JSP初用者的问题:The requested resource (……) is not available
今天开始试着使用jdk+tomcat的环境rnrnj2sdk1.4.2_04,安装完配置环境变量,rn测试rnpublic class Test rnpublic static void main(String args[]) rnSystem.out.println("This is a test program."); rn rnrn等一切正常rnrn安装Tomcat5.0后,变量配置等工作都完成,启动tomcat,在IE中访问http://localhost:8080 ,小猫也看到了。rnrn对着网上找来的资料,继续玩下去:rnrnHTML页面测试rn创建一个html文件Hello.html。rnrnrnrn HTML 测试rnrnrn HTML 测试rn欢迎。rnrnrn在Tomcat的webapps下创建一个文件夹myJSPServlet。rn将Hello.html保存到文件夹myJSPServlet中。rn在浏览器的地址栏输入http://localhost:8080/myJSPServlet/Hello.html。rnrn就开始出现这样的问题了:rnHTTP Status 404 - /myJSPServlet/Hello.jsprntype Status reportrnmessage /myJSPServlet/Hello.jsprndescription The <em>requested</em> <em>resource</em> (/myJSPServlet/Hello.jsp) is not <em>available</em>.rnrnHello.html<em>这个</em>文件的内容本身肯定没有问题,直接打开<em>这个</em>html文件一切正常。rnrn网上搜了好多,也没找到原因和<em>解决</em>的办法,狂受打击,本以为好简单的。请达人帮忙,感激!
PHP的环境搭建(艰辛搭配经历,最后终于搭建好了。HTTP Error 404. The requested resource is not found.解决方法之一)
PHP的环境搭建(艰辛搭配经历,最后终于搭建好了) HTTP Error 404. The <em>requested</em> <em>resource</em> is not found. 的错误<em>解决</em>方法之一(需要更改端口为空闲端口,如82, 8080, 8088)都可以; 分享一下Win10从0开始搭建PHP服务器到最后的php编辑器的运行成功
【错误】The requested resource (/addressbook/logon.jsp) is not available
========错误原文:====rnHTTP Status 404 - /addressbook/logon.jsprntype Status reportrnmessage /addressbook/logon.jsprndescription The <em>requested</em> <em>resource</em> (/addressbook/logon.jsp) is not vailable.rnApache Tomcat/4.1.27-LE-jdk1rnrn=======自己调试结果:=====rn1、tomcat3.3下面可以运行,但是4.0或者4.1就不行了!
struts登录页面显示The requested resource (/login.jsp) is not available
login.jsp和各项配置都已经写好,但是报以上错误,请教rn另外以前运行<em>这个</em>程序正常,但突然就不能访问了
netbeans创建web应用遇到的问题
netbeans官方教程教程讲的很清楚,不过我按照上面写的做完之后,运行并没有得到预期的结果。结果应该是这样的:但是现实确实这样的:HTTP Status 404 - Not Foundtype Status reportmessageNot FounddescriptionThe <em>requested</em> <em>resource</em> is not <em>available</em>.GlassFish Server Open ...
学习docker
下面的内容是对docker的简单操作,包括启动docker,下载image,运行image,查看容器的详细信息、在容器中安装新程序,保持刚刚修改的容器,发布自己的镜像到docke Hub上。所有操作步骤是一步一步进行的,能够让初学者直观地感受一下docker的作用。 说明: 1、在看本博客之前,请先确认您已经安装好了docker。本人的docker运行在win上面。 2、为了提高写博
XAMPP:外网无法访问服务器的数据库
Xampp问题之一:XAMPP:Access to the <em>requested</em> object is only <em>available</em> from the local network. You don't have permission to access /phpmyadmin/ on this server <em>解决</em>方式:1,查找http-xampp.conf文件 。            
tensorflow报错集锦
1.ValueError: Tensor conversion <em>requested</em> dtype int64 for Tensor with dtype float32: 'Tensor(&quot;loss/mul:0&quot;, shape=(), dtype=float32)'<em>解决</em>方法:将报错项进行格式转换tf.to_float(self.predictions))...
若能解决肯定结贴 servlet 留言板 The requested resource is not available
各位大神帮帮忙,我是要做一个留言板用JSP+servlet,可是老师出现<em>这个</em>问题rntype Status reportrnrnmessage /CH009/AddMessageServletrnrndescription The <em>requested</em> <em>resource</em> is not <em>available</em>.rnrnApache Tomcat/7.0.57rnrn以下是我的JSP和servlet代码rnrnrnrnrnrnrn rn rn rn 留言板面rn rnrnrn rn rn rn rn 留言者: rn 留言标题: rn 留言内容:rn rn rn rn 查看留言rn rn rn rn rnrnrnrnpackage servlet;rnrnimport java.io.IOException;rnimport java.io.PrintWriter;rnimport java.text.SimpleDateFormat;rnimport java.util.ArrayList;rnimport java.util.Date;rnrnimport javax.servlet.ServletContext;rnimport javax.servlet.ServletException;rnimport javax.servlet.http.HttpServlet;rnimport javax.servlet.http.HttpServletRequest;rnimport javax.servlet.http.HttpServletResponse;rnimport javax.servlet.http.HttpSession;rnrnpublic class AddMessageServlet extends HttpServlet rnrn public AddMessageServlet() rn super();rn rn public void destroy() rn super.destroy(); // Just puts "destroy" string in logrn // Put your code herern rnrn public void doGet(HttpServletRequest request, HttpServletResponse response)rn throws ServletException, IOException rnrn doPost(request,response);rn rnrn public void doPost(HttpServletRequest request, HttpServletResponse response)rn throws ServletException, IOException rn String author=new rn String(request.getParameter("author").getBytes("ISO-8859-1"),"UTF-8");rn String title=new rn String(request.getParameter("title").getBytes("ISO-8859-1"),"UTF-8");rn String content=new rn String(request.getParameter("content").getBytes("ISO-8859-1"),"UTF-8");rn SimpleDateFormat format=new rn SimpleDateFormat("yyyy-MM-dd HH:mm:ss");rn String today=format.format(new Date());rn MessageBean mm=new MessageBean();rn mm.setAuthor(author);rn mm.setTitle(title);rn mm.setTime(today);rn mm.setContent(content);rn HttpSession session=request.getSession();rn ServletContext scx=session.getServletContext();rn ArrayList wordlist=(ArrayList)scx.getAttribute("wordlist");rn if(wordlist==null)rn wordlist=new ArrayList();rn wordlist.add(mm);rn scx.setAttribute("wordlist", wordlist);rn response.sendRedirect("showMessage.jsp"); rn rn public void init() throws ServletException rn // Put your code herern rnrnrn*********************************************************************************************rnrnrnrnrnrnrnrn rn rn rn 显示留言内容rn rn rn rn =0;i--)rn MessageBean mm=(MessageBean)wordlist.get(i); rn %>rn 留言者:rn 留言时间:rn 留言标题:rn 留言内容:rn rn rn rn rn 我要留言rn rn rn rnrnrn**************************************************************************************************rnpackage servlet;rnrnpublic class MessageBean rn private String author;rn private String title;rn private String content;rn private String time;rn public MessageBean() rn super();rn rn public String getAuthor() rn return author;rn rn public void setAuthor(String author) rn this.author = author;rn rn public String getTitle() rn return title;rn rn public void setTitle(String title) rn this.title = title;rn rn public String getContent() rn return content;rn rn public void setContent(String content) rn this.content = content;rn rn public String getTime() rn return time;rn rn public void setTime(String time) rn this.time = time;rn rn rn rnrn
description The requested resource (/myapp/Test) is not available如何解决???
Test.java,文件内容如下: rnpackage test; rnimport java.io.IOException; rnimport java.io.PrintWriter; rnimport javax.servlet.ServletException; rnimport javax.servlet.http.HttpServlet; rnimport javax.servlet.http.HttpServletRequest; rnimport javax.servlet.http.HttpServletResponse; rnpublic class Test extends HttpServlet rnprotected void doGet(HttpServletRequest request, HttpServletResponse response) rnthrows ServletException, IOException rnPrintWriter out=response.getWriter(); rnout.println(" This is a servlet test."); rnout.flush(); rn rn rn2 .编译 rn将Test.java放在c:\test下,使用如下命令编译: rnC:\Test>javac Test.java rn然后在c:\Test下会产生一个编译后的servlet文件:Test.class rn3 .将结构test\Test.class剪切到%CATALINA_HOME%\webapps\myapp\WEB-INF\classes下,也就是剪切那个test目录到classes目录下,如果classes目录不存在,就新建一个。 现在webapps\myapp\WEB-INF\classes下有test\Test.class的文件目录结构 rn4 .修改webapps\myapp\WEB-INF\web.xml,添加servlet和servlet-mapping rn编辑后的web.xml如下所示,红色为添加的内容: rn rnrn rnrnMy Web Application rn rnA application for test. rn rn rnTest rnTest rnA test Servlet rntest.Test rn rn rnTest rn/Test rn rn rn这段话中的servlet这一段声明了你要调用的Servlet,而servlet-mapping则是将声明的servlet“映射”到地址/Test上 rn5 .好了,启动Tomcat,启动浏览器,输入http://localhost:8080/myapp/Test rnrnrn运行出现如下显示?rndescription The <em>requested</em> <em>resource</em> (/myapp/Test) is not <em>available</em>rnrn
从零开始的ORB-SLAM2生活
在http://vision.in.tum.de/data/datasets/rgbd-dataset/download上下载并解压好数据集后 cd到数据集的目录,mv rgbd_dataset_freiburg1_xyz /usr/slam_tools然后进入ORB_SLAM2目录sudo ./Examples/Monocular/mono_tum Vocabulary/ORBvoc.txt ...
关于doPost或doGet调用出错
Servlet 出错:Servlet  eroor:HTTP method GET is not supported by this URtype: Status reportmessage: HTTP method GET is not
The requested resource is in use. 怎么解决啊?
IIS5。0rn我进行了部分权限配置rn访问ASP文件的时候出现The <em>requested</em> <em>resource</em> is in use. <em>怎么</em><em>解决</em>啊?
The requested resource is in use.错误怎么解决
当执行WEB服务器的HTM文件正常,rn执行ASP文件时不能被执行,就有这样的错误信息:The <em>requested</em> <em>resource</em> is in use.rn<em>这个</em>该<em>怎么</em><em>解决</em>啊。
自定义标怎么老是出错The requested resource (/tag/MyJsp.jsp) is not available
出错信息为:rntype Status reportrnrnmessage /tag/MyJsp.jsprnrndescription The <em>requested</em> <em>resource</em> (/tag/MyJsp.jsp) is not <em>available</em>.rnrn我写的标签处理类是infoTagExamplernpackage edu.j2ee.tag;rnrnimport javax.servlet.jsp.*;rnimport javax.servlet.jsp.tagext.*;rnimport java.io.Writer;rnimport java.io.IOException;rnrnpublic class infoTagExample extends TagSupportrnrn String username;rn public infoTagExample()rn rn super();rn rn rn public void setUserName(String user)rn rn username = user;rn rn rn public int doStartTag() throws JspTagExceptionrn rn System.out.println("doStartTag");rn tryrn rn pageContext.getOut().write("welcome " + username);rn rn rn catch(Exception e)rn rn e.printStackTrace();rn rn return SKIP_BODY;rn rn rnrnrn定义的TLD文件为mytld.tldrnrnrn rn this taglib provides tag example.rn JSTL XMLrn 1.2rn mytagrn http://java.sun.com/jsp/jstl/xmlrn rn inforn edu.j2ee.shop.infoTagExamplern emptyrn rn userNamern truern truern rn rn rn rnweb.xml文件为rnrnrn Welcome to tomcatrn JSP examplern rn /demotagrn /WEB-INF/mytag.tldrn rn rnrnjsp为rnrnrnrn custom tagrn rnrnrn rnrnrn rnrnrn出错信息为:rntype Status reportrnrnmessage /tag/MyJsp.jsprnrndescription The <em>requested</em> <em>resource</em> (/tag/MyJsp.jsp) is not <em>available</em>.rnrn哪位大哥帮帮忙?
SpringMVC项目中常见问题以及解决方案
一、org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application  1、问题原因:    缺少相关jar(jstl
Tomcat安装问题
问题描述  tomcat安装完成后,在浏览器中测试出现如下错误:Not Found (HTTP Error 404. The Requested Resource is not found),如下图所示: 图1 <em>解决</em>过程  看到<em>这个</em>,我首先就觉得肯定是安装的时候选择jdk路径选择错啦,因为安装教程上说jdk的路径不用手动选择,软件会自动查找路径的。所以就没有改路径,
Docker镜像上传失败的解决办法
自己封装好的镜像,上传至Docker Hub时失败,总是提示“denied: <em>requested</em> access to the <em>resource</em> is denied”,原因很简单:未登录Docker账号!“Please login prior to push”!登录后再进行上传操作,问题迎刃而解,如下所示:...
用系统sfc.exe程序检测修复系统文件
 一下说明来自微软官方帮助:https://support.microsoft.com/en-us/kb/929833#bookmark-manually%20repair.感觉这篇文档讲得很简明所以不作翻译。 sfc.exe所在目录:%systemDisk%:\windows\system32\sfc.exe. Use the System File Checker tool to r
附录 F,GSM 无线资源管理的详尽原因
Cause value = 0  Normal release;正常释放 indicatesthat the channel is released because of a normal event. Cause value = 1  Abnormal release, unspecified;异常释放,没有具体说明 indicatesthat the channel is releas
死锁了,怎么办?
早晨,迷糊的两个室友一个拿了牙膏,一个拿了牙刷。两个人同时,想拿到对方的东西,好在一个室友发现自己拿错了,相视一笑,说句调侃的话,就完事啦。 如果在计算机中,只用一套牙膏牙刷。此时两个进程,循环等待,便构成了死锁。听老师说这是个很严肃的问题,我们要认真对待(严肃脸)。 那么死锁了,<em>怎么</em>办呢?老师说,书上都写着。(鸦雀无声)好嘛,还是看书吧。 死锁条件和模型
myeclipse--struts--the requested resources is available
兄弟我正在学struts,用的是myeclipse7.0,令人烦躁的是myeclipse总是出现一些莫名其妙的问题,如the <em>requested</em> <em>resource</em>s is <em>available</em> 有的时候试了很多次,又可以了,我都快崩溃了。是不是版本的问题呢?各位可曾遇到过类似问题?有什么好的<em>解决</em>方法?
Tomcat的部署,服务器不能联网时,会报错(DTD,dom4j)
最近碰到一个问题:Web项目在本机和现网服务器的Tomcat里部署运行的挺好,在内网服务器上却出现如下的错误: HTTP Status 404 - /desktop/admin_login.htm type Status report message /desktop/admin_login.htm description The <em>requested</em> <em>resource</em> is
合买平台搭建配置https实践操作记录
1.合买平台搭建 Q1446595067 参考文档 haozbbs.com 2.访问方式简易说明 参考文档 haozbbs.com 前面一篇:traefik基础部署记录,介绍了最简单的http访问traefik,访问过程参考见下: client — (via http) —&amp;gt; traefik —- (via http) —-&amp;gt; services 现在要实践的是更安全也更...
解决android 5.0 webview不能加载http与https混合内容的问题
在Android Lollipop上webview默认不允许加载http与https混合内容,比如你访问的网页为http://xxx.com/a.html, 则如果a.html包含了https的res,则此res不会显示。如果仔细观察log,可以看到如下的内容提示: 。。。。。。was loaded over HTTPS, but <em>requested</em> an insecure image。。
Oracle 启动故障案例之--ORA-600 [4193]错误
Oracle 启动故障案例之--ORA-600 [4193]错误 操作系统:Oracle Linux 5 数据库:    Oracle 11gR2(11.2.0.3.0) 一、故障现象: 1、在做了redo log当前日志组被破坏恢复的测试后 2、启动数据库后出现ORA-600 【4193】的错误 3、数据库被强制关闭 查看告警日志: [oracle@ocm1 ~]$ ta
一起学Maven(Maven仓库管理器之应用Nexus)
hosted,本地仓库,<em>这个</em>仓库主要是用来存放本地的依赖包,服务于局域网,不访问公网 proxy,代理仓库,用来存放nexus从公网中获取的依赖包,这里有中央仓库,Apache和Codehaus开源网站的依赖包 group,仓库组,用来合并多个hosted/proxy仓库,通常我们配置maven依赖仓库组
spring boot项目实战:跨域问题解决
背景前后端分离架构,前端anglerjs,后端spring boot,使用shiro作为权限控制,已配置通用跨域请求支持。 前端调用接口时部分情况正常,部分情况出现跨域请求不支持情况,错误信息如下:Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' hea
ssh 初学 The requested resource (Servlet action is not available) is not available. 问题
我 照着视频 做的 rn我 rn rn rn rn rn rn rn rn rn rnrnrnrn rn但是 就是出现上面的情况 rn如果 我不把 struts交给spring管理的话 就正确.........rn<em>这个</em>情况 我在网上 查了 还是 没有<em>解决</em> rn大家 给点意见rn
SSH整合的头痛问题:The requested resource (/ssh/login.do) is not available
小弟初学SSH整合,碰到<em>这个</em>问题难了我好多天rn在网上找了几天都没<em>解决</em>rn请大虾们指教指教^-^rndescription:The <em>requested</em> <em>resource</em> (/ssh/login.do) is not <em>available</em>.rnapplicationContext.xml:rnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn org.hibernate.dialect.SQLServerDialectrn rn rn rn rn rn com/zdw/vo/User.hbm.xmlrn rn rn rn rn rn rn rn rnrnrn rn rn rn rn rnrn rn rn rn rn rnrnrnstruts-config.xml:rnrn rn rn rnrn rnrn rn rn rn rn rn rnrn rnrn rn rn rn rn rn rn rn rn rnrnrnweb.xml:rnrn rn actionrn org.apache.struts.action.ActionServletrn rn configrn /WEB-INF/struts-config.xmlrn rn rn debugrn 3rn rn rn detailrn 3rn rn 0rn rn rn actionrn *.dorn rn rn index.jsprn rn
ssh 错误 description The requested resource (Servlet action is not available) is not available.
web.xmlrnrnrnrn rn actionrn org.apache.struts.action.ActionServletrn rn configrn /WEB-INF/struts-config.xmlrn rn rn debugrn 3rn rn rn detailrn 3rn rn 0rn rn rn actionrn *.dorn rn rn index.jsprn rnrnrnstruts-config.xmlrnrnrnrnrn rn rn rn rn rn rn rn rn rnrn rn rn rn rn rn rnrn rn rn rn rn rnrnrnrnapplicationContext.xmlrnrnrnrnrnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn org.hibernate.dialect.MySQLDialectrn rn truern rn rn rn rn bit/jeffy/orm/Admin.hbm.xmlrn bit/jeffy/orm/Flights.hbm.xmlrn bit/jeffy/orm/Orderitems.hbm.xmlrn bit/jeffy/orm/Orders.hbm.xmlrn bit/jeffy/orm/Users.hbm.xmlrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn PROPAGATION_REQUIREDrn PROPAGATION_REQUIRED,readOnlyrn PROPAGATION_REQUIRED,readOnlyrn rnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rnrnrnrnrnssh 错误 description The <em>requested</em> <em>resource</em> (Servlet action is not <em>available</em>) is not <em>available</em>.rn意思是找不到Action类,我也在网上找了好多答案,说是一些包冲突,删了就可以了,但我的不行,还有就是没错,我已经搞了两天了,精疲力尽了.现在贴出来,希望各位前辈帮看下,感激不尽!!!rn
eclipse新手妹子求解入门Web问题【The requested resource is not available
刚开始做Dynamic Web Project,然后发现第一个HTML都不能正常显示,做SE的时候环境变量已经配置好,html的jar插件也下了。rn下面是html和servlet的内容,麻烦大家帮忙看一下是什么问题rnhtml:rnrnrnrn rn Insert title herernrnrn FORM DEMOrn rn rnFirst name: rnLast name:rn rn email:rnrn rnMale Female rnrnrnrnrnrn然后<em>这个</em>是Servlet:rnpackage controller;rnrnimport java.io.IOException;rnimport java.io.PrintWriter;rnrnimport javax.servlet.ServletException;rnimport javax.servlet.annotation.WebServlet;rnimport javax.servlet.http.HttpServlet;rnimport javax.servlet.http.HttpServletRequest;rnimport javax.servlet.http.HttpServletResponse;rnrn/**rn * Servlet implementation class DisplayServletrn */rn@WebServlet("/show")rnpublic class DisplayServlet extends HttpServlet rn private static final long serialVersionUID = 1L;rn rn /**rn * @see HttpServlet#HttpServlet()rn */rn public DisplayServlet() rn super();rn // TODO Auto-generated constructor stubrn rnrn /**rn * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)rn */rn protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException rn doPost(request, response);rn// response.getWriter().append("Served at: ").append(request.getContextPath());rn rnrn /**rn * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)rn */rn protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException rn String f=request.getParameter("firstname");rn String l=request.getParameter("lastname");rn String e=request.getParameter("email");rn String s=request.getParameter("sex");rn PrintWriter out=response.getWriter();rn out.println("");rn out.println(" THIS IS MY SECOND SERVLET");rn out.println(" ");rn out.println(" "+f);rn out.println(" "+l);rn out.println(" "+e);rn out.println(" "+s);rn out.println("");rn rn rnrnrnrn然后<em>这个</em>是错误提示:rnHTTP Status 404 - rnrnrntype Status reportrnrnmessage rnrndescription The <em>requested</em> <em>resource</em> is not <em>available</em>.rnrnrnApache Tomcat/8.0.29rnrnrn我把Tomcat8.0和eclipse都重装了,找了好几天都不知道是<em>怎么</em>回事。麻烦大家帮忙看看是哪里的问题,多谢了[img=http://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/onion/3.gif][/img]rn
菜鸟学struts2,高手指点下,老是报错:The requested resource is not available
1、login.jsprn rn userName: rn passWord: rn rn rn2、result.jsprn rnuserName:$requestScope.username rnpassword:$requestScope.password rn rn3、类LoginAction rnpackage com.test.action;rnpublic class LoginAction rnprivate String username;rnpublic String getUserName() rnreturn username;rnrnpublic void setUsername(String username) rnthis.username = username;rnrnprivate String password;rnpublic String getPassword() rnreturn password;rnrnpublic void setPassword(String password) rnthis.password = password;rnrnpublic String execute() throws Exceptionrnrnreturn "success";rnrnrn4、struts配置rnrnrnrnrnrn/result.jsprnrnrnrnrn5、过滤rnrnrnrnrnstruts2rnorg.apache.struts2.dispatcher.FilterDispatcherrnrnrnrnstruts2rn/*rnrn
JSP中调用SERLET出现 description The requested resource (/SUB) is not available
JSP中有 rnrnrn1,JSP和SERLET在一个目录中rn 但点击确定铵钮出现不能调用SERLVETrnrn2.JBUILDER中JSP文件和SERLET文件默认不是在同一个目录中,这是为什么?
紧急求救,过滤器配置问题报错:The requested resource (/student/) is not available
我的web.xml配置文件如下:rnrnrnrnrnrnrnrncontextConfigLocationrnrn/WEB-INF/base-config.xmlrn/WEB-INF/applicationContext.xmlrn/WEB-INF/dataAccessContext.xmlrnrnrnrn rnrnrnsetCharacterEncodingrncom.huawei.fan.common.SetCharacterEncodingrnrnrnencodingrnGB2312rnrnrn rnignore rntrue rnrnrnrnrnsetCharacterEncodingrnactionrnrnrnrnrnrnorg.springframework.web.context.ContextLoaderListenerrnrnrnrnrnrnrnrnrnrnrnrnactionrnorg.apache.struts.action.ActionServlet rnrnconfigrn/WEB-INF/struts-config.xmlrnrnrndebugrn3rnrnrndetailrn3rnrn2rnrnrnrnrnactionrn*.dornrnrnrnrnindex.jsprnrnrnrnrnrnrn/WEB-INF/struts-bean.tldrn/WEB-INF/struts-bean.tldrnrnrn/WEB-INF/struts-html.tldrn/WEB-INF/struts-html.tldrnrnrn/WEB-INF/struts-logic.tldrn/WEB-INF/struts-logic.tldrnrnrn/WEB-INF/struts-tiles.tldrn/WEB-INF/struts-tiles.tldrnrnrnrnrn这时报错为:type Status reportrnrnmessage /student/rnrndescription The <em>requested</em> <em>resource</em> (/student/) is not <em>available</em>.rnrn如果把过滤器的配置注释掉即:rnrnsetCharacterEncodingrncom.huawei.fan.common.SetCharacterEncodingrnrnrnencodingrnGB2312rnrnrn rnignore rntrue rnrnrnrnrnsetCharacterEncodingrnactionrnrn则页面能正常访问.我查了不少资料,过滤器的配置好像没有错,这里不知道什么原因.请各位高手指点一下.rn
我的servlet找不到了!The requested resource is not available 请大大们帮忙!
小弟的文件和配置如下rnservlet : G:\Workspace\projectname\src\servletspackage\Servletname.javarnrnjsp: G:\Workspace\projectname\WebContent\Object\temp\car.jsprnrnxml配置:rnrn rn Servletnamern Servletnamern servletspackage.Servletnamernrnrn Servletnamern /Servletnamernrnrnrnrnjsp代码:rn rn rn rn ...rn rn ...rn rn rn ...rn 提 交rn ...rn rnrnrnrn================================================================rn点击提交,把form里面的所有的值都提交给servlet,但是却出错了:rntype Status reportrnmessage /projectname/Object/temp/servletspackage/Servletnamerndescription The <em>requested</em> <em>resource</em> (/projectname/Object/temp/servletspackage/Servletname) is not <em>available</em>.rn================================================================rn请问:rn我的问题出在哪里?该<em>怎么</em>改正?rnrnrnrnrnrn
eclipse+tomcat使用求救:The requested resource (/TomcatTest/servlet/HelloWorld) is not available
在浏览器端出现了 The <em>requested</em> <em>resource</em> (/TomcatTest/servlet/HelloWorld) is not <em>available</em>.rnrn相关配置如下rnserver.xml:rn rnrnclasses目录下的确有HelloWorld.class<em>这个</em>类文件rn我同时在web-inf下面放了一个a.html.<em>这个</em>文件在客户端可以得到rnrn有没有谁出过和我一样的问题rnrn
为什么 我会出现The requested resource (/blog/bog/servlet/blogServlet) is not available
实在实在检查不出来哪里错了 按照网上的都查了一边 还是不行 重启服务器 还是不行rn问题描述rn我需要2个界面 一个是Score.jsp 功能就是把文本框里的信息传给servlet 然后 我用System.out.println(score); <em>这个</em>命令检查检查传送是否正确rn代码rnScore.jsp:rnrnrnrnrnrnrn rn scorernrnrnrn 请您输入您的博文内容rn rn rn rnrn rn 得分rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rnrn rnrnrnrnrnrnrnServelet 代码:rnpackage com.platform.score;rnrnimport java.io.IOException;rnrnimport javax.servlet.ServletException;rnimport javax.servlet.http.HttpServlet;rnimport javax.servlet.http.HttpServletRequest;rnimport javax.servlet.http.HttpServletResponse;rnrnpublic class blogServlet extends HttpServlet rnrn /**rn * rn */rn private static final long serialVersionUID = 1L;rnrn /**rn * The doGet method of the servlet. rn *rn * This method is called when a form has its tag value method equals to get.rn * rn * @param request the request send by the client to the serverrn * @param response the response send by the server to the clientrn * @throws ServletException if an error occurredrn * @throws IOException if an error occurredrn */rn public void doGet(HttpServletRequest request, HttpServletResponse response)rn throws ServletException, IOException rndoPost (request,response);rnrnrnrnrn/**rn* The doPost method of the servlet. rn*rn* This method is called when a form has its tag value method equals to post.rn* rn* @param request the request send by the client to the serverrn* @param response the response send by the server to the clientrn* @throws ServletException if an error occurredrn* @throws IOException if an error occurredrn*/rnpublic void doPost(HttpServletRequest request, HttpServletResponse response)rn throws ServletException, IOException rnString score=request.getParameter ("score");rnrnSystem.out.println(score);rnrnrnrnrnrnrnrn自动生成的web.xml代码:rnrnrn rn blogServletrn com.platform.score.blogServletrn rnrn rn blogServletrn /servlet/blogServletrn rnrnrnrnrn错误信息如下:rnHTTP Status 404 - /blog/bog/servlet/blogServletrnrn--------------------------------------------------------------------------------rnrntype Status reportrnrnmessage /blog/bog/servlet/blogServletrnrndescription The <em>requested</em> <em>resource</em> (/blog/bog/servlet/blogServlet) is not <em>available</em>.rnrnrn--------------------------------------------------------------------------------rnrnApache Tomcat/6.0.30rnrnrnrn我用的是Myeclipse rnrnrn路经检查 没有问题 重启服务器 还是不行 给位救救我吧 我一个菜鸟 刚刚开始 连一个函数都传递不过去 唉……
The requested resource (/zhangyy/student/login_confirm) is not available是什么原因?
<em>怎么</em><em>解决</em>呢?请帮我看一下,谢谢……
TOMCAT 总是找不到文件..求解The requested resource (/web02/addEmp.html) is not available
刚起步,做的是一个非常简单的连接数据库rn在运行的过程中出现The <em>requested</em> <em>resource</em> (/web02/addEmp.html) is not <em>available</em>.rnrn下面是我的web.xmlrnrn[code=text]rnrnrnrnaddEmpServletrnweb.AddEmpServletrnrnrnaddEmpServletrn/addrnrnrnrnrn500rnrn/error.htmlrnrnrnrn[/code]rnrn两个HTML文件:rn[code=html]rn rn rn addEmprnrn rn rn rn rn 添加雇员rn 姓名: rn 薪水: rn 年龄: rn rn rn rn rnrn[/code]rnrn[code=html]rnrn rn rn sorry.rnrn rn rn发生了系统错误,请歇会。rntry again!~rn rnrn[/code]rnrn以及主程序如下:rn[code=java]rnpackage web;rnrnimport java.io.IOException;rnimport java.io.PrintWriter;rnimport java.sql.DriverManager;rnimport java.sql.SQLException;rnrnimport javax.servlet.ServletException;rnimport javax.servlet.http.HttpServlet;rnimport javax.servlet.http.HttpServletRequest;rnimport javax.servlet.http.HttpServletResponse;rnrnrnimport java.sql.Connection;rnimport java.sql.Statement;rnimport com.mysql.jdbc.Driver;rnimport com.mysql.jdbc.PreparedStatement;rnimport com.sun.net.httpserver.HttpServer;rnpublic class AddEmpServlet extends HttpServletrn public void service(HttpServletRequest request,HttpServletResponse response)rn throws ServletException,IOExceptionrn //这行代码要放在getparameter()执行之前。rn request.setCharacterEncoding("utf-8");rn rn String name =request.getParameter("name");rn double salary=Double.parseDouble(request.getParameter("salary"));rn int age=Integer.parseInt(request.getParameter("age"));rn System.out.println("name:"+name);rn System.out.println("salary:"+salary);rn System.out.println("age"+age);rn rn //访问数据库rn Connection conn=null;rn tryrn Class.forName("com.mysql.jdbc.Driver");rn conn=DriverManager.getConnection("jdbc:mysql://localhost:3306/jd1109db2","root","root");rn String sql = null;rn java.sql.PreparedStatement prep=conn.prepareStatement(sql);rn prep.setString(1, name);rn prep.setDouble(2, salary);rn prep.setInt(3, age);rn prep.executeUpdate();rn rn response.setContentType("text/html;charset=utf-8");rn PrintWriter out =response.getWriter();rn out.println("添加雇员成功");rn out.close();rn catch (Exception e) rn /*异常catch之后,rn * 要区分对待不同的异常类型。rn */rn rn /*对于系统异常rn * (不是由于程序本身的问题引起的异常,rn * 而是由于工作环境,如网络问题,数据库问题等产生的异常rn * 如数据库未启动,rn * 使用DRIVERMANAGER.GETCONNECTION()是无论如何rn * 也得不到连接的,会报异常,这种异常就是系统异常。rn * 程序无能为力,但是必须告诉用户。rn * 所以还须提示用户rn */rn rn //step1 先记录日志rn e.printStackTrace();rn //step2 抛出rn throw new ServletException(e);rn finallyrn if(conn!=null)rn tryrn conn.close();rn catch (SQLException e) rn e.printStackTrace();rn rn rn rn rnrn[/code]rnrnrn以上是全部代码..好不容易不报错了,TOMCAT居然打不开..调了一上午真的泪奔了..[img=http://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/onion/1.gif][/img]rn求好心人看看为什么会这样,谢谢了..
△△△△这是什么原因 找了两天了没找到原因The requested resource is not available
我是日文系统,大家凑乎着看吧,我怕我翻译过来翻译的不准确rn----rn再login.jsp我点击提交按钮出现如下错误rn提示错误如下rnrnHTTPステータス 404 - パス 0 に対するリクエストは無効ですrnrn--------------------------------------------------------------------------------rnrntype ステータスレポートrnrnメッセージ パス 0 に対するリクエストは無効ですrnrn説明 The <em>requested</em> <em>resource</em> (パス 0 に対するリクエストは無効です) is not <em>available</em>.rn————————————————————————————————————————————————rnrnweb.xmlrn------rnrnrn rn actionrn org.apache.struts.action.ActionServletrn rn configrn /WEB-INF/struts-config.xmlrn rn rn debugrn 2rn rn rn detailrn 2rn rn 2rn rnrnrn rn rn actionrn *.dorn rnrnrn-----------------rnstrutsrn--------rnrnrnrnrnrn rn rn rnrnrn rn rn rn rn rnrn rnrnrn rnrnrnrnrn------------------rnlogin.jsprn------------rnrn rnuser rnpasssword rnrnrnrnrn----------rnactionrn--rnpublic class LoginAction extends Action rnrn public ActionForward execute(ActionMapping mapping, ActionForm form,rn HttpServletRequest request, HttpServletResponse response)rn throws Exception rn // TODO Auto-generated method stubrn LoginActionForm laf=(LoginActionForm)form;rn String username=laf.getUsername();rn String password=laf.getPassword();rn UserManager userManger= (UserManager)new UserManagerImpl();rn rn rn userManger.login(username, password); rn rn return mapping.findForward("suceess");rn rnrnrnrn-------rnaction formrn--------rnpublic class LoginActionForm extends ActionForm rn private String username;rn public String getUsername() rn return username;rn rn public void setUsername(String username) rn this.username = username;rn rn public String getPassword() rn return password;rn rn public void setPassword(String password) rn this.password = password;rn rn private String password; rnrn--------rn
分享HTTP Status 404(The requested resource is not available)的几种解决方案
[img=http://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/onion/69.gif][/img]<em>这个</em>问题搞了我两天的时间,找了各种资料没<em>解决</em>,后来才发现是struts2版本中一些jar文件的升级问题,下面给出这两天的找到的以及自己的<em>解决</em>方案:rnrnrnrn1.未部署Web应用rn2.URL输入错误rn rn 排错方法:rn首先,查看URL的IP地址和端口号是否书写正确。rn其次,查看上下文路径是否正确 Project--------Properties------MyElipse-----Web-----rnWeb Context-root检查<em>这个</em>路径名称是否书写正确。rn最后,检查一下文件名称是否书写正确。rnrn3.目录不能被引用rn 排错方法:rn 在 Eclipse的“包资源管理器(Package Explorer)”检查文件存放的位置。由于META-INFrnWEB-INF文件夹下的内容无法对外发布,所以,如果你引用了带这两个目录的文件,肯定是不允许。例如: http://localhost:8080/guestbook/WEB-INF/index.html就是错误的rn文件位置存放错误rnrn4. Tomcat服务器中web.xml中的问题 rn 排错方法:rn 如果你的web应用程序有多个jsp页面的话,当你点击你web应用程序的虚拟根目录时可能会出现404错 误,只是你只需要修改Tomcat服务器中web.xml rn rn listingsrn false(将其该为true)rn rnrn补充说明:在6.0.18 版本error:“ The <em>requested</em> <em>resource</em> () is not <em>available</em>. ”rn总是无法访问/myapp/*.jsp文件,可以将 /ROOT 中build.xml 文件copy 一份到myapp, 注意把里面所有的 ROOT 用 myapp 代替. 应该就OK.rnrn5、WEB-INF下面必须要有几个固定的文件夹和文件rn rn±web.xml 该web app的配置文件rn±lib 该web app用到的库文件rn±classes存放编译好的servlet rn 请注意他们的名字,我曾经就由于把classes写成class,查错查了半宿还没<em>解决</em>,所以写这些的时候千万要仔细,要不会浪费更多的精力去查错。rnrn6、如果要运行的不是.jsp文件,而是servlet(.class)文件,要配置web.xml(当然是WEB-INF下面的),加上以下字段:rn rn HelloWorldServletrn HelloWorldServletrn rn rn HelloWorldServletrn /HelloWorldServletrn rn其中的“HelloWorldServlet”改为你要运行的文件名rnrn7.struts.xml配置错误,可能是你的Action值写错或者链接URL写错rnrn[color=#FF0000]下面是我自己的<em>解决</em>办法,很多书都是导入六个文件,我自己的话是多增加了commons-lang3-3.1.jar和javassist-3.11.GA.jar[/color]rn8、增加commons-lang3-3.1.jar文件到啊WEB-INF/lib目录下,struts2最新的web开发包如下:rn[img=http://img.bbs.csdn.net/upload/201311/06/1383701419_518233.jpg][/img]rnrn下载地址:http://download.csdn.net/detail/ahy1024/4626028
java web开发页面跳转时一直出现 The requested resource is not available
老师要求做一个比价系统,于是菜鸟就开始自学。好困难。在做注册页面时就出现了问题,求大神帮忙看看代码,看看是什么问题。rnrn首先是注册页面的代码:rnrnrn rn 用户注册页面rn rn rn rn rn rn 账号信息rn 账号 不能超过10位和不能为空rn 密码 不能超过10位和不能为空rn 确认密码 确认密码要和输入密码相同rn 用户信息rn 姓名 rn 性别 男rn 女rn rn 电话 请填写手机号码rn 邮箱 请正确填写已有邮箱rn rn rn rn rn rn rnrnrn接下来是YHResigerServlet的代码:rnpackage com.bj.servlet;rnrnimport java.io.IOException;rnimport java.sql.ResultSet;rnimport java.sql.SQLException;rnrnimport javax.servlet.RequestDispatcher;rnimport javax.servlet.ServletException;rnimport javax.servlet.http.HttpServlet;rnimport javax.servlet.http.HttpServletRequest;rnimport javax.servlet.http.HttpServletResponse;rnrnimport com.bj.tools.JDBCConnection;rnimport com.bj.myjavabean.YongHuJavaBean;rnrnpublic class YHResigerServlet extends HttpServlet rnrn public void doPost(HttpServletRequest request, HttpServletResponse response)rn throws ServletException, IOException rn //定义一个表示跳转页面名称的变量rn String toJSP;rn request.setCharacterEncoding("gb2312");rn response.setContentType("text/html;charset=gb2312");rn //获取用户输入的信息rn String id=request.getParameter("id");rn String pwd1=request.getParameter("pwd1");rn String name=request.getParameter("name");rn String sex=request.getParameter("sex");rn String tel=request.getParameter("tel");rn String email=request.getParameter("email");rn //将用户输入的信息设置到JavaBean中rn YongHuJavaBean yhjb=new YongHuJavaBean(id,pwd1,name,sex,tel,email);rn //将注册用户对象保存到请求上下文中rn request.setAttribute("yhjb", yhjb);rn request.getSession().setAttribute("yhjb", yhjb);rn //判断注册的用户账号是否存在rn if(isCunZai(id))rn //跳转到显示账号错误的页面rn toJSP="YHCunZai.jsp";rn RequestDispatcher rd=request.getRequestDispatcher(toJSP);rn rd.forward(request,response);rn rn //判断用户输入的电话信息是否全为数字rn else if(!isNum(tel))rn //跳转到显示电话输入错误的页面rn toJSP="telNotNum.jsp";rn RequestDispatcher rd=request.getRequestDispatcher(toJSP);rn rd.forward(request,response);rn rn //判断用户输入的email信息是否符合格式rn else if(!isEmail(email))rn //跳转到显示Email输入错误的页面rn toJSP="email.jsp";rn RequestDispatcher rd=request.getRequestDispatcher(toJSP);rn rd.forward(request,response);rn rn //全部符合条件后,将用户输入的注册信息添加到数据库中rn else rn rn String myTianJiaSql="insert into yonghu values ('"+id+"','"+pwd1+"','"+name+"','"+sex+"'," +rn "'"+tel+"','"+email+"')";rn JDBCConnection tianjia=new JDBCConnection();rn tryrn rn tianjia.executeUpdate(myTianJiaSql);rn catch(Exception e)System.out.println("添加发生异常");rn toJSP="ZhuCeChengGong.jsp";rn //RequestDispatcher rn request.getRequestDispatcher(toJSP).forward(request,response);rn rn rn rn public void doGet(HttpServletRequest request, HttpServletResponse response)rn throws ServletException, IOException rn rn doPost(request,response);rn rn //定义一个判断账号是否已经存在的方法rn public boolean isCunZai(String id)rn rn boolean b=false;rn String mySql="select * from yonghu where id='"+id+"'";rn JDBCConnection fzsjk=new JDBCConnection();rn tryrn rn //执行查询方法rn ResultSet rs=fzsjk.executeQuery(mySql);rn if(rs.next())rn rn b=true;rn rn rs.close();rn catch(Exception e)rn rn System.out.print("发生查询异常");rn rn return b;rn rn //定义一个判断电话号码是否都为数字的方法rn public boolean isNum(String tel)rn rn boolean t=true;rn for(int i=0;i
100分,问一个很简单The requested resource (/blog/) is not available问题
别的项目都可以正常运行rn就是<em>这个</em>blog却找不了路径了rnHTTP Status 404 - /blog/rnrn--------------------------------------------------------------------------------rnrntype Status reportrnrnmessage /blog/rnrndescription The <em>requested</em> <em>resource</em> (/blog/) is not <em>available</em>.rnrn我搜索了一次,有说是tomcat版本问题,我的是5.0.28rn网上有个朋友我把代码给他,他在tomcat5.5下面正常运行rn因为5.5好象要和JDK1.5使用,所以我就换了4.1版本的tomcat,开始能启动,当我把blog丢到webapps,这时tomcat连正常启动都不能,提示rnlog4j:WARN No appenders could be found for logger (org.apache.catalina.startup.Embedded).rnlog4j:WARN Please initialize the log4j system properly.rnrn好象应该是log4j.properties的配置问题,但是我朋友他运行没有任何问题啊rn求哪位大哥帮小弟<em>解决</em>一下rn我好象没有100分,98分吧。呵呵。谢了
大神求助!用struts时总是The requested resource (/project1/) is not available
我这几天写网上购物的项目(老师要求的),总体思路是有的。但是当我用struts时一直都是404 错误 The <em>requested</em> <em>resource</em> (/project1/) is not <em>available</em>. 我已经在这上面花了好几天的时间,一直都没有找到<em>解决</em>的办法(我和我同学用的都是一样的包 他们都顺利写出了struts代码并顺利运行)。rn[color=#FF0000]以下是我写的register.jsp页面[/color][img=http://img.bbs.csdn.net/upload/201307/29/1375068039_693315.png][/img]rnrnrnrnrnrnrnrnrn My JSP 'login.jsp' starting pagernrn rn rn rn rn rnrnrn​rnrn rn rn rn namern rnrn rn passwordrn rnrn rn salaryrn rnrnrnrn rn rnrnrnrnrn[color=#FF0000]以下是我写的struts-config.xml[/color]rnrnrnrnrnrnrnrnrnrnrnrn[color=#FF0000]以下是我写的ActionServlet[/color]rnpackage windward.action;rnrnimport javax.servlet.http.HttpServletRequest;rnimport javax.servlet.http.HttpServletResponse;rnrnimport org.apache.struts.action.ActionForm;rnimport org.apache.struts.action.ActionForward;rnimport org.apache.struts.action.ActionMapping;rnimport org.apache.struts.actions.DispatchAction;rnimport org.apache.struts.actions.MappingDispatchAction;rnrnimport windward.biz.UserBiz;rnrnpublic class ActionServlet extends DispatchAction rnrn protected ActionForward register(ActionMapping mapping, ActionForm form,rn HttpServletRequest request, HttpServletResponse response,rn String name) throws Exception rn UserBiz biz = new UserBiz();rn String name1 = request.getParameter("name");rn String password = request.getParameter("password");rn String base = request.getParameter("salary");rn double baseSalary = Double.parseDouble(base);rn biz.login(name1, password, baseSalary);rn return mapping.findForward("tologin");rn rnrnrn[color=#FF0000]还有我配置的web.xml[/color]rnrnrn rn rn rn actionrn org.apache.struts.action.ActionServletrn rn configrn /WEB-INF/struts-config.xmlrn rn rn debugrn 2rn rn rn 2rn rn rn rn actionrn *.dorn rn rnrn[color=#FF0000]大神快来啊 不<em>解决</em>后面没法写[/color]
JSP MVC 登录问题:The requested resource (/jsp/LoginServlet) is not available
JSP MVC 登录问题:The <em>requested</em> <em>resource</em> (/jsp/LoginServlet) is not <em>available</em>rn[b]web.xml::::::::[/b]rnrn This is the description of my J2EE componentrn This is the display name of my J2EE componentrn LoginServeletrn service.LoginServeletrn rnrn rn LoginServeletrn /servlet/LoginServeletrn rn rn index.jsprn rnrn
The requested resource is in use
我用asp开发程序,可是提示rnThe <em>requested</em> <em>resource</em> is in usern这是<em>怎么</em>回事?
The requested resource is in use.
急!!!rn服务器htm正常rn但是只要是asp文件就会出现上面的问题??rnrn急死了!rn刚装的系统,没装其他乱七八糟的东西rn而且iis也重装几次了,到底<em>怎么</em>回事????rnrn大侠帮忙了!!
The requested resource is in use!!!
我用的是Windows 2000 Server版,已安装了IIS5.0,但最近执行ASP程序(管理Web站点)时rn,报告错误 The <em>requested</em> <em>resource</em> is in use. 可几天前还可使用.rn请问<em>这个</em>错误是什么意思?是如何造成的?那如何<em>解决</em>?(另外,我机器上所有的ASP程序均不能rn执行,错误信息同上).
解决Jenkins创建Docker Image后无法推送到私有Registry的问题
最近刚开始使用Docker,把常用的命令摸了一遍后,就想把镜像的build过程放到Jenkins上。具体过程就不说了,十分简单,只需要几条命令就可以了。 可以在向私有registry推送时却报出了异常: docker push registry.mydocker.com/demo/small:latest The push refers to repository [registry.my
install_lodop.exe 打印插件及卸载于一体
install_lodop.exe 打印插件及卸载于一体 重命名为uninstall_lodop.exe 即使卸载 重命名为 install_lodop.exe 即使安装
description The requested resource 的问题
我在配置servlet的时候,出现一些问题!rn我所用的环境是tomcat 1.4.31+windows XP sp2rn首先在配置了service.xml 设置虚拟目录;rnrn然后在d:\myweb目录里面新建目录myweb,在里面建立WEB-INF,其中里面有classes文件,rn在classes里面有HelloServlet.class文件,其中HelloServlet的内容为:rn===============================================================rnimport java.io.*;rnimport javax.servlet.*;rnimport javax.servlet.http.*;rnrnpublic class HelloServlet extends HttpServletrnrn public void service(HttpServletRequest request,HttpServletResponse response) throws ServletException,IOExceptionrn rn PrintWriter out=response.getWriter();rn out.println("");rn out.println("www.sohu.com ");rn out.println(""+new java.util.Date()+"");rn out.println("");rn rnrn===============================================================rn编译是没有问题的.rn然后在myweb文件袋里面新建web.xml文件,内容如下:rn===============================================================rnrnrnrn Anynamern HelloServletrn rn rn AnyNamern /demo/Hello.htmlrnrnrn===============================================================rn然后重新启动tomcat.在浏览器里面输入:http://localhost:8080/test/demo/hello.html后rn显示HTTP Status 404 rntype Status reportrnrnmessage /test/demo/hello.htmlrnrndescription The <em>requested</em> <em>resource</em> (/jason/demo/hello.html) is not <em>available</em>.rnrn===================================================================rn我在浏览器输入http://localhost:8080 可以正常显示,<em>这个</em>表示tomcat没有问题吧!rn在浏览器里面输入http://localhost:8080/test可以正常显示该目录的资源,(在该目录我存放了一个testpage.html文件,可以正常显示出来)这样应该虚拟目录没有问题吧!rnrn请各位帮我看一看是什么问题,我重新试过几次了,包括重启,重新rn启动tomcat,问题依然存在,请大家帮帮忙!谢谢...
The requested resource is not available.急。。。。。。。
把项目打包成WAR后,上传到服务器上(服务器在外地),在地址栏里输入相应的IP和端口加项目名(http://***.***.**.**:8080/news/),提示“The <em>requested</em> <em>resource</em> () is not <em>available</em>.”项目已经解压出来了,但是在/apache-tomcat-6.0.18/work/Catalina/localhost/news目录下面没有JSP的相应JAVA类了。项目在本机测试和公司的别的电脑上测试都是没有问题的。请大侠们帮忙分析分析,谢谢了,急。。。。。。。
The requested resource (/CheckUserServlet) is not available.
我在webapps下建的目录charge_manage,在WebRoot下有个登录页面index.jsp。表单如下 ,rn编译后的CheckUserServlet.class在目录Tomcat 6.0\webapps\charge_manage\WebRoot\WEB-INF\classes\cn\cqupt\edu\servlet下,rncharge_manage\WebRoot\WEB-INF目录下web.xml中的servlet配置如下:rn rn CheckUserServletrn cn.cqupt.edu.servlet.CheckUserServletrn rn rn CheckUserServletrn /CheckUserServletrn rnrn但登录提交后出现:The <em>requested</em> <em>resource</em> (/CheckUserServlet) is not <em>available</em>.rn请高手指出哪点错误?万分感谢!
descriptionThe requested resource () is not available.
错误提示:descriptionThe <em>requested</em> <em>resource</em> () is not <em>available</em>.rnrn我的web.xml文件如下:rnrnrnrn rn rn 30rn rn rn rn index.htmrn rn rnrn该如何<em>解决</em>此问题?
The requested resource (/registerAction.do) is not available.
应用Struts开发一个简单的注册Web应用,运行时总提示The <em>requested</em> <em>resource</em> (/registerAction.do) is not <em>available</em>.主要文件核心源代码如下:rnregister.jsp:rn rnweb.xml:rnrnrnrn rn actionrn org.apache.struts.action.ActionServletrn rn debugrn 2rn rn rn configrn /WEB-INF/struts-config.xmlrn rn 2rn rn …… rn rn actionrn *.dorn rn ……rnstruts-config.xml:rnrn rn rn rn rn rn rn请指教!rn
The requested resource () is not available.
[img=http://img.my.csdn.net/uploads/201303/29/1364486552_5441.jpg][/img]rn[b]UserAction[/b][size=24px][/size]rnrnpackage com.lyq.action;rnrnimport com.opensymphony.xwork2.ActionSupport;rnpublic class UserAction extends ActionSupportrn private static final long serialVersionUID = 1L;rn private String username;// 用户名rn private String password;// 密码rn // 用户登录 rn @Overridern public String execute() throws Exception rn return SUCCESS;rn rn public String getUsername() rn return username;rn rn public void setUsername(String username) rn this.username = username;rn rn public String getPassword() rn return password;rn rn public void setPassword(String password) rn this.password = password;rn rnrnrn[b]index.jsp[/b][i][size=24px][/size][/i]rnrnrnrnrnrn rn 用户登录rn rnrnrn rn rn rn rn rnrnrnrn[b]login.jsp[/b][i][size=24px][/size][/i]rnrnrnrnrnrn rn 用户登录rnrnrn rn rn rn rn rnrnrnrnweb.xmlrnrnrn rn index.htmlrn index.htmrn index.jsprn default.htmlrn default.htmrn default.jsprn rn rn rn rn struts2rn rn org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilterrn rn rn rn rn struts2rn rn /*rn rnrnrn[b][color=#FF00FF]struts.xml[/color][/b][size=24px][/size]rnrnrn rn rn rn rn rn /login.jsprn rn /success.jsprn rn rnrn[b]rnUserAction-validation.xml[/b][i][color=#FF00FF][size=24px][/size][/color][/i]rnrnrnrn rn rn rn 请输入用户名rn rn rn rn rn rn 请输入密码rn rn rnrnrn网上的答案收了一下午加一夜晚 没收到答案,就求解释
The requested resource (/favicon.ico) is not available.
每次进入<em>这个</em>JSP页面F12console就会抛出<em>这个</em>东西,而且好像还影响我后面发AJAX全都会失败
关于The requested resource () is not available.
打开链接,"http://localhost:8080/Webde/web/export/lala.zip";rnrn错误提示,rnrnHTTP Status 404 - rnrn--------------------------------------------------------------------------------rnrntype Status reportrnrnmessagernrndescription The <em>requested</em> <em>resource</em> () is not <em>available</em>.rnrnGlassFish/v3rnrn我是新手,多谢了!
文章热词 神经网络过拟合解决方式 机器学习 机器学习课程 机器学习教程 深度学习视频教程
相关热词 bootstrap怎么解决响应式 c# 内存泄漏怎么解决 c++怎么解决乱码问题 c++ exit0怎么解决 区块链解决 人工智能解决夜班
我们是很有底线的