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: Unable to copy listeners : Urgent please !
PostPosted: Thu Sep 28, 2006 9:46 am 
Newbie

Joined: Thu Sep 28, 2006 4:01 am
Posts: 8
Hi all,

I got this exception : Unable to copy listeners.
I found the hibernate code here http://www.spikesource.com/spikewatch.logs/fedora-3-i386/1343/hibernate/reports/clover/org/hibernate/util/Cloneable.html
line 62.

My application also use spring.
It works fine with tomcat local, websphere local, but when I pakage it on the ear file and deploy on the websphere unix environment it crashes on LocalSessionFactoryBean.

I already spent 3 days on this issue and really no clue !
Please help me
Here is my code


Code:
   <bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
      <property name="dataSource">
         <ref local="dataSource" />
      </property>      
      <property name="lobHandler">
         <ref local="oracleLobHandler" />
      </property>
      <property name="mappingResources">
         <list>            
            <value>com/ing/ebusiness/spg/domain/Issue.hbm.xml</value>
            <value>com/ing/ebusiness/spg/ext/vo/File.hbm.xml</value>
            
         </list>
      </property>
      <property name="hibernateProperties">
         <props>
            <prop key="hibernate.dialect">org.hibernate.dialect.OracleDialect</prop>
            <!-- Echo all executed SQL to stdout -->
            <prop key="show_sql">true</prop>
            <prop key="cache.use_query_cache">true</prop>
            <!-- Force to flush() after changes ?
            <prop key="transaction.auto_close_session">false</prop> -->
            <!-- Disable the second-level cache-->
            <prop key="hibernate.cache.use_second_level_cache">false</prop>
            <!-- Enable Hibernate's automatic session context management             
               <prop key="current_session_context_class">thread</prop>-->
            <!-- JDBC connection pool (use the built-in)
               <prop key="connection.pool_size">1</prop> -->
         </props>
      </property>
   </bean>

hibernate version 3-3.1.3
WAS 5.1
septentryon


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 05, 2006 3:54 am 
Newbie

Joined: Thu Sep 28, 2006 4:01 am
Posts: 8
error


Last edited by septentryon on Thu Oct 05, 2006 3:55 am, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 05, 2006 3:54 am 
Newbie

Joined: Thu Sep 28, 2006 4:01 am
Posts: 8
This comes from the bug :http://bugs.sun.com/bugdatabase/view...bug_id=6180799

Hibernate uses introspection and we used the 1.4.2_06-b02 in Websphere app server.
But it is not easy to upgrade the jre in sun websphere. Because they have a specific version including a security layer. So we just replaced the runtime (rt.jar) with the rt of the 1.4.2_06-b03.
This solved the problem.
septentryon


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.