Greg Castle

Greenhorn
+ Follow
since Feb 27, 2015
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Greg Castle

WebSphere is now using the welcome-file and running servlets as expected. Our WebSphere system was set up with two servers types: IIS and IBM HTTP Server and one cluster. Under Manage Modules, when both servers and the cluster are applied the application runs as expected. Any other combination things do not run properly. I thought I would only need to select the IBM HTTP Server and the one cluster, why do I need to choose IIS also? I will need to do some research in this area.

Thanks for all your help,

Greg
9 years ago
Actually there were no spaces. The display from the WebSphere console displayed Expand All and Collapse All options that showed spaces but the original web.xml did not contain any spaces. Being new to WebSphere, I've hit a real roadblock. Any other thoughts?

Thanks
9 years ago
Unfortunately adding a space character before index.jsp did not solve the problem. Any other thoughts? Thanks, Greg
9 years ago
Thanks for your reply. I checked the actual Deployment Descriptor shown below. This is basically the same as web.xml with the addition of <enabled> True</enabled> and <async-supported> False</async-supported>:


<web-app id="WebApp_ID" version="3.0" metadata-complete="false" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" >
<servlet>
<servlet-name> ProgressServlet</servlet-name>
<servlet-class> test.ProgressServlet</servlet-class>
<enabled> True</enabled>
<async-supported> False</async-supported>
</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 other thoughts?
9 years ago
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
9 years ago