Hi,
I'm using Hibernate 2.1 with JBoss 3.0.3. I get the following error while deploying my Web project:
org.jboss.deployment.DeploymentException: jboss.jca:service=HibernateFactory, name=HibernateFactory is not registered.; - nested throwable: (javax.management.InstanceNotFoundException: jboss.jca:service=HibernateFactory, name=HibernateFactory is not registered.)
My jboss-service.xml looks like:
<?xml version="1.0" encoding="UTF-8"?>
<server>
<mbean code="cirrus.hibernate.jmx.HibernateService" name="jboss.jca:service=HibernateFactory, name=HibernateFactory">
<depends>jboss.jca:service=RARDeployer</depends>
<!-- Make it deploy ONLY after DataSource had been started -->
<depends>jboss.jca:service=LocalTxCM,name= MySqlTestDS</depends>
<attribute name="MapResources">
de/sam/strutstest/dto/mappings/User.hbm.xml
</attribute>
<attribute name="JndiName">java:/hibernate/HibernateFactory</attribute>
<attribute name="Datasource">java:/jdbc/MySqlTestDS</attribute>
<attribute name="Dialect">cirrus.hibernate.sql.MySQLDialect</attribute>
<attribute name="TransactionStrategy">cirrus.hibernate.transaction.JTATransactionFactory</attribute>
<attribute name="TransactionManagerLookupStrategy">
cirrus.hibernate.transaction.JBossTransactionManagerLookup
</attribute>
<attribute name="UseOuterJoin">false</attribute>
<attribute name="ShowSql">false</attribute>
<attribute name="UserTransactionName">java:/UserTransaction</attribute>
</mbean>
</server>
Is there any change to do to the line
<mbean code="cirrus.hibernate.jmx.HibernateService" name="jboss.jca:service=HibernateFactory, name=HibernateFactory">?
|