-->
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.  [ 3 posts ] 
Author Message
 Post subject: Cannot configure Jboss 4.0 and Hibernate
PostPosted: Fri Nov 05, 2004 7:47 pm 
Newbie

Joined: Wed Oct 13, 2004 11:23 am
Posts: 14
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


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 09, 2004 12:55 pm 
Beginner
Beginner

Joined: Mon Sep 08, 2003 10:56 am
Posts: 35
if you ran a cut and paste, take another look at your mbean descriptor file, looks like you have a typo in your data source name.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 11, 2004 3:35 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 3:00 pm
Posts: 1816
Location: Austin, TX
Your using the wrong MBean. The HARDeployer MBean is a JBoss service that knows how to deploy HAR files. The MBean that your hibernate-service.xml file should be configuring is org.jboss.hibernate.jxm.Hibernate


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