Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how tp access application without context root.

 
Manohar Chhapolia
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I have an application with 3 context root. which looks like follows
a) https://ip:port/cr1
b) https://ip:port/cr2
a) https://ip:port/cr3
Now I want to configure my weblogic in such a way that I can give https://ip:port/ and it should get redirected to https://ip:port/cr1. Which means, I do not give the context root and It gets forwarded to some defined/default url.

Is it possible ?
Thanks is advance for your help.

Regards,
Manohar Chhapolia
 
Carol Enderlin
drifter
Ranch Hand
Posts: 1364
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check the documentation for your version, but you can set your context root to "/". Is your web application in an ear or just in a war? See the link for the order of precedence of setting context root.

Documentation Link

Example from weblogic.xml setting context root to "/"
 
Manohar Chhapolia
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Carol,

Thanks for the reply.

I am using WebLogic Server Version: 10.3.0.0. I am deploying the web applications in EAR.
Now I changed the contest root to / and it works (I can access the application).

Is it still possible to use the application with context root also ? (I am not able to use the url https://ip:port/cr1 any more) . I have lots of reference in project with the context root and I do not want to take the risk of changing it .


Regards,
Manohar
 
Manohar Chhapolia
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

I create a dummy web application and made it default application. Now this forwards the call to my https://ip:port/cr1 application.
My both the requirements (1. of default web ( https://ip:port/) and 2. Same application to access with context root https://ip:port/cr1 ) are achieved.

Thanks a lot for support.

Manohar
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic