-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Using Hibernate 2.1 with JBoss 3.0.3
PostPosted: Tue Sep 09, 2003 6:09 pm 
Newbie

Joined: Mon Sep 08, 2003 12:45 pm
Posts: 10
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">?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 09, 2003 7:05 pm 
Newbie

Joined: Mon Sep 08, 2003 12:45 pm
Posts: 10
Now it works! There was an error in the jboss-service.xml file.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.