• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How access web application use root context?

 
yanhe shi
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • 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 ]
 
sanjay kalsi
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • 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
 
shilpa A G gupta
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • 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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic