-
1. Re: Integrating TomCat 4.0.1 with Jboss 2.4.4
jackburns May 22, 2002 9:24 AM (in response to sunnykhosa)Hi,
If you are placing your web application archive (war, ear, jar) in the deploy folder of jboss, Jboss assigns a context path for your application
When you start jboss you will see the lines:
[INFO,J2eeDeployer] inflate and install WEB module mvc.war
[INFO,ContainerFactory] Deploying:file:/D:/jboss/tmp/deploy/Default/mvc.war
[INFO,ContainerFactory] Deployed application: file:/D:/jboss/tmp/deploy/Default/mvc.war
[INFO,J2eeDeployer] Starting module mvc.war
[INFO,EmbeddedCatalinaServiceSX] deploy, ctxPath=/mvc, warUrl=file:/D:/jboss/tmp/deploy/Default/mvc.
war/web1003/
To access the web application, add the ctxPath value (last line above) to the usual URL. For this example, the base url is:
http://localhost:8080/mvc/
hope this helps,
jack -
2. Re: Integrating TomCat 4.0.1 with Jboss 2.4.4
sunnykhosa May 22, 2002 12:37 PM (in response to sunnykhosa)Hi,
I tried deploying the .war file, which in my case is called sampleTest.war. The message JBoss gives is:
[INFO,AutoDeployer] Auto deploy of file:/D:/JBTomcat/jboss/deploy/sampleTest.war
[INFO,J2eeDeployer] Deploy J2EE application: file:/D:/JBTomcat/jboss/deploy/sampleTest.war
[INFO,J2eeDeployer] Create application sampleTest.war
[INFO,J2eeDeployer] inflate and install WEB module sampleTest.war
[INFO,ContainerFactory] Deploying:file:/D:/JBTomcat/jboss/tmp/deploy/Default/sampleTest.war
[INFO,ContainerFactory] Deployed application: file:/D:/JBTomcat/jboss/tmp/deploy/Default/sampleTest.war
[INFO,J2eeDeployer] Starting module sampleTest.war
[INFO,EmbeddedCatalinaServiceSX] deploy, ctxPath=/sampleTest, warUrl=file:/D:/JBTomcat/jboss/tmp/deploy/Default/sampleTest.war/web1005/
[INFO,EmbeddedCatalinaServiceSX] WebappLoader[/sampleTest]: Deploying class repositories to work directory D:\JBTomcat\catalina\work\localhost\sampleTest
[INFO,EmbeddedCatalinaServiceSX] StandardManager[/sampleTest]: Seeding random number generator class java.security.SecureRandom
[INFO,EmbeddedCatalinaServiceSX] StandardManager[/sampleTest]: Seeding of random number generator has been completed
[INFO,EmbeddedCatalinaServiceSX] ContextConfig[/sampleTest]: Added certificates -> request attribute Valve
[INFO,EmbeddedCatalinaServiceSX] StandardWrapper[/sampleTest:default]: Loading container servlet default
[INFO,EmbeddedCatalinaServiceSX] default: init
[INFO,EmbeddedCatalinaServiceSX] StandardWrapper[/sampleTest:invoker]: Loading container servlet invoker
[INFO,EmbeddedCatalinaServiceSX] invoker: init
[INFO,EmbeddedCatalinaServiceSX] jsp: init
[INFO,J2eeDeployer] J2EE application: file:/D:/JBTomcat/jboss/deploy/sampleTest.war is deployed.
Finally i tried accessing the servlet as:
http://localhost:8080/sampleTest
but this take me to the directory listings of ApacheTomcat. Am still puzzled with the way it works. Any corrections i need to do?
Thanks
Sumeer. -
3. Re: Integrating TomCat 4.0.1 with Jboss 2.4.4
sunnykhosa May 22, 2002 12:49 PM (in response to sunnykhosa)Thanks for all the help guys. I figured out the solution. It was due one stupid mistake on my side. INstead of accessing as "http://localhost:8080/sampleTest/servlet/sampletest" i was accessing it as "http://localhost:8080/sampleTest/servlets/sampleTest"..:-). It works great now.
Thanks
Sumeer.