aspose file tools*
The moose likes BEA/Weblogic and the fly likes how tp access application without context root. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "how tp access application without context root." Watch "how tp access application without context root." New topic
Author

how tp access application without context root.

Manohar Chhapolia
Greenhorn

Joined: Nov 22, 2006
Posts: 17
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

Joined: Oct 10, 2000
Posts: 1364
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

Joined: Nov 22, 2006
Posts: 17
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

Joined: Nov 22, 2006
Posts: 17
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how tp access application without context root.