-->
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.  [ 9 posts ] 
Author Message
 Post subject: Hibernate service not starting
PostPosted: Mon Oct 11, 2004 8:23 am 
Newbie

Joined: Mon Oct 11, 2004 8:08 am
Posts: 6
Location: Russian Federation
Hibernate service not starting automaticaly, so every time after deployment i must start service by hand :(. Is there any ideas?


Top
 Profile  
 
 Post subject: Re: Hibernate service not starting
PostPosted: Mon Oct 11, 2004 8:35 am 
Newbie

Joined: Mon Oct 11, 2004 8:08 am
Posts: 6
Location: Russian Federation
zalexaka wrote:
Hibernate service not starting automaticaly, so every time after deployment i must start service by hand :(. Is there any ideas?

PS
After handstart all works fine
Hibernate 2.1.6&JBoss 3.2.5.


Top
 Profile  
 
 Post subject: Re: Hibernate service not starting
PostPosted: Wed Oct 13, 2004 8:57 am 
Beginner
Beginner

Joined: Mon Aug 16, 2004 6:09 am
Posts: 46
Location: Geneva, Switzerland
zalexaka wrote:
zalexaka wrote:
Hibernate service not starting automaticaly, so every time after deployment i must start service by hand :(. Is there any ideas?

PS
After handstart all works fine
Hibernate 2.1.6&JBoss 3.2.5.


Could you explain how you deploy hibernate service (via .sar or .har) and what exactly you need to start by hands.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 14, 2004 5:04 am 
Newbie

Joined: Mon Oct 11, 2004 8:08 am
Posts: 6
Location: Russian Federation
deployment was made via .sar as part of .ear file
forum.ear tree:
META_INF
application.xml
jboss-app.xml
domain.jar - domain objects module
ejb.jar - ejb module
web.war - web module
hibernate.sar

inside hibernate.sar:
META-INF
jboss-service.xml
ru\... and so on my hbm.xml files relative to domain.jar structure
cglib-full-2.0.2.jar
commons-collections-2.1.jar
dom4j-1.4.jar
ehcache-0.9.jar
hibernate2.jar
odmg-3.0.jar

jboss-service.xml details:
<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=DefaultDS</depends>
<attribute name="MapResources">{hbm.xml files}</attribute>
<attribute name="JndiName">java:/hibernate/HibernateFactory</attribute>
<attribute name="Datasource">java:/DefaultDS</attribute>
<attribute name="Dialect">net.sf.hibernate.dialect.Oracle9Dialect</attribute>
<attribute name="ShowSql">false</attribute>
<attribute name="UserTransactionName">UserTransaction</attribute>
<attribute name="TransactionStrategy">net.sf.hibernate.transaction.JTATransactionFactory</attribute>
<attribute name="TransactionManagerLookupStrategy">net.sf.hibernate.transaction.JBossTransactionManagerLookup</attribute>
<attribute name="CacheProvider">net.sf.hibernate.cache.EhCacheProvider</attribute>
</mbean>
</server>


jboss-app.xml details:
<jboss-app>
<loader-repository>company:loader=forum.ear</loader-repository>
<module>
<service>hibernate.sar</service>
</module>
</jboss-app>

application.xml details:
<application>
<display-name>Forum Application</display-name>
<module>
<java>domain.jar</java>
</module>
<module>
<ejb>ejb.jar</ejb>
</module>
<module>
<web>
<web-uri>web.war</web-uri>
<context-root>/forum</context-root>
</web>
</module>
</application>

after deploy in jmx-console section jboss.jca
appears service=Hibernate
then i start this service with MBean Operation start
I hope it will help to understand me


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 14, 2004 10:41 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 3:00 pm
Posts: 1816
Location: Austin, TX
As per all the documentation, the extension *must* be .har, not .sar; otherwise, the wrong deployer processes it.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 14, 2004 12:23 pm 
Beginner
Beginner

Joined: Mon Aug 16, 2004 6:09 am
Posts: 46
Location: Geneva, Switzerland
steve wrote:
As per all the documentation, the extension *must* be .har, not .sar; otherwise, the wrong deployer processes it.


He's using jboss 3.2.5, har appeared in 3.2.6RC1 (even without har deployer in /deploy)

I did deploy hibernate service as sar before, and it's worked. Here's a good description http://www.hibernate.org/66.html

zalexaka, instead of tackling with sar, you'd better download 3.2.6RC2 (not RC1, or maybe you'll be lucky to get 3.2.6 release which is overdue) and pack your hibernate with har, it's much better solution.

for description take a look here: http://www.jboss.org/wiki/Wiki.jsp?page=JBossHibernate


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 15, 2004 4:14 am 
Newbie

Joined: Mon Oct 11, 2004 8:08 am
Posts: 6
Location: Russian Federation
OK hope that .har deployment is a best way to solve my problems.
Thanks all for the help.


Top
 Profile  
 
 Post subject: oops
PostPosted: Fri Oct 15, 2004 8:55 am 
Newbie

Joined: Mon Oct 11, 2004 8:08 am
Posts: 6
Location: Russian Federation
har deploying unsuccessfull with log message:

2004-10-15 16:35:12,765 DEBUG [org.jboss.deployment.MainDeployer] Starting deployment of package: file:/E:/Java/jboss-4.0.0/server/default/deploy/hibernate.har/
2004-10-15 16:35:12,765 DEBUG [org.jboss.deployment.MainDeployer] Starting deployment (init step) of package at: file:/E:/Java/jboss-4.0.0/server/default/deploy/hibernate.har/
2004-10-15 16:35:12,812 DEBUG [org.jboss.deployment.JARDeployer] XML entries found: 1
2004-10-15 16:35:12,812 DEBUG [org.jboss.deployment.MainDeployer] No deployer found for url: file:/E:/Java/jboss-4.0.0/server/default/deploy/hibernate.har/
2004-10-15 16:35:12,812 DEBUG [org.jboss.deployment.MainDeployer] deployment waiting for deployer: file:/E:/Java/jboss-4.0.0/server/default/deploy/hibernate.har/
2004-10-15 16:35:12,812 DEBUG [org.jboss.deployment.MainDeployer] Watching new file: file:/E:/Java/jboss-4.0.0/server/default/deploy/hibernate.har/
2004-10-15 16:35:12,812 DEBUG [org.jboss.deployment.MainDeployer] Deployment of package: file:/E:/Java/jboss-4.0.0/server/default/deploy/hibernate.har/ is waiting for an appropriate deployer.

got this on JBoss 4.0.0


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 15, 2004 8:58 am 
Newbie

Joined: Mon Oct 11, 2004 8:08 am
Posts: 6
Location: Russian Federation
sorry my har looks like:

META-INF
jboss-service.xml
MANIFEST.MF
AuthorObject.hbm.xml
domain.jar
MessageObject.hbm.xml

jboss-service.xml

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

<server>
<mbean code="org.jboss.hibernate.jmx.Hibernate" name="jboss.har:service=Hibernate">
<depends>jboss.jca:service=XATxCM,name=OracleDS</depends>
<attribute name="SessionFactoryName">java:/HibernateFactory</attribute>
<attribute name="DatasourceName">java:/OracleDS</attribute>
<attribute name="Dialect">net.sf.hibernate.dialect.Oracle9Dialect</attribute>
<attribute name="CacheProviderClass">net.sf.hibernate.cache.HashtableCacheProvider</attribute>
<attribute name="Hbm2ddlAuto">update</attribute>
</mbean>
</server>


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