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.  [ 8 posts ] 
Author Message
 Post subject: Deployment in JBoss 3.2.3 - Problem of attribute
PostPosted: Tue Jun 08, 2004 10:45 am 
Newbie

Joined: Thu Jun 03, 2004 5:47 am
Posts: 13
Hi !!

I want use Hibernate with JBoss.
So, I have attended the documentation "Using Hibernate with JBoss" on this site.
But I have a problem when I deploy my service.

There is the code of my JBoss service XML file
Code:
<mbean code="net.sf.hibernate.jmx.HibernateService" name="jboss.jca:service=HibernateFactory, name=HibernateFactory">
   <depends>jboss.jca:service=RARDeployer</depends>
   <depends>jboss.jca:service=LocalTxCM,name=NukesDS</depends>
          <!-- Make it deploy ONLY after DataSource had been started -->
          <attribute name="MapResources">mappings/Style.hbm.xml</attribute>
          <attribute name="JndiName">java:/hibernate/HibernateFactory</attribute>
          <attribute name="Datasource">java:/NukesDS</attribute>
          <attribute name="Dialect">net.sf.hibernate.dialect.MySQLDialect</attribute>
          <attribute name="TransactionStrategy">net.sf.hibernate.transaction.JTATransactionFactory</attribute>
          <attribute name="TransactionManagerLookupStrategy">net.sf.hibernate.transaction.JBossTransactionManagerLookup</attribute>
          <attribute name="UseOuterJoin">false</attribute>
          <attribute name="ShowSql">true</attribute>
          <attribute name="UserTransactionName">UserTransaction</attribute>
          <attribute name="CacheProvider">net.sf.ehcache.hibernate.Provider</attribute>
</mbean>

The problem is apparently there isn't attribute named CacheProvider.
What I have to do? Delete CacheProvider attribute or there is an other solution??
Code:
16:31:45,515 INFO  [ServiceConfigurator] Problem configuring service jboss.jca:service=HibernateFactory, name=HibernateFactory
org.jboss.deployment.DeploymentException: No Attribute found with name: CacheProvider


Thanks for your help...


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 08, 2004 11:02 am 
Newbie

Joined: Thu Jun 03, 2004 5:47 am
Posts: 13
It's ok for me, I've found !


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 30, 2004 2:15 am 
Newbie

Joined: Sun Nov 16, 2003 11:24 pm
Posts: 6
Location: Taiwan
Could you tell me how to deal with it?
I have got the same problem.
Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 30, 2004 2:20 am 
Newbie

Joined: Tue Jun 29, 2004 5:04 am
Posts: 8
Same here!

I am having the same problem!

I have got the following as my directory structure:
EAR
|-SAR
|-JAR
|-JAR
|-JAR

There appears to be a problem with JCA!


Kunal


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 30, 2004 2:38 am 
Newbie

Joined: Sun Nov 16, 2003 11:24 pm
Posts: 6
Location: Taiwan
There is work fine on W2K+JBoss with me.
But CacheProvider issued when I deploy to Linux+JBoss.
Any ideas?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 30, 2004 3:48 am 
Newbie

Joined: Tue Jun 29, 2004 5:04 am
Posts: 8
I seem to have this problem only when I have the .sar in my .ear.

If I deploy it as hibernate-service.xml with all the jars in the lib directory or individually as a .sar, everything deploy correctly!


Kunal


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 01, 2004 9:13 am 
Senior
Senior

Joined: Tue Nov 25, 2003 9:35 am
Posts: 194
Location: San Francisco
Could this be the problem?

http://forum.hibernate.org/viewtopic.php?t=931495


Sherman


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 01, 2004 8:32 pm 
Newbie

Joined: Tue Jun 29, 2004 5:04 am
Posts: 8
That's it!!!

Removing
Code:
!hibernate2.jar/sf/net/hibernate/jca/hibernate-service.xml
fixes it all!!!


Ta,

Kunal


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 8 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.