• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

how tp access application without context root.

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
drifter
Posts: 1364
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
I would challenge you to a battle of wits, but I see you are unarmed - shakespear. Unarmed tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic