-
1. Re: http://localhost:8080/index.jsp or http://localhost:8080
joelvogt Sep 2, 2002 8:00 PM (in response to chojes)do you mean you want to test that you can see a page or you want to use the root context?
-
2. Re: http://localhost:8080/index.jsp or http://localhost:8080
minamoto Sep 2, 2002 10:46 PM (in response to chojes)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.
Miki -
3. Re: http://localhost:8080/index.jsp or http://localhost:8080
chojes Sep 2, 2002 11:46 PM (in response to chojes)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
Windoze) -
4. Re: http://localhost:8080/index.jsp or http://localhost:8080
minamoto Sep 3, 2002 5:01 AM (in response to chojes)>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.
<jboss-web>
<context-root>/</context-root>
</jboss-web>
You can read the DTD at $JBOSS_HOME/dtd/jboss-web_3_0.dtd.
Miki -
5. Re: http://localhost:8080/index.jsp or http://localhost:8080
minamoto Sep 3, 2002 5:13 AM (in response to chojes)I found your question was already answered in the FAQ.
http://www.jboss.org/modules/bb/index.html?module=bb&op=viewtopic&t=forums/ -
6. Re: http://localhost:8080/index.jsp or http://localhost:8080
chojes Sep 3, 2002 9:40 AM (in response to chojes)Thank you so much.
Now my Apache, jboss-3.0.1_tomcat-4.0.4 combination works perfectly.