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
  


<a 
href="http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3827713#3827713";>View 
the original post</a>

<a 
href="http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3827713>Reply 
to the post</a>


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to