Hi folks,
I want to deploy a web application and set the
servlet context as: AAA/BBB. Put more simply, my application should be accessible via the following:
http:localhost:7001/AAA/BBB/main.jsp
One work around is to set the context:
weblogic.httpd.webApp.AAA=WebAppLocation
And in the deployment descriptor (web.xml) to register all servlets with a BBB/ prepended to the desired alias:
<servlet-mapping>
<servlet-name>main</servlet-name>
<url-pattern>BBB/main.jsp</url-pattern>
</servlet-mapping>
But this solution does not work for me. Parts of the application refer the context root (AAA) and create URLs relative to that. These URLs will not have the BBB part. Searching for it in the code and replacing it is not desirable (we do not own the code). Does anyone have any suggestions?
Thanks in advance,
Sharad