请求的资源()不可用tomcat

时间:2012-05-11 08:42:16

标签: jsp http-status-code-404 tomcat6

当我在localhost中编译和部署它时,它工作正常。但是当我创建war文件并将其部署到另一个服务器时,它会弹出错误

HTTP Status 404 - /IJPWeb/index.jsp
type Status report
message /IJPWeb/index.jsp
description The requested resource (/IJPWeb/index.jsp) is not available.
Apache Tomcat/6.0.24

这是web.xml

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

这里有一个错误出现在catalina.out

  

javax.management.MalformedObjectNameException:无法为org.apache.catalina.connector.Connector@5a199939java.lang.ClassCastException创建对象名:java.net.Inet4Address无法强制转换为java.lang.String

我没有任何servlet类。我从我的JSP(index.jsp)中调用了一些Java方法。知道如何解决这个问题吗?

1 个答案:

答案 0 :(得分:0)

检查本地和远程位置的Tomcat版本是否相同。

同时验证在本地编译Web应用程序的Java版本是否与远程tomcat的JRE兼容。