This content has been marked as final.
Show 1 reply
-
1. Re: Deploying a war file with Tomcat 5 and JBoss
jonlee Dec 5, 2003 3:48 AM (in response to epixnicros)You need to create a root context by adding a jboss-web.xml to your WAR - it goes in the WEB-INF directory with your existing web.xml file.
The jboss-web.xml should contain the following:<jboss-web> <context-root>/</context-root> <virtual-host>www.acme.com</virtual-host> </jboss-web>
I would have thought that by default Tomcat would provide services at port 8080 - unless you have changed things.
So access would be http://localhost:8080/home or http://127.0.0.1:8080/home, assuming that you have an index.html or index.jsp in the root directory of your WAR. However, you report that you get the root display so I am confused about your actual configuration.
Also, your deployment indicates it can't locate the web.xml - it is in WEB-INF/web.xml of your WAR? Case is important so check the WAR with jar tvf home.war and make sure the WEB-INF directory exists, not web-inf or Web-inf or any other variations.
You may also need to remove any existing web application mapped to the root context - e.g. Whatever one shows the Welcome to JBoss screen. I haven't downloaded 3.2.3 as yet so I can't comment on how things may have changed for this.