-
1. Re: Jboss Tomcat - Context for webapp
gregpearman Oct 22, 2003 4:40 PM (in response to dbshah)What you are suppose to do is setup the context (just like you would in a stand-alone version of Tomcat) in the jboss-service.xml file located under the jbossweb-tomcat.sar/META-INF/ directory. You will find this directory under the deploy directory.
I have tried this though without any luck. :-( -
2. Re: Jboss Tomcat - Context for webapp
dbshah Oct 23, 2003 8:22 AM (in response to dbshah)I too have tried with no success!
Hopefully someone can help answer this since one of my app. is not accessible right now. -
3. Re: Jboss Tomcat - Context for webapp
bohra Oct 23, 2003 10:52 AM (in response to dbshah)Hi
I ran into this problem, and this is how I solved it :
I created the war exactly like in Tomcat.
I then created an ear that looks like :
$ jar -tf rubis.ear
META-INF/
META-INF/MANIFEST.MF
rubis_ejb_servlets.jar
rubis.jar
ejb_rubis_web.war
META-INF/jboss.xml
META-INF/ejb-jar.xml
META-INF/web.xml
META-INF/application.xml
The application.xml is the only other file which has the following :
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1
.3//EN" "http://java.sun.com/dtd/application_1_3.dtd">
<display-name>ejb_rubis_web</display-name>
RUBiS Session Bean implementation
rubis.jar
<web-uri>ejb_rubis_web.war</web-uri>
<context-root>ejb_rubis_web</context-root>
And I can see the ejb_rubis_web in the right context ---
To change it, just change the context-root.
Aniruddha