-
Feature Request
-
Resolution: Unresolved
-
Minor
-
None
-
None
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.