4 Replies Latest reply on Mar 30, 2004 1:44 AM by ashsamso

    Urgent: Ejb Not bound Linux

    ashsamso

      Hi all
      I am facing problem when i deploy an stateless session bean under jboss 3.2.1 under linux the same ear file working good under windows XP it give me EJB not bound naming exception with the same Jboss version i am searching on the forum but i didn't found any solution to my probelm also i test the JNDI View return nothing this my descriptors files

      <ejb-jar>
      <enterprise-beans>

      <display-name>My SMS Session Bean</display-name>
      <ejb-name>MySenderSession</ejb-name>
      com.HelperHome
      com.Helper
      <ejb-class>com.HelperBean</ejb-class>
      <session-type>Stateless</session-type>
      <transaction-type>Container</transaction-type>

      </enterprise-beans>
      </ejb-jar>

      Jboss .xml

      <enterprise-beans>

      <ejb-name>MySenderSession</ejb-name>
      <jndi-name>MySenderSessionHomeRemote</jndi-name>

      </enterprise-beans>


      Jboss-web.xml

      <jboss-web>
      <ejb-ref>
      <ejb-ref-name>ejb/MySenderSession</ejb-ref-name>
      <jndi-name>MySenderSessionHomeRemote</jndi-name>
      </ejb-ref>
      </jboss-web>

      web.xml
      <web-app>
      <ejb-ref>
      no description
      <ejb-ref-name>ejb/MySenderSession</ejb-ref-name>
      <ejb-ref-type>Session</ejb-ref-type>
      com.HelperHome
      com.Helper
      </ejb-ref>
      </web-app>


      My JSP Lookup is
      InitialContext ctx = new InitialContext();
      Object objref = ctx.lookup("ejb/MySenderSession");
      testSessionBean = (SMSHelperHome)PortableRemoteObject.narrow(objref, Class.forName("com.hprog.shoog.SMSHelperHome"));
      NamingException.printStackTrace();



      Please if anyone face my problem advice me asap

      Thanks

        • 1. Re: Urgent: Ejb Not bound Linux

          Make sure your "META-INF" is in caps on linux. Windows doesn't care. So JBoss will deploy your jar as a regular non-EJB jar, since it won't find your META-INF directory.

          Steve

          • 2. Re: Urgent: Ejb Not bound Linux
            ashsamso

            i checked My META-INF and i found it on caps , so i don't know from the probelm come , the problem that i test the ear application on the same version under windows XP and it was run but under linux give this error, so if anyone know common differneces bet. linux and windows deployment please till me

            • 3. Re: Urgent: Ejb Not bound Linux

              My guess would be maybe to check for a permissions problem too. Is JBoss running as a non-root user? If so, make sure the user it is running as has appropriate privs.

              • 4. Re: Urgent: Ejb Not bound Linux
                ashsamso

                I Think it not a priv. problem cause i was deploying other war files and it working and connectiong to db without any problem the problem come from the EJB so please again if anyone knows common differneces bet. windows or linux or linux need extra settings inform me