File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes BEA/Weblogic and the fly likes weblogic - Deploying ears application.xml - Ver y urgent Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "weblogic - Deploying ears application.xml - Ver y urgent" Watch "weblogic - Deploying ears application.xml - Ver y urgent" New topic

weblogic - Deploying ears application.xml - Ver y urgent

sunilkumar ssuparasmul
Ranch Hand

Joined: Dec 13, 2000
Posts: 142

I deployed an ear in weblogic
in the application.xml i did not specify any value for the <context-root> as shown below
when i tried to refer to jsp
I get a 404 error.
Is it possible to specify no value for context root and still refer the page as given above.
because if i need to give some value to teh context root i need to change my entire application.
Experts please helppppppppp

Thanks in advance,

"Winners don't do different things<br /> They do things differently"
Simon Brown
sharp shooter, and author
Ranch Hand

Joined: May 10, 2000
Posts: 1913
Off the top of my head I'm not sure whether you can do this or not.
However, it is possible to write a web application so that you don't have to explicitly refer to the context path. If you do need to refer to it then take a look at some of the methods on the HttpServletRequest object.
Also, take a look at the HTML base tag, a nice implementation of which is provided with Struts.
Sorry that didn't answer your question!
John Lindwall
Ranch Hand

Joined: May 29, 2002
Posts: 31
If you deploy your webapp as a "default web application" then you don't need the context prefix on the URLs.
Search for "default web application" on the weblogic docs search page to learn more.
It is sorta covered in the JavaRanch Style Guide.
subject: weblogic - Deploying ears application.xml - Ver y urgent