-
1. Re: Where do you put the dependency jars??
blabno Jul 11, 2009 1:20 PM (in response to seamseasy)When you have EAR and some objects are passed between WAR and EJB jar the library with class of that object must be located at EAR/lib. If you keep duplicates, then you will have ClassCastException because class will be loaded by two different classloaders.
Read this : http://www.jboss.org/community/wiki/JBossClassLoadingUseCases
-
2. Re: Where do you put the dependency jars??
asookazian Jul 11, 2009 4:00 PM (in response to seamseasy)
library placement in seam-gen'ed apps is controlled by the top-level files deployed-jars-ear.list and deployed-jars-war.list. The jars mentioned in deployed-jars-ear.list end up in the EAR/lib directory, and are accessible by all modules of the application. Those from deployed-jars-war.list end in WEB-INF/lib, and are only available to the web-app.http://seamframework.org/Community/HowToConfigureClassLoadingInSEAMAPP
-
3. Re: Where do you put the dependency jars??
seamseasy Jul 11, 2009 6:31 PM (in response to seamseasy)Yes that's exactly what is happening.
Just one followup... and I think others might benefit from this:
So what is actually supposed to be in web-inf/lib of the top-level project? If I move everything from there to the EAR then I should take all the entries out of application.xml?
Then I think I link the top-level to the dependencies in the EAR with the manifest files?
Hope that makes sense. Thanks again for any help.
-
4. Re: Where do you put the dependency jars??
seamseasy Jul 11, 2009 7:45 PM (in response to seamseasy)I saw this doc and looked for those .list files but they're not anywhere around. The project was made in JBoss DS by selecting new-New Seam Web Project
Are these normally put in manually? From what I was reading they show up with a jumpstart tool called SeamGen.. but we aren't using this.