私が直面している問題は次のとおりです。Jbossには、次のようなweb.xmlがあります...
<servlet>
        <servlet-name>servlet</servlet-name>
        <servlet-class>com.exp.ServletExample</servlet-class>
    <servlet-mapping>
        <servlet-name>servlet</servlet-name>
        <url-pattern>/test/hello</url-pattern>
    </servlet-mapping>
      <welcome-file-list>
               <welcome-file>NewFile.html</welcome-file>
      </welcome-file-list>
</servlet>
そして、_http://localhost:8800/SimpleServletProject/ - [SimpleServletProject は war ファイル名] を試すと、ウェルカム ファイル、つまり NewFile.html が表示されます。
同じ戦争を突堤に置いて _http://localhost:8080/SimpleServletProject/ と入力すると、機能しません... /SimpleServletProject/index.jsp へのアクセスに HTTP ERROR 404 Problem という 404 エラーが表示されます。理由: 見つかりません
私の戦争構造は次のとおりです
SimpleServletProject.war
-META-INF
-WEB-INF
-NewFile.html
私はこの問題に苦労しています。どんな助けでも大歓迎です。