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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "How access web application use root context?" Watch "How access web application use root context?" New topic
Author

How access web application use root context?

yanhe shi
Greenhorn

Joined: Mar 26, 2003
Posts: 1
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

Joined: May 01, 2003
Posts: 4
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

Joined: May 02, 2003
Posts: 4
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 ]
 
 
subject: How access web application use root context?