aspose file tools*
The moose likes JBoss/WildFly and the fly likes Setting docbase for a web-application in JBoss 3.0.4 - Tomcat 4.1.12 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Setting docbase for a web-application in JBoss 3.0.4 - Tomcat 4.1.12 " Watch "Setting docbase for a web-application in JBoss 3.0.4 - Tomcat 4.1.12 " New topic
Author

Setting docbase for a web-application in JBoss 3.0.4 - Tomcat 4.1.12

Avital HarShoshanim
Greenhorn

Joined: May 26, 2003
Posts: 3
I am running Tomcat 4.1.12 as a service of JBoss 3.0.4, and I want to
> deploy a web application.
> By default, my web application is deployed since I placed a directory
> named
> "my_web_app_name.war" under jboss/server/default/deploy.
> In Tomcat 3.2.3 there was a way to add in tomcat/conf/server.xml a Context
> element for each web application and define a different docbase other than
> the default.
> But it seems that Tomcat is ignoring tomcat4.1.x/conf/server.xml when
> running as a JBoss service. (I erased a closing tag causing it to be an illegal XML but neither Tomcat not JBoss were troubled.)
I tried to add such a Context element in jboss/server/default/deploy/tomcat41-service.xml but Tomcat would not serve requests to this web application.
To sum up: how can I set a web-application docBase when running Tomcat as
JBoss service.
Andres Gonzalez
Ranch Hand

Joined: Nov 27, 2001
Posts: 1561
are you talking about application.xml?

As you can see... here I'm specifying my context...


I'm not going to be a Rock Star. I'm going to be a LEGEND! --Freddie Mercury
Avital HarShoshanim
Greenhorn

Joined: May 26, 2003
Posts: 3
Andres thanks.
I am refering to the application.xml file, but I am trying to assign the web-uri a location that is not under the deploy directory (for example when I want to put specific files in a different location in the net).
As it now, the deployment process fails. In earlier versions of tomcat/jboss, I could use the web.xml file to specify different contexts and point them to other locations. Now, it looks that web.xml is ignored at all (whem tomcat runs as service under jboss).
Any advise ?
kaolin fire
Greenhorn

Joined: Nov 18, 2003
Posts: 2
I'm trying to do the same thing; have you had any luck? I've been banging my head on it for a week or so.
 
jQuery in Action, 2nd edition
 
subject: Setting docbase for a web-application in JBoss 3.0.4 - Tomcat 4.1.12