1 Reply Latest reply on Apr 12, 2002 8:22 AM by knorki

    2.4.4 local interface not bound

    knorki

      Hi

      i am trying to call an entity bean from a session bean through local interfaces.

      JNDIVIEW:

      java:comp namespace of the ReportList bean:
      +- env (class: org.jnp.interfaces.NamingContext)
      | +- ejb (class: org.jnp.interfaces.NamingContext)
      | | +- ReportList (class: net.infosim.stablenet.svc.impl.core.entity.reportlist.ILocalReportListEntityHome)


      So that means my beans local interface is bound (hopefuly:-))

      now i try to call from my session bean

      context.lookup("java:comp/env/ejb/ReportList")
      or
      context.lookup("ejb/ReportList")

      but with both variants i get the following errormessage

      [12:30:20,111,beans/CompleteReport] TRANSACTION ROLLBACK EXCEPTION:
      javax.transaction.TransactionRolledbackException: net/infosim/stablenet/svc/impl/core/entity/reportlist/ILocalReportListEntityHome; nested
      exception is:
      java.lang.NoClassDefFoundError: net/infosim/stablenet/svc/impl/core/entity/reportlist/ILocalReportListEntityHome
      java.lang.NoClassDefFoundError: net/infosim/stablenet/svc/impl/core/entity/reportlist/ILocalReportListEntityHome
      at net.infosim.stablenet.svc.impl.pme.completereport.CompleteReportSvcBean.getCollections(CompleteReportSvcBean.java:158)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:542)
      at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:81)
      at org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:138)
      at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:347)
      at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:100)
      at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:127)
      at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:170)
      at org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.java:286)
      at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerInvoker.java:410)
      at java.lang.reflect.Method.invoke(Native Method)
      at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:241)
      at sun.rmi.transport.Transport$1.run(Transport.java:152)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.rmi.transport.Transport.serviceCall(Transport.java:148)
      at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:465)
      at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:706)
      at java.lang.Thread.run(Thread.java:484)



      I am thankful for any tips how to get around this

        • 1. Re: 2.4.4 local interface not bound
          knorki

          oooppps sorry this is the right error message: :-)



          [12:29:49,068,ContainerFactory] Deployed application: file:/opt/jboss-2.4.4/jboss/tmp/deploy/Default/CompleteReportSvc.jar
          [12:29:49,068,J2eeDeployer] J2EE application: file:/opt/jboss-2.4.4/jboss/deploy/CompleteReportSvc.jar is deployed.
          [12:30:20,091,Default] javax.naming.NameNotFoundException: ejb not bound
          [12:30:20,091,Default] at org.jnp.server.NamingServer.getBinding(NamingServer.java:495)
          [12:30:20,091,Default]
          [12:30:20,092,Default] at org.jnp.server.NamingServer.getBinding(NamingServer.java:503)
          [12:30:20,092,Default]
          [12:30:20,092,Default] at org.jnp.server.NamingServer.getObject(NamingServer.java:509)
          [12:30:20,092,Default]
          [12:30:20,092,Default] at org.jnp.server.NamingServer.lookup(NamingServer.java:253)
          [12:30:20,092,Default]
          [12:30:20,092,Default] at org.jnp.server.NamingServer.lookup(NamingServer.java:256)
          [12:30:20,092,Default]
          [12:30:20,093,Default] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:349)
          [12:30:20,093,Default]
          [12:30:20,093,Default] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:457)
          [12:30:20,093,Default]
          [12:30:20,093,Default] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:333)
          [12:30:20,093,Default]
          [12:30:20,093,Default] at javax.naming.InitialContext.lookup(InitialContext.java:350)