出现错误404:SRVE0190E:在浏览器中访问servlet时找不到文件:/ helloworld

时间:2018-12-24 21:01:45

标签: servlets websphere http-status-code-404 websphere-7 file-not-found

我有一个正在运行的IBM Websphere 7.0版本,并且正在运行Web应用程序。我对该功能之一进行了很少的更改,并创建了一个新的servlet。我正在尝试将此servlet部署到正在运行的Web应用程序。我做了以下步骤

1. Deployed the servlet in the WEB-INF/classes folder with
2. Updated the web.xml with the following configuration. I made sure that servlet configurations are define first and then the servlet-mapping configuration
<servlet>
<description>Hello World</description>
<servlet-name>helloworld</servlet-name>
<servlet-class>org.test.HelloWorld</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>helloworld</servlet-name>
<url-pattern>/helloworld</url-pattern>
</servlet-mapping>

3. After that i did restarted the IBM websphere server and tried accessing the helloworld servlet like below

http://Ipaddress:9080/ContextPath/helloworld

当我访问它时,我在浏览器中不断出现以下错误。

Error 404: srve0190e: file not found:/helloworld

我不确定我在做什么错。任何人都可以让我知道这是我们如何在IBM webpshere 7.0中部署新的servlet吗?
   还有其他使用IBM Web管理员控制台本身部署servlet的方法吗?如果有人给我一些相关信息,那将很有帮助。我之间还尝试在IBM管理控制台中添加以下定制属性,但没有帮助。我遇到了同样的错误。
    com.ibm.ws.webcontainer.invokefilterscompatibility = true

0 个答案:

没有答案