File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes BEA/Weblogic and the fly likes context root Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "context root " Watch "context root " New topic
Author

context root

Tirthankar Dutta Chaudhuri
Ranch Hand

Joined: Feb 26, 2005
Posts: 48
Hi,
i am new to web logic , so i was just trying out some examples , i was deploying some .war files supplied by a jsp tutorial . when i deployed them it was running fine,
I have 2 questions. We find that the context root is set in the file weblogic.xml but that war did not have any weblogic.xml but it was having the context root /store ( as the server showed) . The contents of web.xml is given below

From where is the server getting the context root?
2 . And when i copied the store.war from folder G:\PROFESSIONAL JSP\1590592255-1\Chapter02 to folder G:\Chapter02 and tried to deploy it the server was giving a erroe that web.xml dosent exist.

Can any one tell me the reason .
Carol Enderlin
drifter
Ranch Hand

Joined: Oct 10, 2000
Posts: 1364
I don't know what version of WLS you are using, but I found this in the 7.0 weblogic.xml context root documentation:

3. If context root is not defined in weblogic.xml or application.xmll, then infer the context path from the URI, giving it the name of the value defined in the URI minus the WAR suffix. For instance, a URI MyWebApp.war would be named MyWebApp.
Tirthankar Dutta Chaudhuri
Ranch Hand

Joined: Feb 26, 2005
Posts: 48
Thanks, i am using weblogic 8.1 .
 
 
subject: context root
 
Similar Threads
unable to connect project to database
Possible to selectively exlucde a file from having the prelude and coda?
new include tags
Adding prelude-include seems to break default welcome file list
Problem with DTD in web.xml