有个问题在网上各种找解决方案无果。错误:
HTTP Status 404 - /abc/type Status reportmessage /abc/description The requested resource is not available.Apache Tomcat/7.0.42
abc是在webapps目录下的一个目录,我在里面放了一个hello.jsp文件,tomcat启动后我访问localhost:8080/manager/html
然后再点击abc这个目录就报了这个错误。
我把hello.jsp放在ROOT目录下可以正常打开Tomcat Version JVM Version
Apache Tomcat/7.0.42 1.7.0_25-b17web.xml文件的内容:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<web-app 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_3_0.xsd"
version="3.0"
metadata-complete="true"> <display-name>Tomcat Documentation</display-name>
<description>
Tomcat Documentation.
</description>
</web-app>
HTTP Status 404 - /abc/type Status reportmessage /abc/description The requested resource is not available.Apache Tomcat/7.0.42
abc是在webapps目录下的一个目录,我在里面放了一个hello.jsp文件,tomcat启动后我访问localhost:8080/manager/html
然后再点击abc这个目录就报了这个错误。
我把hello.jsp放在ROOT目录下可以正常打开Tomcat Version JVM Version
Apache Tomcat/7.0.42 1.7.0_25-b17web.xml文件的内容:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<web-app 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_3_0.xsd"
version="3.0"
metadata-complete="true"> <display-name>Tomcat Documentation</display-name>
<description>
Tomcat Documentation.
</description>
</web-app>
解决方案 »
- obj.style.zoom图片等比例扩大缩小的问题
- 菜鸟在CSDN的第一个问题~最基础的~希望大家给与解决
- JSP更新数据库出错,错在哪?
- 问卷调查系统的设计
- 关于移动Agent!!
- jstl中调用存储过程
- FCKeditor上传图片时有关端口号问题
- JSP中MVC是什么东东?哪位能详细介绍一下,高分相送。急!!!
- 请问jrun 3.02的注册码是什么
- 关于PreparedStatement报错
- java web项目在运行一段时间之后会出现一直刷新的情况,请看下面的图
- fatal error RC1011: compiler limit : '%1!ws!': macro definition too big
D:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\abc\WEB-INF
D:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\abc\hello.jsp
D:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\abc\WEB-INF\web.xml
楼上有说是我jsp文件路径不对。我是看韩顺平老师的视频学的servlet和jsp。我的jsp路径和他的jsp路径完全一致,他成功了为何我不成功。。这是我想不通的地方。
你的工程名叫abc,不代表访问tomcat的时候你的路径名为abc
你这里肯定是填了别的了,所以访问不到资源。你看看你这里的路径是什么
你的工程名叫abc,不代表访问tomcat的时候你的路径名为abc
你这里肯定是填了别的了,所以访问不到资源。你看看你这里的路径是什么
是的,正解~。
你的工程名叫abc,不代表访问tomcat的时候你的路径名为abc
你这里肯定是填了别的了,所以访问不到资源。你看看你这里的路径是什么
请问我没有用MyEclipse而是用的ue+命令行的话怎么解决这个问题?因为是在从基础学所以怕用了IDE记不清细节。