-->
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.  [ 4 posts ] 
Author Message
 Post subject: Problems with Hibernate 3.0.5 and Websphere 5.0.2.12
PostPosted: Fri Sep 09, 2005 1:43 pm 
Newbie

Joined: Fri Sep 09, 2005 1:16 pm
Posts: 1
Problem:
When i use the hibernate 3.0.5 on websphere 5.0.2.12 the server hangs when creating the session factory, in websphere 5.0.2.11 the application runs normally, do you know any way to fix this problem??

below is listed the output of the application server and the hibernate configuration used

Thanks in advance

Manuel

Hibernate version:
3.0.5

Application Server: Websphere Application Server 5.0.2.12

Mapping documents:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC
      "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
      "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
   <property name="hibernate.default_schema">schema</property>
   <property name="hibernate.dialect">org.hibernate.dialect.DB2Dialect</property>
   <property name="hibernate.connection.datasource">jdbc/dsDB</property>
   <property name="hibernate.show_sql">true</property>
   <property name="hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>
   <property name="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.WebSphereTransactionManagerLookup</property>
   <property name="hibernate.cglib.use_reflection_optimizer">true</property>
   

   <mapping resource="app/table1.hbm.xml" />
   <mapping resource="app/table2.hbm.xml" />
   <mapping resource="app/table3.hbm.xml" />
   <mapping resource="app/table4.hbm.xml" />
</session-factory>
</hibernate-configuration>



Name and version of the database you are using: DB2 8.2.1

Debug level Hibernate log excerpt:
This is the output
Quote:
[9/9/05 12:00:56:511 COT] 78c410e5 Environment I org.hibernate.cfg.Environment Hibernate 3.0.5
[9/9/05 12:00:56:527 COT] 78c410e5 Environment I org.hibernate.cfg.Environment hibernate.properties not found
[9/9/05 12:00:56:527 COT] 78c410e5 Environment I org.hibernate.cfg.Environment using CGLIB reflection optimizer
[9/9/05 12:00:56:527 COT] 78c410e5 Environment I org.hibernate.cfg.Environment JVM does not support Statement.getGeneratedKeys()
[9/9/05 12:00:56:527 COT] 78c410e5 Environment I org.hibernate.cfg.Environment JVM does not support LinkedHasMap, LinkedHashSet - ordered maps and sets disabled
[9/9/05 12:00:56:527 COT] 78c410e5 Environment I org.hibernate.cfg.Environment using workaround for JVM bug in java.sql.Timestamp
[9/9/05 12:00:56:527 COT] 78c410e5 Environment I org.hibernate.cfg.Environment using pre JDK 1.4 java.sql.Timestamp handling
[9/9/05 12:00:56:824 COT] 78c410e5 Configuration I org.hibernate.cfg.Configuration configuring from resource: /hibernate.cfg.xml
[9/9/05 12:00:56:824 COT] 78c410e5 Configuration I org.hibernate.cfg.Configuration Configuration resource: /hibernate.cfg.xml
[9/9/05 12:00:57:042 COT] 78c410e5 Configuration I org.hibernate.cfg.Configuration Mapping resource:

.... loading mapping resources


[9/9/05 12:00:58:558 COT] 78c410e5 Configuration I org.hibernate.cfg.Configuration processing association property references
[9/9/05 12:00:58:558 COT] 78c410e5 Configuration I org.hibernate.cfg.Configuration processing foreign key constraints

.. here the Webpshere hangs


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 09, 2005 8:21 pm 
Beginner
Beginner

Joined: Tue Sep 02, 2003 3:25 pm
Posts: 21
Location: Kingston Jamaica, West Indies
Post mapping files


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 11, 2005 6:04 pm 
Newbie

Joined: Thu Mar 11, 2004 4:00 pm
Posts: 5
Location: Canada
Hi,

I have exactly the same problem when I install fix pack 13 on WAS 5.0.2 using Hibernate 2.1.8 (actually I install it in the test environment of WSAD 5.1.0 which is a 5.0.2 server).

Tracing it, it appears that it hangs on this line in SessionFactoryImpl :

Code:
static {
QUERY_KEY_FACTORY = (QueryCacheKeyFactory) KeyFactory.create(QueryCacheKeyFactory.class);
...


which is using classes in CGLIB.

If I uninstall the fix pack, it works again.

Any idea to help me understand ?

I cannot find source code from cglib-full-2.0.2.jar to trace it further.

Thanks.

_________________
Daniel


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 14, 2005 7:05 pm 
Newbie

Joined: Thu Mar 11, 2004 4:00 pm
Posts: 5
Location: Canada
Hi,

I think I have found the explanation. There is a page from IBM mentioning that if you upgrade to fix pack 12 or above, you need also to upgrade the JDK 1.3.1 to SR8 :

http://www-1.ibm.com/support/docview.wss?rs=180&context=SSEQTP&dc=D600&uid=swg21221783&loc=en_US&cs=UTF-8&lang=en

Here is the link for the upgrade :
http://www-1.ibm.com/support/docview.wss?rs=180&uid=swg24007622

Sorry for polluting this forum with WebSphere problems but it had an impact on Hibernate and the upgrade worked for us.

Good luck !

_________________
Daniel


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