Hi, I am new to both JSP and Websphere and I could use your assistance. When I enter the following URL's on my local machine using either Tomcat or WebSphere Application Server Liberty with Eclipse I receive the expected results:
Tomcat:
http://myserver:8080/LH_Up/
WAS:
http://myserver:9080/LH_Up/
When I create and install the EAR file in Websphere on the production server and enter the URL below I receive the following message:
http://prodserver:9080/LH_Up/
Not Found
The requested URL /LH_Up/ was not found on this server.
IBM_HTTP_Server at prodserver Port 9080
However when I enter:
http://prodserver:9080/LH_Up/index.jsp
I receive the expected results.
I also receive the same message when I reference a servlet:
http://prodserver:9080/LH_Up/progress
Again, locally when I use
http://myserver:8080/LH_Up/progress or
http://myserver:9080/LH_Up/progress I receive the expected results.
It seems that the web.xml file is being ignored completely in Websphere on the production server. The web.xml file located in the folder WEB-INF. Below is my web.xml file:
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="3.0" 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">
<servlet-name>ProgressServlet</servlet-name>
<servlet-class>test.ProgressServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>ProgressServlet</servlet-name>
<url-pattern>/progress</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>
Any help would be greatly appreciated.
Thanks,
Greg