1 Reply Latest reply on Sep 9, 2015 11:50 PM by Rob Stryker

    InstanceNotFoundException - jboss-server.xml

    Carolina Davalos Newbie

      Hi, I am developing for an old system (java 1.4) , but I am having some issues with the jboss configuration, first I am using eclipse 3.1 , jboss ide 3.2.2 and jdk 1.4, I am trying to run and old project but the jboss server doesn't run because an exception.

       

      The server log is:

       

      ERROR [org.jboss.deployment.MainDeployer] could not create deployment: file:/C:/jboss-3.2.2RC4/server/default/conf/jboss-service.xml

      org.jboss.deployment.DeploymentException: create operation failed for package file:/C:/jboss-3.2.2RC4/server/default/conf/jboss-service.xml; - nested throwable: (javax.management.InstanceNotFoundException: jboss.jca:service=WorkManagerThreadPool is not registered.)

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

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

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

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

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

        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:546)

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

        at $Proxy5.deploy(Unknown Source)

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

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

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

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

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

      Caused by: javax.management.InstanceNotFoundException: jboss.jca:service=WorkManagerThreadPool is not registered.

        at org.jboss.mx.server.registry.BasicMBeanRegistry.get(BasicMBeanRegistry.java:354)

        at org.jboss.mx.server.MBeanServerImpl.getMBeanInfo(MBeanServerImpl.java:557)

        at org.jboss.system.ServiceController.getServiceProxy(ServiceController.java:745)

        at org.jboss.system.ServiceController.create(ServiceController.java:276)

        at org.jboss.system.ServiceController.create(ServiceController.java:243)

        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.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)

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

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

        at $Proxy4.create(Unknown Source)

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

        ... 17 more

      2015-09-09 16:57:02,707 ERROR [org.jboss.system.server.Server] Failed to start

      org.jboss.deployment.DeploymentException: create operation failed for package file:/C:/jboss-3.2.2RC4/server/default/conf/jboss-service.xml; - nested throwable: (javax.management.InstanceNotFoundException: jboss.jca:service=WorkManagerThreadPool is not registered.)

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

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

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

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

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

        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:546)

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

        at $Proxy5.deploy(Unknown Source)

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

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

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

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

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

      Caused by: javax.management.InstanceNotFoundException: jboss.jca:service=WorkManagerThreadPool is not registered.

        at org.jboss.mx.server.registry.BasicMBeanRegistry.get(BasicMBeanRegistry.java:354)

        at org.jboss.mx.server.MBeanServerImpl.getMBeanInfo(MBeanServerImpl.java:557)

        at org.jboss.system.ServiceController.getServiceProxy(ServiceController.java:745)

        at org.jboss.system.ServiceController.create(ServiceController.java:276)

        at org.jboss.system.ServiceController.create(ServiceController.java:243)

        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.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)

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

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

        at $Proxy4.create(Unknown Source)

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

        ... 17 more

      2015-09-09 16:57:02,717 ERROR [STDERR] Failed to boot JBoss:

      2015-09-09 16:57:02,717 ERROR [STDERR] org.jboss.deployment.DeploymentException: create operation failed for package file:/C:/jboss-3.2.2RC4/server/default/conf/jboss-service.xml; - nested throwable: (javax.management.InstanceNotFoundException: jboss.jca:service=WorkManagerThreadPool is not registered.)

      2015-09-09 16:57:02,717 ERROR [STDERR] at org.jboss.deployment.SARDeployer.create(SARDeployer.java:202)

      2015-09-09 16:57:02,717 ERROR [STDERR] at org.jboss.deployment.MainDeployer.create(MainDeployer.java:776)

      2015-09-09 16:57:02,717 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:631)

      2015-09-09 16:57:02,717 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)

      2015-09-09 16:57:02,717 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:589)

      2015-09-09 16:57:02,717 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      2015-09-09 16:57:02,717 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

      2015-09-09 16:57:02,717 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      2015-09-09 16:57:02,717 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:324)

      2015-09-09 16:57:02,717 ERROR [STDERR] at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)

      2015-09-09 16:57:02,717 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)

      2015-09-09 16:57:02,717 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)

      2015-09-09 16:57:02,717 ERROR [STDERR] at $Proxy5.deploy(Unknown Source)

      2015-09-09 16:57:02,717 ERROR [STDERR] at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:384)

      2015-09-09 16:57:02,717 ERROR [STDERR] at org.jboss.system.server.ServerImpl.start(ServerImpl.java:291)

      2015-09-09 16:57:02,717 ERROR [STDERR] at org.jboss.Main.boot(Main.java:150)

      2015-09-09 16:57:02,717 ERROR [STDERR] at org.jboss.Main$1.run(Main.java:388)

      2015-09-09 16:57:02,717 ERROR [STDERR] at java.lang.Thread.run(Thread.java:534)

      2015-09-09 16:57:02,717 ERROR [STDERR] Caused by: javax.management.InstanceNotFoundException: jboss.jca:service=WorkManagerThreadPool is not registered.

      2015-09-09 16:57:02,717 ERROR [STDERR] at org.jboss.mx.server.registry.BasicMBeanRegistry.get(BasicMBeanRegistry.java:354)

      2015-09-09 16:57:02,717 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.getMBeanInfo(MBeanServerImpl.java:557)

      2015-09-09 16:57:02,717 ERROR [STDERR] at org.jboss.system.ServiceController.getServiceProxy(ServiceController.java:745)

      2015-09-09 16:57:02,717 ERROR [STDERR] at org.jboss.system.ServiceController.create(ServiceController.java:276)

      2015-09-09 16:57:02,717 ERROR [STDERR] at org.jboss.system.ServiceController.create(ServiceController.java:243)

      2015-09-09 16:57:02,717 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)

      2015-09-09 16:57:02,717 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      2015-09-09 16:57:02,717 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:324)

      2015-09-09 16:57:02,717 ERROR [STDERR] at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)

      2015-09-09 16:57:02,717 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)

      2015-09-09 16:57:02,717 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)

      2015-09-09 16:57:02,717 ERROR [STDERR] at $Proxy4.create(Unknown Source)

      2015-09-09 16:57:02,717 ERROR [STDERR] at org.jboss.deployment.SARDeployer.create(SARDeployer.java:192)

      2015-09-09 16:57:02,717 ERROR [STDERR] ... 17 more

       

      I have already put in my jboss-server.xml  the next lines:

       

       

      <!-- ==================================================================== --> 

        <!-- JBossCX setup, for J2EE connector architecture support               --> 

        <!-- The RARDeployer is needed only until xslt based deployment is written.--> 

        <!-- ==================================================================== --> 

       

        <mbean code="org.jboss.util.threadpool.BasicThreadPool" 

               name="jboss.jca:service=WorkManagerThreadPool"> 

           <!-- The name that appears in thread names --> 

           <attribute name="Name">WorkManager</attribute> 

           <!-- The maximum amount of work in the queue --> 

           <attribute name="MaximumQueueSize">1024</attribute> 

           <!-- The maximum number of active threads --> 

           <attribute name="MaximumPoolSize">100</attribute> 

           <!-- How long to keep threads alive after their last work (default one minute) --> 

           <attribute name="KeepAliveTime">60000</attribute> 

        </mbean> 

       

        <mbean code="org.jboss.resource.work.JBossWorkManager" 

               name="jboss.jca:service=WorkManager"> 

           <depends optional-attribute-name="ThreadPoolName">jboss.jca:service=WorkManagerThreadPool</depends> 

           <depends optional-attribute-name="XATerminatorName">jboss:service=TransactionManager</depends> 

        </mbean> 

       

        <mbean code="org.jboss.resource.deployment.RARDeployer"  

                name="jboss.jca:service=RARDeployer"> 

            <depends optional-attribute-name="WorkManagerName">jboss.jca:service=WorkManager</depends> 

           <depends optional-attribute-name="XATerminatorName">jboss:service=TransactionManager</depends> 

        </mbean> 

       

        <mbean code="org.jboss.deployment.XSLSubDeployer" name="jboss.jca:service=ConnectionFactoryDeployer"> 

          <attribute name="DdSuffix">-ds.xml</attribute> 

          <attribute name="EnhancedSuffixes">300:-ds.xml</attribute> 

          <attribute name="XslUrl">stylesheets/ConnectionFactoryTemplate.xsl</attribute> 

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

        </mbean>

       

        <!--  

           | The CachedConnectionManager is used partly to relay started UserTransactions to  

           | open connections so they may be enrolled in the new tx. 

         --> 

        <mbean code="org.jboss.resource.connectionmanager.CachedConnectionManager"  

               name="jboss.jca:service=CachedConnectionManager"> 

          <depends optional-attribute-name="TransactionManagerServiceName">jboss:service=TransactionManager</depends> 

       

          <!-- Enable connection close debug monitoring --> 

          <attribute name="Debug">true</attribute> 

       

        </mbean> 

       

       

      But the server still throwing javax.management.InstanceNotFoundException: jboss.jca:service=WorkManagerThreadPool is not registered

      I don`t know what I am doing wrong or what it's missing, I have to admit that it is my first time that I use Jboss, can someone help me please? 

        • 1. Re: InstanceNotFoundException - jboss-server.xml
          Rob Stryker Master

          First, it's worth noting that your problem isn't an issue with JBoss Tools, but is more an issue with the JBoss 3.2.2.RC4 runtime. What I mean by this is, JBoss Tools is correctly deploying your jboss-service.xml file, and so the tools are not broken. I'd suggest you file your bug with the JBoss runtime section of these forums.

           

          Secondly, I quickly downloaded the source for JBoss 3.2.2.RC4 and did a grep on the entire source bundle for "WorkManagerThreadPool", and there were 0 results.  So whatever you're trying to do doesn't seem available in JBoss 3.2.2.   I browsed the JMX tree of jboss 3.2, and there was no such service registered. It was, however, registered in the jboss 4.x stream.  So odds are, you've taken examples that were targeted to the jboss 4 (or higher) stream, and tried to use them on jboss 3.2, and they won't work.