-->
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.  [ 2 posts ] 
Author Message
 Post subject: problem when i used spring -hibernate, one-many assocition.
PostPosted: Tue Mar 27, 2007 6:12 am 
Newbie

Joined: Sat Sep 10, 2005 8:31 am
Posts: 1
Hi,
i am using spring, hibernate with portlets. i have PK -FK relationship in DB2 tables, the exadel tool generated the hbm and POJOs.
when i start the server,while reading .hbm.xml it is throwing following exception.
please help me to resolve this issue.

entry in pk table hbm file
___________________________________________________________________
<bag name="newsArticlesAccess" inverse="true" cascade="none">
<key foreign-key="SQL070326041452230" column="NEWS_ARTICLE_ID"/>
<one-to-many class="com.dcx.esp.news.bo.NewsArticlesAccess"/>
</bag>

_________________________________________________________________________________

D:\MyPortlets\news\WebContent;
Delegation Mode: PARENT_FIRST
[1] com.ibm.ws.classloader.JarClassLoader@2067319865 Local Classpath: Delegation mode: PARENT_FIRST
[2] com.ibm.ws.classloader.ExtJarClassLoader@517852204 Local ClassPath: C:\Program Files\IBM\Rational\SDP\6.0\runtimes
..........
C:\Program Files\IBM\Rational\SDP\6.0\runtimes\portal_v50\shared\app\lotusworkplacelib\saxpath.jar;C:\Program Files\IBM\Rational\SDP\6.0\runtimes\portal_v50\shared\app\lotusworkplacelib\log4j.jar; Delegation Mode: PARENT_LAST
[3] com.ibm.ws.classloader.ExtJarClassLoader@1945308205 Local ClassPath: C:\Program Files\IBM\Rational\SDP\6.0\runtimes\portal_base_v5\lib\app; Delegation Mode: PARENT_LAST
[4] com.ibm.ws.classloader.ProtectionClassLoader@74344c2b
[5] com.ibm.ws.bootstrap.ExtClassLoader@4d80cc21
[6] sun.misc.Launcher$AppClassLoader@4e734c21
[7] sun.misc.Launcher$ExtClassLoader@4e760c21
---Original exception---
java.lang.NoClassDefFoundError: org/odmg/DCollection
at java.lang.ClassLoader.defineClass0(Native Method)
.............
Delegation Mode: PARENT_FIRST
[1] com.ibm.ws.classloader.JarClassLoader@2067319865 Local Classpath: Delegation mode: PARENT_FIRST
[2] com.ibm.ws.classloader.ExtJarClassLoader@517852204 Local ClassPath: C:\Program Files\IBM\Rational\SDP\6.0\runtimes\portal_v50\shared\app;C:\Program Files\IBM\Rational\SDP\6.0\runtimes\portal_v50\shared\app\activation.jar;C:\Program Files
..................
orkplacelib\log4j.jar; Delegation Mode: PARENT_LAST
[3] com.ibm.ws.classloader.ExtJarClassLoader@1945308205 Local ClassPath: C:\Program Files\IBM\Rational\SDP\6.0\runtimes\portal_base_v5\lib\app; Delegation Mode: PARENT_LAST
[4] com.ibm.ws.classloader.ProtectionClassLoader@74344c2b
[5] com.ibm.ws.bootstrap.ExtClassLoader@4d80cc21
[6] sun.misc.Launcher$AppClassLoader@4e734c21
[7] sun.misc.Launcher$ExtClassLoader@4e760c21
---Original exception---
java.lang.NoClassDefFoundError: org/odmg/DCollection
at java.lang.ClassLoader.defineClass0(Native Method)
...

at net.sf.hibernate.mapping.Collection.getType(Collection.java:275)

_________________
- Kumar SL Reddy


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 27, 2007 12:52 pm 
Regular
Regular

Joined: Wed May 05, 2004 3:41 pm
Posts: 118
Location: New Jersey,USA
It looks to be related to the way the class loading mechanism is unable to find the DCollection class. If this is a Web-app make sure that either the JAR file containing "org/odmg/DCollection" class is available either in WEB=INF/lib or is included in the WAS server classpath.

_________________
--------------
Don't forget to Rate the post


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