2 Replies Latest reply on Jul 16, 2003 9:21 PM by oxygen

    Please help,EJB2.0+JBoss3.21,TKS

    oxygen

      I try to deploy my ear file in jboss3.2.1 server.
      After server started,i use my servlet to invocate Session EJB for login my system,error display:
      JBoss (MX MicroKernel) [3.2.1 (build: CVSTag=JBoss_3_2_1 date=200305041533)] Started
      javax.naming.NameNotFoundException: Session not bound
      at org.jnp.server.NamingServer.getBinding(NamingServer.java:495)
      at org.jnp.server.NamingServer.getBinding(NamingServer.java:503)
      at org.jnp.server.NamingServer.getObject(NamingServer.java:509)
      at org.jnp.server.NamingServer.lookup(NamingServer.java:253)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:492)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:471)
      at javax.naming.InitialContext.lookup(InitialContext.java:347)

      please help ,thanks

        • 1. Re: Please help,EJB2.0+JBoss3.21,TKS
          imdkidd

          Make sure that your session bean is bound in the JNDI tree. You can find out by going to the jmx-console and clicking on the JNDIView MBean.

          • 2. Re: Please help,EJB2.0+JBoss3.21,TKS
            oxygen

            Yes,jboss default jndiname is bean's name,but my ejb's name is "Session/ejbname".
            i create a xml file jboss-service.xml and put it into META-INF.
            jboss-service.xml :
            <?xml version="1.0" encoding="UTF-8"?>

            <enterprise-beans>

            <ejb-name>ASELogin</ejb-name>
            <jndi-name>Session/ASELogin</jndi-name>

            </enterprise-beans>