[jboss-user] [JBoss Microcontainer] - Re: Overriding server libs in an EJB inside an EAR - 5.1.0.GA
Rodrigo Uchoa
do-not-reply at jboss.com
Fri May 25 08:44:41 EDT 2012
Rodrigo Uchoa [https://community.jboss.org/people/rodrigo.uchoa] created the discussion
"Re: Overriding server libs in an EJB inside an EAR - 5.1.0.GA"
To view the discussion, visit: https://community.jboss.org/message/737941#737941
--------------------------------------------------------------
Sorry for the delay. Had to leave work before I could answer you.
So, this is the piece of code I'm debugging, inside Ejb3Configuration.class:
* Class interceptor = classForName( interceptorName );*
* cfg.setInterceptor( (Interceptor) interceptor.newInstance() );*
According to the stack trace, line I get a ClassCastException in line two. As if my interceptor does not implement org.hibernate.Interceptor interface (which it does). The debug got me this:
*interceptor.getClassLoader()*
* (org.jboss.classloader.spi.base.BaseClassLoader) BaseClassLoader at a92653{vfsfile:/Users/rodrigouchoa/Java/jboss-5.1.0-dpf.GA/server/default/deploy/sinpi-packaging.ear/}*
*org.hibernate.Interceptor.class.getClassLoader()*
* (org.jboss.classloader.spi.base.BaseClassLoader) BaseClassLoader at a92653{vfsfile:/Users/rodrigouchoa/Java/jboss-5.1.0-dpf.GA/server/default/deploy/sinpi-packaging.ear/}*
If I'm not mistaken, this is normal. Both classes are coming from the same classloader, aren't they? There shouldn't be any problems. Any clues?
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/737941#737941]
Start a new discussion in JBoss Microcontainer at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2114]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120525/e3671c1d/attachment.html
More information about the jboss-user
mailing list