3 Replies Latest reply on Oct 11, 2002 3:31 PM by Mike Pettit

    EJB not bound !

    Mike Pettit Newbie

      Hi there -
      I am a new JBoss user, and I have been having one hell of a time migrating our app from WL5 to JBoss...
      My main problem today is that I keep getting the message "CurrentUser not bound" Current user is the name of a bean.... Here's all the vitals(below) Thanks in advance..

      I've tried just about everything...including sticking java:comp/env in front of the name....

      Mike.
      The ERROR:
      5:04:31,723 ERROR [STDERR] 15:04:31:723|SocketListener-0|EMAXException|Error getting current users locale: com.emax.security.UserException: Naming Exception: emax.CurrentUser not bound

      The OFFENDER (in java code):
      Context ctx = new InitialContext()
      ctx.lookup("emax.CurrentUser")


      JBOSS-WEB.xml
      <jboss-web>
      <ejb-ref>
      <ejb-ref-name>CurrentUser</ejb-ref-name>
      <jndi-name>emax.CurrentUser</jndi-name>
      </ejb-ref>
      </jboss-web>

      EJB-JAR.xml

      <![CDATA[class allows the retrieval the current users information.]]>
      <ejb-name>CurrentUser</ejb-name>
      com.emax.security.CurrentUserHome
      com.emax.security.CurrentUser
      <ejb-class>com.emax.security.CurrentUserBean</ejb-class>
      <session-type>Stateless</session-type>
      <transaction-type>Container</transaction-type>



      JBOSS.xml

      <ejb-name>CurrentUser</ejb-name>
      <jndi-name>emax.CurrentUser</jndi-name>


      The jmx console entry for the bean is there - That makes me think its bound.....
      jmx-console entry: jndiName=emax.CurrentUser,service=EJB