2 Replies Latest reply on May 12, 2004 5:09 PM by John Perkins

    Problem deploying hibernate sar

    John Perkins Newbie

      Using JBoss-3.2.3+Tomcat5+Hibernate2.1+MySQL4.0.18... I have build a sar following the sample code on http://www.hibernate.org/66.html. XDoclet generates the following jboss-service.xml:

      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE server>
      
      <!-- Generated file - Do not edit! -->
      
      <server>
       <mbean code="net.sf.hibernate.jmx.HibernateService" name="jboss.jca:service=Hibernate">
       <depends>jboss.jca:service=RARDeployer</depends>
       <depends>jboss.jca.service=LocalTxCM,name=MySqlDS</depends>
       <attribute name="MapResources">com/eqr/workflow/model/User.hbm.xml</attribute>
       <attribute name="JndiName">HibernateFactory</attribute>
       <attribute name="Datasource">MySqlDS</attribute>
       <attribute name="Dialect">net.sf.hibernate.dialect.MySQLDialect</attribute>
       <attribute name="UseOuterJoin">true</attribute>
       <attribute name="ShowSql">true</attribute>
       <attribute name="UserTransactionName">UserTransaction</attribute>
       <attribute name="TransactionStrategy">net.sf.hibernate.transaction.JTATransactionFactory</attribute>
       <attribute name="TransactionManagerLookupStrategy">net.sf.hibernate.transaction.JBossTransactionManagerLookup</attribute>
       </mbean>
      
      </server>


      The problem is that when I deploy the packaged sar into $JBOSS_HOME/server/tomcat5/deploy, I receive the following error message from the JBoss Console:

      2004-05-12 14:01:33,591 INFO [org.jboss.deployment.MainDeployer] Starting deployment of package: file:/C:/Apps/jboss-3.2.3/server/tomcat5/deploy/workflow-hibernate.sar
      2004-05-12 14:01:33,621 DEBUG [org.apache.coyote.tomcat5.MapperListener] Handle jmx.loading:UCL=e13e7b
      2004-05-12 14:01:33,621 DEBUG [org.apache.coyote.tomcat5.MapperListener] Handle jmx.loading:UCL=e13e7b
      2004-05-12 14:01:33,641 DEBUG [org.apache.coyote.tomcat5.MapperListener] Handle jboss.jca:service=Hibernate
      2004-05-12 14:01:33,641 DEBUG [org.apache.coyote.tomcat5.MapperListener] Handle jboss.jca:service=Hibernate
      2004-05-12 14:01:33,641 ERROR [org.jboss.deployment.MainDeployer] could not create deployment: file:/C:/Apps/jboss-3.2.3/server/tomcat5/deploy/workflow-hibernate.sar
      java.lang.Error: Invalid ObjectName: jboss.jca.service=LocalTxCM,name=MySqlDS; javax.management.MalformedObjectNameException: missing domain
       at org.jboss.mx.util.ObjectNameFactory.create(ObjectNameFactory.java:37)
       at org.jboss.system.ServiceConfigurator.processDependency(ServiceConfigurator.java:479)
       at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:356)
       at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:172)
       at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:114)
       at org.jboss.system.ServiceController.install(ServiceController.java:225)
       at sun.reflect.GeneratedMethodAccessor47.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.install(Unknown Source)
       at org.jboss.deployment.SARDeployer.create(SARDeployer.java:183)
       at org.jboss.deployment.MainDeployer.create(MainDeployer.java:786)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:641)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
       at sun.reflect.GeneratedMethodAccessor43.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 $Proxy6.deploy(Unknown Source)
       at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:302)
       at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:476)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:212)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:191)
      


      Any help in getting past this "missing domain" issue is appreciated!

      Thx,

      John