Hi,
I am migrating from Jboss 4.0.0 to 4.0.2 and my problem is that the hibernate.har is not deploying. I simply copied the hibernate.har directory from Jboss 4.0.0 and placed it in the deploy folder of 4.0.2. Is this the wrong approach to take, what do I need to do to resolve this issue?
I am using OS X 10.4.
My hibernate.har structure is as follows:
1. hibernate.cfg.xml
2. META-INF
-- hibernate-service.xml
3. test
-- *.hbm.xml and *.class files
4. WEB-INF
-- lib
hibernate.cfg.xml
Code:
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<class-cache class="test.Order" usage="transactional"/>
<collection-cache collection="test.Order.OrderItems" usage="transactional"/>
<class-cache class="test.Artist" usage="transactional"/>
<collection-cache collection="test.Artist.ArtistImages" usage="transactional"/>
<class-cache class="test.User" usage="transactional"/>
<collection-cache collection="test.User.ArtistChoice" usage="transactional"/>
<class-cache class="test.Stock" usage="transactional"/>
<collection-cache collection="test.Stock.StockImages" usage="transactional"/>
<class-cache class="test.ArtistBiog" usage="transactional"/>
</session-factory>
</hibernate-configuration>
hibernate-service.xmlCode:
<?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=RARDeployer</depends>
<depends>jboss.jca:service=LocalTxCM,name=PostgresDS</depends>
<attribute name="SessionFactoryName">java:/hibernate/SessionFactory</attribute>
<attribute name="DatasourceName">java:/PostgresDS</attribute>
<attribute name="Dialect">org.hibernate.dialect.PostgreSQLDialect</attribute>
<attribute name="CacheProviderClass">org.hibernate.cache.EhCacheProvider</attribute>
<attribute name="Hbm2ddlAuto"></attribute>
<attribute name="ShowSqlEnabled">true</attribute>
<attribute name="JdbcBatchSize">25</attribute>
</mbean>
</server>
Mapping documents:Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping package="test">
<class name="User" table="usertbl" lazy="false">
<cache usage="read-write"/>
<id name="ID" column="user_id" type="integer" unsaved-value="0">
<generator class="sequence">
<param name="sequence">seq_user_mytable</param>
</generator>
</id>
<property name="FirstName" column="first_name" type="string" not-null="true"/>
<property name="LastName" column="last_name" type="string" not-null="true"/>
<property name="Address1" column="address1" type="string"/>
<property name="Address2" column="address2" type="string"/>
<property name="Address3" column="address3" type="string"/>
<property name="PostCode" column="postcode" type="string"/>
<property name="Country" column="country" type="string"/>
<property name="Email" column="email" type="string" not-null="true"/>
<property name="HomeTel" column="home_telephone" type="string"/>
<property name="HomeMob" column="mobile_telephone" type="string"/>
<property name="DateJoined" column="date_joined" type="timestamp"/>
<property name="UserIP" column="user_ip" type="string"/>
<property name="UserName" type="string">
<column name="username" unique-key="UserPassKey"/>
</property>
<property name="UserPassword" type="string">
<column name="userpassword" unique-key="UserPassKey"/>
</property>
<set name="ArtistChoice" lazy="true" inverse="true" cascade="all-delete-orphan">
<cache usage="read-write"/>
<key column="user_id"/>
<one-to-many class="Artist"/>
</set>
</class>
</hibernate-mapping>
Jboss startup trace:Code:
12:05:22,876 INFO [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=file:/Library/jboss-4.0.2/server/default/deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
12:05:24,774 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=file:/Library/jboss-4.0.2/server/default/deploy/management/console-mgr.sar/web-console.war/
12:05:25,874 INFO [MailService] Mail Service bound to java:/Mail
12:05:26,328 INFO [RARDeployment] Required license terms exist view the META-INF/ra.xml: file:/Library/jboss-4.0.2/server/default/deploy/jboss-ha-local-jdbc.rar
12:05:26,445 INFO [RARDeployment] Required license terms exist view the META-INF/ra.xml: file:/Library/jboss-4.0.2/server/default/deploy/jboss-ha-xa-jdbc.rar
12:05:26,544 INFO [RARDeployment] Required license terms exist view the META-INF/ra.xml: file:/Library/jboss-4.0.2/server/default/deploy/jboss-local-jdbc.rar
12:05:26,650 INFO [RARDeployment] Required license terms exist view the META-INF/ra.xml: file:/Library/jboss-4.0.2/server/default/deploy/jboss-xa-jdbc.rar
12:05:26,752 INFO [RARDeployment] Required license terms exist view the META-INF/ra.xml: file:/Library/jboss-4.0.2/server/default/deploy/jms/jms-ra.rar
12:05:26,834 INFO [RARDeployment] Required license terms exist view the META-INF/ra.xml: file:/Library/jboss-4.0.2/server/default/deploy/mail-ra.rar
12:05:27,702 INFO [WrapperDataSourceService] Bound connection factory for resource adapter for ConnectionManager 'jboss.jca:name=DefaultDS,service=DataSourceBinding to JNDI name 'java:DefaultDS'
12:05:28,053 INFO [A] Bound to JNDI name: queue/A
12:05:28,055 INFO [B] Bound to JNDI name: queue/B
12:05:28,058 INFO [C] Bound to JNDI name: queue/C
12:05:28,060 INFO [D] Bound to JNDI name: queue/D
12:05:28,063 INFO [ex] Bound to JNDI name: queue/ex
12:05:28,087 INFO [testTopic] Bound to JNDI name: topic/testTopic
12:05:28,090 INFO [securedTopic] Bound to JNDI name: topic/securedTopic
12:05:28,092 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic
12:05:28,094 INFO [testQueue] Bound to JNDI name: queue/testQueue
12:05:28,153 INFO [UILServerILService] JBossMQ UIL service available at : /0.0.0.0:8093
12:05:28,200 INFO [DLQ] Bound to JNDI name: queue/DLQ
12:05:28,409 INFO [ConnectionFactoryBindingService] Bound connection factory for resource adapter for ConnectionManager 'jboss.jca:name=JmsXA,service=ConnectionFactoryBinding to JNDI name 'java:JmsXA'
12:05:28,539 INFO [WrapperDataSourceService] Bound connection factory for resource adapter for ConnectionManager 'jboss.jca:name=PostgresDS,service=DataSourceBinding to JNDI name 'java:PostgresDS'
12:05:28,680 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=file:/Library/jboss-4.0.2/server/default/deploy/jmx-console.war/
12:05:28,965 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080
12:05:29,055 INFO [ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009
12:05:29,068 INFO [JkMain] Jk running ID=0 time=0/42 config=null
12:05:29,076 INFO [Server] JBoss (MX MicroKernel) [4.0.2 (build: CVSTag=JBoss_4_0_2 date=200505022023)] Started in 33s:542ms
Name and version of the database you are using:Code:
postgres-ds.xml (postgresql 8)
<datasources>
<local-tx-datasource>
<jndi-name>PostgresDS</jndi-name>
<connection-url>jdbc:postgresql://localhost:5432/beyarecords?ssl=true</connection-url>
<driver-class>org.postgresql.Driver</driver-class>
<user-name>*</user-name>
<password>*</password>
<max-pool-size>10</max-pool-size>
<metadata>
<type-mapping>PostgreSQL 7.2</type-mapping>
</metadata>
</local-tx-datasource>
</datasources>