1 Reply Latest reply on Jun 5, 2013 10:41 PM by R J

    jboss-service.xml in Jboss4EAP with HornetQ

    R J Newbie

      When I put the Jboss-service.xml in as

       

      <server>

       

       

        <mbean code="org.hornetq.service.HornetQFileConfigurationService"

            name="org.hornetq:service=HornetQFileConfigurationService">

         </mbean>

       

          <mbean code="org.hornetq.service.JBossASSecurityManagerService"

            name="org.hornetq:service=JBossASSecurityManagerService">

         </mbean>

       

       

          <mbean code="org.hornetq.service.HornetQStarterService"

            name="org.hornetq:service=HornetQStarterService">

            <!--lets let the JMS Server start us-->

           <attribute name="Start">false</attribute>

       

       

            <depends optional-attribute-name="SecurityManagerService"

               proxy-type="attribute">org.hornetq:service=JBossASSecurityManagerService</depends>

            <depends optional-attribute-name="ConfigurationService"

               proxy-type="attribute">org.hornetq:service=HornetQFileConfigurationService</depends>

         </mbean>

       

       

      <mbean code="org.hornetq.service.HornetQJMSStarterService"

            name="org.hornetq:service=HornetQJMSStarterService">

            <depends optional-attribute-name="HornetQServer"

               proxy-type="attribute">org.hornetq:service=HornetQStarterService</depends>

      </mbean

      <server>

       

       

      I am getting some ERRORs console . Below are the those . Please let me know whether I should Update any file or add JARS

       

       

      D:8083/

      17:26:55,754 INFO  [Log4jService$URLWatchTimerTask] Configuring from URL: resour                                                                                                                                                 ce:jboss-log4j.xml

      17:26:57,198 ERROR [MainDeployer] Could not create deployment: file:/C:/cygwin/T                                                                                                                                                 ESTING/server/node/deploy/hornetq.sar/

      org.jboss.deployment.DeploymentException: - nested throwable: (java.lang.reflect                                                                                                                                                 .UndeclaredThrowableException)

              at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java                                                                                                                                                 :196)

              at org.jboss.system.ServiceController.install(ServiceController.java:226                                                                                                                                                 )

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.                                                                                                                                                 java:57)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces                                                                                                                                                 sorImpl.java:43)

              at java.lang.reflect.Method.invoke(Method.java:601)

              at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch                                                                                                                                                 er.java:155)

              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)

              at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)

              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.                                                                                                                                                 java:264)

              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

              at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)

              at com.sun.proxy.$Proxy4.install(Unknown Source)

              at org.jboss.deployment.SARDeployer.create(SARDeployer.java:249)

              at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)

              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)

              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.                                                                                                                                                 java:57)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces                                                                                                                                                 sorImpl.java:43)

              at java.lang.reflect.Method.invoke(Method.java:601)

              at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch                                                                                                                                                 er.java:155)

              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)

              at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept                                                                                                                                                 or.java:133)

              at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

              at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM                                                                                                                                                 BeanOperationInterceptor.java:142)

              at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.                                                                                                                                                 java:264)

              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

              at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)

              at com.sun.proxy.$Proxy9.deploy(Unknown Source)

              at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen                                                                                                                                                 tScanner.java:421)

              at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS                                                                                                                                                 canner.java:634)

              at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.                                                                                                                                                 doScan(AbstractDeploymentScanner.java:263)

              at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(A                                                                                                                                                 bstractDeploymentScanner.java:336)

              at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanS                                                                                                                                                 upport.java:289)

              at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMB                                                                                                                                                 eanSupport.java:245)

              at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces                                                                                                                                                 sorImpl.java:43)

              at java.lang.reflect.Method.invoke(Method.java:601)

              at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch                                                                                                                                                 er.java:155)

              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)

              at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)

              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.                                                                                                                                                 java:264)

              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

              at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl                                                                                                                                                 ler.java:978)

              at com.sun.proxy.$Proxy0.start(Unknown Source)

              at org.jboss.system.ServiceController.start(ServiceController.java:417)

              at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces                                                                                                                                                 sorImpl.java:43)

              at java.lang.reflect.Method.invoke(Method.java:601)

              at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch                                                                                                                                                 er.java:155)

              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)

              at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)

              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.                                                                                                                                                 java:264)

              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

              at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)

              at com.sun.proxy.$Proxy4.start(Unknown Source)

              at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)

              at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)

              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)

              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)

              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.   java:57)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces                                                                                                                                                 sorImpl.java:43)

              at java.lang.reflect.Method.invoke(Method.java:601)

              at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch                                                                                                                                                 er.java:155)

              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)

              at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept                                                                                                                                                 or.java:133)

              at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

              at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM                                                                                                                                                 BeanOperationInterceptor.java:142)

              at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.                                                                                                                                                 java:264)

              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

              at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)

              at com.sun.proxy.$Proxy5.deploy(Unknown Source)

              at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)

              at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)

              at org.jboss.Main.boot(Main.java:200)

              at org.jboss.Main$1.run(Main.java:513)

              at java.lang.Thread.run(Thread.java:722)

      Caused by: java.lang.reflect.UndeclaredThrowableException

              at org.jboss.system.ServiceCreator.install(ServiceCreator.java:236)

              at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigura                                                                                                                                                 tor.java:455)

              at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java                                                                                                                                                 :171)

              ... 81 more

      Caused by: java.lang.NoClassDefFoundError: org/hornetq/core/config/Configuration

              at java.lang.Class.getDeclaredConstructors0(Native Method)

              at java.lang.Class.privateGetDeclaredConstructors(Class.java:2413)

              at java.lang.Class.getConstructor0(Class.java:2723)

              at java.lang.Class.getConstructor(Class.java:1676)

              at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:                                                                                                                                                 1232)

              at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:                                                                                                                                                 286)

              at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:                                                                                                                                                 344)

              at org.jboss.system.ServiceCreator.install(ServiceCreator.java:157)

              ... 83 more

      Caused by: java.lang.ClassNotFoundException: No ClassLoaders found for: org.horn                                                                                                                                                 etq.core.config.Configuration

              at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:212)

              at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryCl                                                                                                                                                 assLoader.java:514)

              at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassL                                                                                                                                                 oader.java:408)

              at java.lang.ClassLoader.loadClass(ClassLoader.java:356)