-
1. Re: deploy and hibernate
neelixx Jul 30, 2005 11:00 AM (in response to chwang)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. -
2. Re: deploy and hibernate
chwang Aug 3, 2005 11:01 AM (in response to chwang)Neelixx,
Thank you very much for your help!
Edgy