Jboss 4.0.2 and Hibernate 3.0.2 problem
garbett May 6, 2005 11:05 AMI have a Hibernate har archive that worked on Jboss 4.0.1sp1. I upgraded to 4.0.2. Both of these have the EJB-3.0 preview 5 installed. I changed the install of EJB 3.0 for 4.0.2 according to the directions.
The failure happens during deployment. Here's the deployment start:
09:51:08,971 INFO [Configuration] Searching for mapping documents in jar: admin.har 09:51:08,972 INFO [Configuration] Found mapping documents in jar: org/centerstone/admin/CostCenter.hbm.xml
Then a bit of time passes with the messages like this:
09:51:24,475 WARN [UDP] discarded message from different group (Tomcat-Cluster). Sender was shawn:33970
The failure finally occurs about 3 minutes later:
09:54:23,054 ERROR [Configuration] Could not configure datastore from input stream org.dom4j.DocumentException: Connection timed out Nested exception: Connection timed out at org.dom4j.io.SAXReader.read(SAXReader.java:353) .... Nested exception: java.net.ConnectException: Connection timed out at java.net.PlainSocketImpl.socketConnect(Native Method) ... 09:54:23,078 ERROR [Hibernate] Starting failed jboss.har:service=AdminHibernate org.hibernate.MappingException: org.dom4j.DocumentException: Connection timed out Nested exception: Connection timed out at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:404) at org.hibernate.cfg.Configuration.addJar(Configuration.java:497) ... Caused by: org.dom4j.DocumentException: Connection timed out Nested exception: Connection timed out at org.dom4j.io.SAXReader.read(SAXReader.java:353) at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:394) ...
The contents of hibernate-service.xml in the archive are as follows:
<server> <mbean code="org.jboss.hibernate.jmx.Hibernate" name="jboss.har:service=AdminHibernate"> <attribute name="DatasourceName">java:/XAOracleDS</attribute> <attribute name="Dialect">org.hibernate.dialect.Oracle9Dialect</attribute> <attribute name="SessionFactoryName">java:/hibernate/AdminSessionFactory</attribute> <attribute name="CacheProviderClass">org.hibernate.cache.HashtableCacheProvider</attribute> </mbean> </server>
The datasource is up and running and I can query it directly from JSP.
Any ideas? The other post with a similar title, I got past that with the install of EJB3.0, it came with collection-commons.jar already.
Shawn Garbett