-
1. Re: Deploying multiple ears with
sanjeevkoppal Jan 20, 2009 2:48 PM (in response to hamtho2)Try setting UseJBossWebLoader=true in
server\default\deploy\jboss-web.deployer\META-INF\jboss-service.xml -
2. Re: Deploying multiple ears with
sanjeevkoppal Jan 20, 2009 2:51 PM (in response to hamtho2)Also, try to remove the hibernate jars from Jboss default library if you are having hibernate jars in ur ear..
-
3. Re: Deploying multiple ears with
hamtho2 Jan 21, 2009 9:09 AM (in response to hamtho2)Thanks for the idea.
I´m currently using the hibernate jars from the /server/default/lib directory and no further jars are included in my ear.
Unfortunatley the "UseJBossWebLoader" does not have any effect on this.
But maybe this is because it is not an web application, but an ear containing one jar with Entity-classes and one jar with the server-ejb3-sessionbeans.
Any other idea?
Thomas -
4. Re: Deploying multiple ears with
jaikiran Jan 21, 2009 9:20 AM (in response to hamtho2)It seems as if this class will be loaded only once and the first deployment wins.
In such cases, you will have to load that class again through a separate classloader. Something along these lines:
* Package all the relevant and correct version of hibernate jar files with your application ears. You can place them in EAR/lib folder. Each ear should package these jars.
* Package the hibernate.properties in each EAR. Place that file wherever they are now (at the root of EAR?)
* Configure scoped classloading for each of the EAR through jboss-app.xml. https://www.jboss.org/community/docs/DOC-9288. Ensure that the jboss-app.xml contains a unique loader-repository name for each of the ear. -
5. Re: Deploying multiple ears with
hamtho2 Jan 21, 2009 11:42 AM (in response to hamtho2)@jaikiran
Thanks for your answer.
It was a little bit circumstantial, as there are some struggles with the current maven ear plugin, but that was finally the solution!!!!
Now it works!! Thanks!
Thomas