do you mean you want to test that you can see a page or you want to use the root context?
If you use JBoss 3.0.1 or later, read $JBOSS_HOME/docs/examples/jbossweb/FAQ.
You'll find "How do I deploy a WAR to the '/' context" section there.
I followed 3rd way. But I still have a problem. If I access "http://localhost:8080/ROOT/index.jsp" then it works. But http://localhost:8080/index.jsp doesn't work.
I make a ROOT.war file and placed it to server/default/deploy folder.
I also tried 2nd way. But I'm not sure how can I specify <context-root> in the jboss-web.xml file. If you have could you give me a sample file. I want to use 2nd or 3rd way.
***** This is from FAQ file ******************
How do I deploy a WAR to the '/' context
When I deploy my app foo.war to JBoss, it gets installed at /foo. I
want it at /.
You have three choices.
1. The standard J2EE way - wrap your .war in an .ear and in the .ear's
application.xml you can specify the required <context-root> -
2. The proprietary JBoss extension - put a jboss-web.xml into your
.war's WEB-INF directory and specify the <context-root> in that. -
3. A Tomcat-ism. Call the file ROOT.war and deploy this standalone -
i.e. without a surrounding ear. (This is CASE-SENSITIVE - careful on
>But I'm not sure how can I specify <context-root> in the jboss-web.xml file
Make a war file and put jboss-web.xml unter the WEB-INF directory.
You can read the DTD at $JBOSS_HOME/dtd/jboss-web_3_0.dtd.
Thank you so much.
Now my Apache, jboss-3.0.1_tomcat-4.0.4 combination works perfectly.