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.  [ 5 posts ] 
Author Message
 Post subject: JBoss crashes when deploying hibernate project
PostPosted: Tue Apr 20, 2004 4:30 pm 
Newbie

Joined: Tue Apr 20, 2004 4:23 pm
Posts: 5
Hi,

I'm trying to deploy small test project that uses hibernate and get the following in the log file:
Code:
16:07:37,306 INFO  [MainDeployer] Starting deployment of package: file:/C:/JBoss/server/default/deploy/hibtest.sar
.....
16:07:40,682 WARN  [SessionFactoryObjectFactory] InitialContext did not implement EventContext
16:07:40,682 INFO  [NamingHelper] JNDI InitialContext properties:{}                           
                                                                                             
[error occured during error reporting]                                                       
JVM exited unexpectedly.                                                                     

And that's JBoss's end here.
JBoss version used is 3.2.3
Hibernate version is 2.1.2

I basically followed the docs from this site on using JBoss with Hibernate.
Here's my jboss-service.xml :

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

<server>
   <mbean code="net.sf.hibernate.jmx.HibernateService" name="jboss.jca:service=Hibernate">
       <depends>jboss.jca:service=RARDeployer</depends>
       <attribute name="MapResources">mappings/User.hbm.xml,
                mappings/Item.hbm.xml,
                mappings/Order.hbm.xml,
                mappings/OrderLine.hbm.xml
       </attribute>
       <attribute name="JndiName">java:/HibernateFactory</attribute>
       <attribute name="Datasource">java:/TestDS</attribute>
       <attribute name="Dialect">net.sf.hibernate.dialect.MySQLDialect</attribute>
       <attribute name="UseOuterJoin">true</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.ehcache.hibernate.Provider</attribute>
   </mbean>

</server>


The datasource exists and is configured (at least I can see it's JNDI name under jboss.jca)

Any ideas on where to look for the source of the problem?
Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 20, 2004 7:27 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
What VM? Try recompiling Hibernate and/or JBoss with your VM.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 21, 2004 12:23 pm 
Newbie

Joined: Tue Apr 20, 2004 4:23 pm
Posts: 5
1.4.2_02-b03

Do you think using some earlier version might help?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 21, 2004 12:46 pm 
Newbie

Joined: Tue Apr 20, 2004 4:23 pm
Posts: 5
Tried to start JBoss with jdk 1.4.1_02-b06 and it did work fine...

I'm wondering why is this so and what's different in newer jdk that causes the problem?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 21, 2004 1:01 pm 
CGLIB Developer
CGLIB Developer

Joined: Thu Aug 28, 2003 1:44 pm
Posts: 1217
Location: Vilnius, Lithuania
"[error occured during error reporting] "
It means there is a bug in this JVM version, if you want to help fix it, report this bug for SUN and add a core dump.


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