[jboss-user] [EJB 3.0] - Re: Sharing EJB3 classes in a .jar creates

niclas.lindberg do-not-reply at jboss.com
Thu Oct 19 11:33:18 EDT 2006


Hi Al!

Thanks for your reply. Unfortunally the error remains..

>From the JMX console.
persistence.units
ear=system.ear,jar=accountsystem.jar,unitName=AccountSystem 

accountsystem.jar references shared-susbsystems.jar with a Class-Path attribute in the manifest. The Entity EJB3 classes are in the shared-subsystems.jar and the persistence.xml is the accountsystem.jar's meta-inf directory.

The classes loads. In my bean I do this on the first line in the method:
log.info("This: " + this.getClass().getClassLoader());
log.info("User: " + user.getClass().getClassLoader());

And the result is:
[AccountSystem] This: org.jboss.mx.loading.UnifiedClassLoader
3 at 19a639b{ url=file:/C:/Program/jboss-4.0.4.GA/server/default/tmp/deploy/tmp5726
0system.ear ,addedOrder=51}
[AccountSystem] User: org.jboss.mx.loading.UnifiedClassLoader
3 at 19a639b{ url=file:/C:/Program/jboss-4.0.4.GA/server/default/tmp/deploy/tmp5726
0system.ear ,addedOrder=51}

Same classloader... I don't understand..

Thanks anyone for anyhelp!!

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

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



More information about the jboss-user mailing list