Link to home
Create AccountLog in
Avatar of yongsing
yongsing

asked on

Application Context Root

I am using WebLogic 10. My application context path is at C:\workspace\ple\public_html. I have chosen to name the application as "ple". After deploying, I found that I need to access the application this way:

http://localhost:7001/public_html/login.jsp

I thought that since the application name is "ple", I should be able to access it as:

http://localhost:7001/ple/login.jsp

But the above is actually invalid. So how do I configure it so that I can access it as http://localhost:7001/ple/login.jsp ?
Avatar of girionis
girionis
Flag of Greece image

How did you name your war file? WebLogic takes the context root from the name of the war file.
Avatar of yongsing
yongsing

ASKER

I did not use a war file. I just put my stuff in C:\workspace\ple\public_html, and in WebLogic's console, under Deployment, I just specify the path of the application as "C:\workspace\ple\public_html".
Can you not change it from the console? Can you try changing it fromthe weblogic.xml file? There should be a context-root element.
Yes, I can certainly change it from weblogic.xml. Do you know exactly what is the tag to change? I can't seem to find the description for weblogic.xml for WebLogic 10.
ASKER CERTIFIED SOLUTION
Avatar of girionis
girionis
Flag of Greece image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Thanks girionis!

I added the following in weblogic.xml:

ple

and now I can access the application as:

http://localhost:7001/ple/login.jsp 
Thanks for accepting, glad I was of help :)