• 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 access web application use root context?

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I deploy a web application example.war on Jboss 3.06&Tomcat4.1
but I can only access the jsp files as http://localhost:8080/example/index.jsp
I want to access the file like that:
http://localhost:8080/index.jsp
what need I do? Thanks
[ April 17, 2003: Message edited by: yanhe shi ]
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In your application dir make WEB-INF dir and put jboss.xml file with contents
<jboss-web>
<context-root>/</context-root>
</jboss-web>
and then make the war.
Then you will be able to access all your jsp file
with url http://localhost:8080/xyz.jsp
and you dont have to type http://localhost:8080/examples\xyz.jsp

Please let me know
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi..
i tried with jboss.xml..
but it' doesn't seem to work.
few doubts..
1] this jboss.xml should be in my context
along with web-inf rt?
2] and is it okey to mention the servlet /jsp web.xml also .
3] could u plz send the complete content of ur jboss.xml plz
thx ..
[ May 06, 2003: Message edited by: shilpa A G gupta ]
 
Evildoers! Eat my justice! And this tiny ad's justice too!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic