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

    Urgent: Ejb Not bound Linux

    ashsamso Newbie

      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