3 Replies Latest reply on Oct 11, 2002 3:31 PM by mike.pettit

    EJB not bound !

    mike.pettit

      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


        • 1. Re: EJB not bound !
          mike.pettit

          This might help: I am deploying a bunch of beans (70!!) And I am getting an error or two in the log file. SO I go to the console and click the JNDIView and....... My beans are there - but they don't have any
          attributes (+-env() etc..) below them... ANy help with this..???

          -MP

          • 2. Re: EJB not bound !
            mike.pettit

            What is "bound" (binding)? Am i missing a step in "binding" my EJBs? any insight, help, links of any kind are greatly appreciated

            • 3. Re: EJB not bound !
              mike.pettit

              Solved! - I am not too sure if it was the CDATA in description - CDATA tag was not closed... but getting rid of the description seemed to have fixed it.