Context Root problem migrating from WAS 4.0.4 to WAS 5.11
Hi,
Hopefully this is the most appropriate forum, apologies if not.
I have a problem in migrating an application from WAS 4.0.4 to WAS 5.11, whereby the Context Path of the application is not being included within the URL of a servlet.
When a user submits one of the application forms (presented as a JSP) and the application is running on WAS 4.0.4, the Form Action URI is "re-written" to include the Context Path of the application i.e. where the URI is "/xx/list.html", the domain is "www.mydomain.com" and the Context Path is "/myapp", on the 4.0.4 server the form submission is redirected to:
www.mydomain.com/myapp/xx/list.html
However, once deployed on WAS 5.11 and updating the Context Path in the EAR file as required during deployment, the application redirects to:
www.mydomain.com/xx/list.html
...which causes an HTTP 404 error as you might expect.
I have included debugging to display the context path at the point of submission and it is what you would expect i.e. "/myapp". The problem seems to be some kind of disconnect between the servlets or application and the application server container(?), perhaps in that it doesn't understand the context in which it exists at the point when the URL is being constructed.
Can anyone give me some pointers as to why the servlet URL isn't being constructed with the Context Path of the application on WAS 5.11 when it is on WAS 4.0.4 please?
Thanks in advance
Jon Sumpster

