Uploaded image for project: 'EJB 3.0'
  1. EJB 3.0
  2. EJBTHREE-1789

Enhancement for error message "Reason: ClassLoaders of value and target are not equal "

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • None
    • ejb3

      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.

              arubinge@redhat.com Andrew Rubinger (Inactive)
              buki79 Andreas Bauer (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated: