chwang,

The deploy directory is meant for you to deploy all of your applications.  
Tomcat is used as an embedded service, so you should never deploy your 
applications in the Tomcat.sar folder.  Also, I do not think the tomcat.sar 
folder is monitored for hot-deploy.  So, if you ever replace your deployment, 
JBoss probably won't undeploy and re-deploy your application.

Basically, do not deploy your apps in Tomcat, but rather, in the 
/server/default/deploy directory.

In Tomcat, the context is based on the directory your application is in.  I 
wonder if this is why you are deploying in Tomcat.  If you want to set the 
context of your application when you deploy your app to the "deploy" directory, 
you'll have to add a "jboss-web.xml" file to your WEB-INF directory with the 
following:


  | <jboss-web>
  |     <context-root>MyAppContext</context-root>
  | </jboss-web>
  | 

This will deploy your app to the //server/MyAppContext/ URL.  You can verify 
this by watching your logs when you place your app in the deploy directory.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3887448#3887448

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3887448


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to