[jboss-jira] [JBoss JIRA] Created: (JBAS-8126) CNFE Exceptions due to the wrong classloader being used
Stelios Koussouris (JIRA)
jira-events at lists.jboss.org
Thu Jun 24 12:53:46 EDT 2010
CNFE Exceptions due to the wrong classloader being used
-------------------------------------------------------
Key: JBAS-8126
URL: https://jira.jboss.org/browse/JBAS-8126
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: EJB2
Affects Versions: JBossAS-5.1.0.GA
Reporter: Stelios Koussouris
Assignee: Alexey Loubyansky
The unified classloader is used loading an interface from another jar archive in the /deploy when that interface is called from within a scoped EAR rather than the interface included in the EAR itself.
Our tests show when an interface is in a jar in the deploy directory and also in the scoped my.ear Once passivate gets called from a class within the EAR, that calls that interface, then it throws a ClassCastException on ClassLocal myEJB = ClassLocal.class.cast(obj);
However it is actually a ClassNotFound, looking in the debugger. We see that instead of using the context of the ejb which would be the EAR classloader, the unified classloader is used instead and hence the resulting exception
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list