0 Replies Latest reply on Dec 20, 2018 3:11 AM by Shaleen Madlapure

    javax.management.InstanceNotFoundException: jboss.system:service=MainDeployer

    Shaleen Madlapure Newbie

      We have recently migrated our application from jboss 5 to Jboss6.4 version .

       

      We used to deploy SAR in Jboss5 and now the same SAR is not working with the jboss 6 version.I have removed the <depends > tag and somehow SAR is deployed but we are gettng below exception.

       

       

      08:02:32,612 ERROR [biz.thelogicgroup.jboss.datasource.JBossDataSourceDeployer] (MSC service thread 1-7) Error creating datasource for schema XYZ: *.jmx.ServerNotFoundException: jboss.system:service=MainDeployer

              at biz.thelogicgroup.solve3.util.jmx.MBeanServerHelper.findMBeanServer(MBeanServerHelper.java:87) [Utils-jmx.jar:26758M.trunk]

              at biz.thelogicgroup.jboss.datasource.JBossDataSourceDeployer.deployDatasource(JBossDataSourceDeployer.java:278) [JBossDatasourceDeployerModule.jar:$Revision: $]

              at biz.thelogicgroup.jboss.datasource.JBossDataSourceDeployer.deployDataSourceForSchema(JBossDataSourceDeployer.java:162) [JBossDatasourceDeployerModule.jar:$Revision: $]

              at biz.thelogicgroup.jboss.datasource.JBossDataSourceDeployer.start(JBossDataSourceDeployer.java:92) [JBossDatasourceDeployerModule.jar:$Revision: $]

       

      Below is the jboss-service.xml of JBoss 6 version

       

      <?xml version="1.0" encoding="UTF-8"?>

      <server xmlns="urn:jboss:service:7.0"

            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance

            xsi:schemaLocation="urn:jboss:service:7.0 jboss-service_7_0.xsd">

        <!-- This MBean will create and deploy a datasource file automatically based on the content of DBSCHEMA -->

        <mbean code="biz.thelogicgroup.jboss.datasource.JBossDataSourceDeployer" name="Solve3:service=DatasourceDeployer">

        <!--  <depends optional-attribute-name="MainDeployerName">jboss.system:service=MainDeployer</depends>

         <depends>jboss.jca:service=DataSourceBinding,name=Solve3DBXA</depends>-->

      <attribute name="MainDeployerName">jboss.system:service=MainDeployer</attribute>

          <attribute name="Database">Oracle</attribute>

          <attribute name="DatasourceFilesLocation">conf/datasources</attribute>

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

        </mbean>

      </server>

       

      In JBoss 5 version we have used below tag for MainDeployer, however same is not working in jboss6 , so i used attribute tag to set the key value pair.

         <!--  <depends optional-attribute-name="MainDeployerName">jboss.system:service=MainDeployer</depends>

       

      Any help on this would be appreciated, Thanks!!!!!