Enhancement for error message "Reason: ClassLoaders of value and target are not equal
"
---------------------------------------------------------------------------------------
Key: EJBTHREE-1789
URL:
https://jira.jboss.org/jira/browse/EJBTHREE-1789
Project: EJB 3.0
Issue Type: Feature Request
Components: ejb3
Environment: MacOS X (Leopard), JBoss 5.0.1 GA
Reporter: Andreas Bauer
Priority: Minor
When using an injected bean in a servlet, the following error occurs:
ERROR [FieldBeanProperty] failed to set value Proxy to
jboss.j2ee:jar=TwitterPoCEJB.jar,name=TweetViewerBean,service=EJB3 implementing [interface
org.jboss.ejb3.proxy.intf.EjbProxy, interface
org.jboss.ejb3.proxy.intf.StatefulSessionProxy, interface
de.brotkasting.buki.cep.beans.TwitterSessionBeanRemote, interface
org.jboss.ejb3.proxy.intf.SessionProxy] on field private
de.brotkasting.buki.cep.beans.TwitterSessionBean
de.brotkasting.buki.cep.servlets.TweetViewerServlet.bean; Reason: ClassLoaders of value
and target are not equal
The message doesn't clearly indicate why this error arises.
Reason for this:
In the servlet, I used the the bean implementatoin instead of the local bean interface.
Replacing this, rebuilding and redeploying solved the issued.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira