cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robby Pelssers" <>
Subject RE: Cocoon 2.2 + openjpa
Date Fri, 11 Jun 2010 08:41:24 GMT
You might want to disable everything from the file.  I had similar issues in
the past and that helped fixing the classloader issue.
From: Ali Mahdoui [] 
Sent: Friday, June 11, 2010 10:22 AM
To: Cocoon users
Subject: RE: Cocoon 2.2 + openjpa

I have all that configured. The problem when i call fom some class this code
BeanClass bean = manager.find(BeanClass.class, id);
i get always the exception that BeanClass can not be cast to BeanClass....
After some debug jobs if found that the ClassLoader of the entitiyManagerFactory is another
as the one of my calling class
and because of that i become the exception.
I am wondering if there is some spring configuration properties which schold be set, such
that the entityManager uses another classLoader (for example the one of the calling block...)

Thanks for any help


Subject: RE: Cocoon 2.2 + openjpa
Date: Fri, 11 Jun 2010 09:24:12 +0200
I’d say… who cares if you’re using Cocoon2.2?
Just start using openJPA as you would for any other java project…
-Add the needed dependencies to  your pom. 
-Start configuring some beans in your block-application-context.xml
-write your pojo’s and annotate them
-from flowscript do the work you need to do by 
var mybean =  cocoon.getComponent(“mybean”);
From: Ali Mahdoui [] 
Sent: Thursday, June 10, 2010 11:24 PM
To: Cocoon users
Subject: Cocoon 2.2 + openjpa
is there any tutorial or example how to use openjpa with cocoon 2.2?

Tschüss Werbung im E-Mail-Abbinder! <> 

Künftig E-Mails ohne Werbung – Nutzen Sie Hotmail auch geschäftlich. <>

View raw message