I'm integrating jackrabbit and cocoon 2.2, no problems with the JackRabbit Core. But when I use OCM code form 5' with Jackrabbit OCM[1] I have a strange problem.
The insert in the Repo works well but when i retrieve the object:

PressRelease pressRelease = (PressRelease)   ocm.getObject("/newtutorial");
I receive always a ClassCastException like this:

Caused by: java.lang.ClassCastException: org.apache.jackrabbit.ocm.model.PressRelease

I debugged the code and the PressRelease instances are perfect. Maybe the problem is in the ClassLoader?
I use the same OCM[1] code in a non Cocoon simple webapp, and OCM works.
Any suggestions?
Thanks in advance
Alessandro


[1] http://jackrabbit.apache.org/5-with-jackrabbit-ocm.html

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to