0 Replies Latest reply on Mar 9, 2005 6:49 PM by Abhishek Khandelwal

    Not able to deploy EJB on the jboss server.

    Abhishek Khandelwal Newbie

      I am getting some strange problme in jboss server. I try to deploy a ejb on the server and i run into jboss.service=WebService not registered??
      Any help would be appreciated.

      Here is what I did:
      I started jboss, and it started without any problem, I try to deploy jrmp-comp.sar and jrmp-dl.jar(which comes with jboss/testsuites) in jboss_home/server/all/deploy directory.

      And jboss is not able to deploy the ejb and this the error thrown on console:

      ==========================================================
      00:22:49,989 INFO [Server] JBoss (MX MicroKernel) [4.0.0 (build: CVSTag=JBoss_4_0_0 date=20050308-2334_4.0.0-0.spike.1089)] Started in 56s:149ms
      00:24:22,954 INFO [EjbModule] Deploying StatelessSession
      00:24:22,979 ERROR [EjbModule] Initialization failed jboss.j2ee:module=jrmp-dl.jar,service=EjbModule
      org.jboss.util.NestedRuntimeException: Error creating MBeanProxy: jboss:service=WebService; - nested throwable: (javax.management.InstanceNotFoundException: jboss:service=WebService is not registered.)
      at org.jboss.mx.util.MBeanProxyExt.(Unknown Source)
      at org.jboss.mx.util.MBeanProxyExt.create(Unknown Source)
      at org.jboss.mx.util.MBeanProxyExt.create(Unknown Source)
      at org.jboss.ejb.EjbModule.destroyService(Unknown Source)
      at org.jboss.ejb.EjbModule.createService(Unknown Source)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(Unknown Source)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(Unknown Source)
      at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(Unknown Source)
      at org.jboss.mx.server.Invocation.dispatch(Unknown Source)
      at org.jboss.mx.server.Invocation.invoke(Unknown Source)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(Unknown Source)
      at org.jboss.mx.server.MBeanServerImpl.invoke(Unknown Source)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(Unknown Source)
      at $Proxy0.create(Unknown Source)
      at org.jboss.system.ServiceController.create(Unknown Source)
      at org.jboss.system.ServiceController.create(Unknown Source)
      at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(Unknown Source)
      at org.jboss.mx.server.Invocation.dispatch(Unknown Source)
      at org.jboss.mx.server.Invocation.invoke(Unknown Source)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(Unknown Source)
      at org.jboss.mx.server.MBeanServerImpl.invoke(Unknown Source)
      at org.jboss.mx.util.MBeanProxyExt.invoke(Unknown Source)
      at $Proxy16.create(Unknown Source)
      at org.jboss.ejb.EJBDeployer.create(Unknown Source)
      at org.jboss.deployment.MainDeployer.create(Unknown Source)
      at org.jboss.deployment.MainDeployer.deploy(Unknown Source)

      and then
      00:24:23,002 WARN [ServiceController] Problem creating service jboss.j2ee:module=jrmp-dl.jar,service=EjbModule
      org.jboss.util.NestedRuntimeException: Error creating MBeanProxy: jboss:service=WebService; - nested throwable: (javax.management.InstanceNotFoundException: jboss:service=WebService is not registered.)
      at org.jboss.mx.util.MBeanProxyExt.(Unknown Source)
      at org.jboss.mx.util.MBeanProxyExt.create(Unknown Source)
      at org.jboss.mx.util.MBeanProxyExt.create(Unknown Source)
      at org.jboss.ejb.EjbModule.destroyService(Unknown Source)
      at org.jboss.ejb.EjbModule.createService(Unknown Source)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(Unknown Source)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(Unknown Source)
      at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(Unknown Source)
      at org.jboss.mx.server.Invocation.dispatch(Unknown Source)
      at org.jboss.mx.server.Invocation.invoke(Unknown Source)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(Unknown Source)
      at org.jboss.mx.server.MBeanServerImpl.invoke(Unknown Source)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(Unknown Source)
      at $Proxy0.create(Unknown Source)
      at org.jboss.system.ServiceController.create(Unknown Source)
      at org.jboss.system.ServiceController.create(Unknown Source)
      at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(Unknown Source)
      at org.jboss.mx.server.Invocation.dispatch(Unknown Source)
      at org.jboss.mx.server.Invocation.invoke(Unknown Source)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(Unknown Source)
      at org.jboss.mx.server.MBeanServerImpl.invoke(Unknown Source)
      at org.jboss.mx.util.MBeanProxyExt.invoke(Unknown Source)
      at $Proxy16.create(Unknown Source)
      at org.jboss.ejb.EJBDeployer.create(Unknown Source)
      at org.jboss.deployment.MainDeployer.create(Unknown Source)
      at org.jboss.deployment.MainDeployer.deploy(Unknown Source)
      at org.jboss.deployment.MainDeployer.deploy(Unknown Source)
      at org.jboss.deployment.MainDeployer.deploy(Unknown Source)
      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.interceptor.ReflectedDispatcher.invoke(Unknown Source)
      ========================================================

      Any help????