0 Replies Latest reply on Nov 15, 2006 9:18 AM by null null

    Problem looking up EJBs after upgrading to 4.05 from 4.03sp1

    null null Newbie

      Hello,

      I have a web app that looks up several EJBs. Up until I did the upgrade to 4.05, everything was working fine. I appreciate any insight into this problem. I have pasted the code below:

      jndiContext = getInitialContext();
      AuthenticatorHome aHome = (AuthenticatorHome) jndiContext.lookup("java:comp/env/ejb/Authenticator");

      This code now throughs a class cast exception. The JNDI lookup returns an object type diamelle.security.AuthenticatorHome instead of diamelle.security.auth.AuthenticatorHome

      The deployment descriptors in the web are:

      web.xml
      <ejb-ref id="EjbRef_1115827810859">
      <ejb-ref-name>ejb/Authenticator</ejb-ref-name>
      <ejb-ref-type>Session</ejb-ref-type>
      diamelle.security.auth.AuthenticatorHome
      diamelle.security.auth.Authenticator
      </ejb-ref>

      jboss-web.xml
      <ejb-ref>
      <ejb-ref-name>ejb/Authenticator</ejb-ref-name>
      <jndi-name>diamelle.security.Authenticator</jndi-name>
      </ejb-ref>

      Thanks in advance for your help