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.