• 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
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

weblogic - Deploying ears application.xml - Ver y urgent

 
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hai

I deployed an ear in weblogic
in the application.xml i did not specify any value for the <context-root> as shown below
<context-root></context-root>
when i tried to refer to jsp
giving
http://localhost:7001/SamplePage.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,
sunil.s
 
sharp shooter, and author
Posts: 1913
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!
Simon
 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic