ローカルホストでコンパイルしてデプロイすると、正常に動作します。しかし、warファイルを作成して別のサーバーにデプロイすると、エラーが発生します
HTTP ステータス 404 - /IJPWeb/index.jsp タイプ ステータス レポート メッセージ /IJPWeb/index.jsp 説明 要求されたリソース (/IJPWeb/index.jsp) は利用できません。 アパッチ トムキャット/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 に表示される 1 つのエラーです。
javax.management.MalformedObjectNameException: org.apache.catalina.connector.Connector@5a199939java.lang.ClassCastException のオブジェクト名を作成できません: java.net.Inet4Address を java.lang.String にキャストできません
サーブレット クラスはありません。JSP (index.jsp) からいくつかの Java メソッドを呼び出します。これを修正する方法はありますか?