Hibernate version:That comes with Jboss 4.0
Mapping documents:<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd">
<hibernate-mapping>
<class name="com.tmp.abcVO" table="Direct">
<id name="zipCode" type="int" column="ZipCode" unsaved-value="0">
<generator class="assigned"/>
</id>
<property name="footNote1"/>
<property name="footNote2"/>
</class>
</hibernate-mapping>
Code between sessionFactory.openSession() and session.close():I try to configure hibernate as mbean
Full stack trace of any exception that occurs:17:39:55,187 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
Packages waiting for a deployer:
org.jboss.deployment.DeploymentInfo@96686256 { url=file:/C:/jboss-4.0.0/server/default/deploy/jbosshib.jar }
deployer: null
status: null
state: INIT_WAITING_DEPLOYER
watch: file:/C:/jboss-4.0.0/server/default/deploy/jbosshib.jar
altDD: null
lastDeployed: 1099697987718
lastModified: 1099697987718
mbeans:
Incompletely deployed packages:
org.jboss.deployment.DeploymentInfo@96686256 { url=file:/C:/jboss-4.0.0/server/default/deploy/jbosshib.jar }
deployer: null
status: null
state: INIT_WAITING_DEPLOYER
watch: file:/C:/jboss-4.0.0/server/default/deploy/jbosshib.jar
altDD: null
lastDeployed: 1099697987718
lastModified: 1099697987718
mbeans:
Name and version of the database you are using:MySQL 4.x
The generated SQL (show_sql=true):n/a
Debug level Hibernate log excerpt:
I could not configure jboss 4.0 and hibernate. I tried to deploy mbean as har file but something is missing. I did read this link --
http://www.jboss.org/wiki/Wiki.jsp?page=JBossHibernate
My hibernate-service.xml file is
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE server>
<server>
<!--
Defines the HAR (Hibernate ARchive) deployer service. See the javadocs for
org.jboss.hibernate.har.HARDeployer for more info.
-->
<mbean code="org.jboss.hibernate.har.HARDeployer" name="jboss.har:service=HARDeployer">
<attribute name="Datasource">java:/jndi//mysqlds</attribute>
<attribute name="SessionFactoryName">java:/hibernate/SessionFactory</attribute>
<attribute name="Dialect">net.sf.hibernate.dialect.MySQLDialect</attribute>
<attribute name="CacheProviderClass">net.sf.hibernate.cache.HashtableCacheProvider</attribute>
<attribute name="ValidateDTDs">false</attribute>
</mbean>
</server>
I did remove hibernate-deployer-service.xml file from jboss4.0/server/default/deploy.
Also, I have all hibernate required jar files in Jboss4.0/server/default/lib.
Can anybody tell me what am I missing .. or point me where I can find details of deploying har file.
Thanks.
--Anand