-
1. Re: Migrating to AS7
prasad.deshpande Mar 13, 2012 6:35 PM (in response to fabboco)Fabrizio Boco wrote:
... Caused by: java.lang.NoClassDefFoundError: org/myPackage/MyClass ...
If that's the only reason you added "MyApp.jar" in jboss-deployment-structure.xml & if that jar doesn't contain any components (just like a library jar), then you can simply drop "MyApp.jar" in your EAR/lib directory & remove that subdeployment node from that XML & class should be available to your EJB's.
-
2. Re: Migrating to AS7
fabboco Mar 15, 2012 3:07 AM (in response to prasad.deshpande)Hi Prasad,
MyApp.jar contains some classes (one of them is MyClass) which are used by my EJBs.
I can't remove the library.
Thanks
Fab.
-
3. Re: Migrating to AS7
prasad.deshpande Mar 15, 2012 5:39 AM (in response to fabboco)MyApp.jar contains some classes (one of them is MyClass) which are used by my EJBs.
I can't remove the library.
If you move MyApp.jar in EAR/lib directory, it will still be available to your EJB's so there won't be any problem there. I'm asking to remove subdeployment node for MyApp.jar in your jboss-deployment-structure.xml. Cause after moving that jar to EAR/lib directory, it doesn't make sense to define it as subdeployment module.