Greetings !

Gang, I am running into a slight problem related to JNDI config under JBoss.
I am calling a CMP Bean(Facility) from a Stateless Session
Bean(RFAdminTickets).
Each bean is in a separate jar file.
Whenever from the client side I call a method of the stateless session bean
which calls CMP I get a "NoClassDefFound" Error.

ejb-jar.xml contents for Stateless Session Bean

                                                <ejb-ref>
        
<ejb-ref-name>ejb/Facility</ejb-ref-name>
        
<ejb-ref-type>Entity</ejb-ref-type>
        
<home>com.ussco.ctscentral.cmp.FacilityHome</home>
        
<remote>com.ussco.ctscentral.cmp.Facility</remote>
                                                </ejb-ref>

jboss.xml contents for Stateless Session Bean

<jboss>                                                               
  <enterprise-beans>
    <session>
      <ejb-name>RFAdminTickets</ejb-name>
      <ejb-ref>
        <ejb-ref-name>ejb/Facility</ejb-ref-name>
        <jndi-name>Facility</jndi-name>
      </ejb-ref>
    </session>
  </enterprise-beans>
</jboss>


Making a reference from Stateless Session Bean to CMP Bean

        try {
        System.setProperty("java.naming.factory.initial", 
        "org.jnp.interfaces.NamingContextFactory");
        System.setProperty("java.naming.provider.url", 
        "localhost:1099");

        // Get a naming context
        InitialContext jndiContext = new InitialContext();

        // Get a reference to the Interest Bean
        facilityHome =
            (FacilityHome)jndiContext.lookup("java:comp/env/ejb/Facility");

        }catch (NamingException ne) {
            System.out.println("GOT IT HERE");    
        }    


Whenever I run my client against the Stateless Session Bean I get the
following stack trace on the Jboss server

[RFAdminTickets] GOT IT HERE
[RFAdminTickets] TRANSACTION ROLLBACK
EXCEPTION:com/ussco/ctscentral/cmp/FacilityHome; nested exception is: 
        java.lang.NoClassDefFoundError:
com/ussco/ctscentral/cmp/FacilityHome
[RFAdminTickets] java.lang.NoClassDefFoundError:
com/ussco/ctscentral/cmp/FacilityHome
[RFAdminTickets]        at
com.ussco.apps.logistics.stateless.RFAdminTicketsEJB.getFacilities(RFAdminTi
cketsEJB.java:83)
[RFAdminTickets]        at java.lang.reflect.Method.invoke(Native Method)
[RFAdminTickets]        at
org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(Stateles
sSessionContainer.java:472)
[RFAdminTickets]        at
org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSe
ssionInstanceInterceptor.java:87)
[RFAdminTickets]        at
org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:133)
[RFAdminTickets]        at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.
java:263)
[RFAdminTickets]        at
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:99)
[RFAdminTickets]        at
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:14
4)
[RFAdminTickets]        at
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
[RFAdminTickets]        at
org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.jav
a:271)
[RFAdminTickets]        at
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerI
nvoker.java:163)
[RFAdminTickets]        at java.lang.reflect.Method.invoke(Native Method)
[RFAdminTickets]        at sun.rmi.server.UnicastServerRef.dispatch(Unknown
Source)
[RFAdminTickets]        at sun.rmi.transport.Transport$1.run(Unknown Source)
[RFAdminTickets]        at
java.security.AccessController.doPrivileged(Native Method)
[RFAdminTickets]        at sun.rmi.transport.Transport.serviceCall(Unknown
Source)
[RFAdminTickets]        at
sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
[RFAdminTickets]        at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
[RFAdminTickets]        at java.lang.Thread.run(Unknown Source)

What am I missing ?

Regards,
Pragnesh Dave

_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to