This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How complex can the servlet context be in a Web App?

 
Sharad Agarwal
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Sharad Agarwal
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
By the way, we are using Weblogic 5.1 and the path weblogic.httpd.webApp.AAA=WebAppLocation is being specified in the weblogic.properties file for the web app.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic