[jboss-user] [JNDI/Naming/Network] - Re: JBoss 4.2 ejb not bound

_steph do-not-reply at jboss.com
Sat Jun 23 21:07:56 EDT 2007


Thank you for your reply Jaikiran. 


Configuration files and lookup code are generated with Xdoclet 1.2.3.

Bean Xdoclet tags:

 * @ejb.bean name="Calc" description="An EJB named Calc" display-name="Calc"
 *           view-type="both" jndi-name="CalcHome" local-jndi-name =
 *           "CalcLocalHome" type="Stateless" transaction-type="Container"
 * 
 * 
 * @ejb.util generate="logical"
 * 
 * @ejb.home package="calc.interfaces"
 * 
*

generated ejb-jar.xml file:

 <display-name>Calc</display-name>

   <enterprise-beans>

      <!-- Session Beans -->
      
         <![CDATA[An EJB named Calc]]>
         <display-name>Calc</display-name>

         <ejb-name>Calc</ejb-name>

         calc.interfaces.CalcHome
         calc.ejb.Calc
         <local-home>calc.interfaces.CalcLocalHome</local-home>
         calc.ejb.CalcLocal
         <ejb-class>calc.ejb.CalcSession</ejb-class>
         <session-type>Stateless</session-type>
         <transaction-type>Container</transaction-type>

      
...

</ejb-jar>



jboss.xml specific generated file:



   <enterprise-beans>

     

      
         <ejb-name>Calc</ejb-name>
         <jndi-name>CalcHome</jndi-name>
         <local-jndi-name>CalcLocalHome</local-jndi-name>

       <method-attributes>
        </method-attributes>
      



Server log when I deploy the app:


02:52:21,796 INFO  [EARDeployer] Init J2EE application: file:/D:/jboss-4.2.0/server/default/deploy/CalcEAR.ear
02:52:22,015 INFO  [EjbModule] Deploying Calc
02:52:22,390 INFO  [BaseLocalProxyFactory] Bound EJB LocalHome 'Calc' to jndi 'CalcLocalHome'
02:52:22,406 INFO  [ProxyFactory] Bound EJB Home 'Calc' to jndi 'CalcHome'
02:52:22,406 INFO  [EJBDeployer] Deployed: file:/D:/jboss-4.2.0/server/default/tmp/deploy/tmp27268CalcEAR.ear-contents/Calc.jar
02:52:22,421 INFO  [TomcatDeployer] deploy, ctxPath=/CalcWeb, warUrl=.../tmp/deploy/tmp27268CalcEAR.ear-contents/CalcWeb-exp.war/
02:52:22,515 INFO  [EARDeployer] Started J2EE application: file:/D:/jboss-4.2.0/server/default/deploy/CalcEAR.ear



So the session bean is supposed to be bound to jndi his names.
But in the JNDIView.list() result there is no Calc bean. It's not deployed

...
Ejb Module: Calc.jar

java:comp namespace of the Calc bean:

  +- env (class: org.jnp.interfaces.NamingContext)
...

For me it's a jboss bug and the jboss log is erroneous. The lookup code generated by Xdoclet too, I tried your sample lookup code with same result.

Stephane.






View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057161#4057161

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057161



More information about the jboss-user mailing list