0 Replies Latest reply on Jan 19, 2004 4:39 PM by nagulapati

    problems with EJB referring external class

    nagulapati

      Hello,

      I have an EJB whose Bean is referring to an external class. When I am trying to bundle the EJB and all the external classes, I am getting the following error when trying to deploy the EJB in JBoss

      ===============================================
      16:18:01,432 WARN [ServiceController] Problem creating service jboss.j2ee:jndiName=HelloWorld,service=EJB
      java.lang.NoClassDefFoundError: AdminWebService
      at java.lang.Class.getDeclaredMethods0(Native Method)
      at java.lang.Class.privateGetDeclaredMethods(Class.java:1613)
      at java.lang.Class.privateGetPublicMethods(Class.java:1641)
      at java.lang.Class.getMethod0(Class.java:1730)
      at java.lang.Class.getMethod(Class.java:951)
      at org.jboss.ejb.StatelessSessionContainer.setUpBeanMappingImpl(StatelessSessionContainer.java:501)
      at org.jboss.ejb.StatelessSessionContainer.setupBeanMapping(StatelessSessionContainer.java:536)
      at org.jboss.ejb.StatelessSessionContainer.createService(StatelessSessionContainer.java:135)
      at org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:158)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:966)
      at $Proxy11.create(Unknown Source)
      at org.jboss.system.ServiceController.create(ServiceController.java:310)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      ===============================================

      Here AdminWebService is my external class which I have bundled in the .jar file along with all the other interfaces.

      Does one has to modify the ejb-jar.xml or any other file to reflect the references?

      Can anyone help me out?

      Thanks,
      Vivek