You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Eric Rich <er...@inflatus.com> on 2004/01/03 21:00:32 UTC

JDOUserException: Object not PersistenceCapable

I had this problem solved once but it came back again.  I'm trying to 
use OJB/Woody.

I made sure there is only one instance of my classes in the classpath 
(they're in cocoon/WEB-INF/classes/...).  I enhanced the classes using 
com.sun.jdori.enhancer.Main.  Is there something I'm missing here?  It 
seems pretty simple.  Any suggestions would be greatly appreciated.

Here's my error message:
org.apache.avalon.framework.CascadingRuntimeException: "file:/C:/Program 
Files/Apache Group/Tomcat 
4.1/webapps/cocoon/samples/conman/flow/Jobs.js", line 12: uncaught 
JavaScript exception: at Jobsform_jdo (file:/C:/Program Files/Apache 
Group/Tomcat 4.1/webapps/cocoon/samples/conman/flow/Jobs.js, Line 12): 
javax.jdo.JDOUserException: Object not PersistenceCapable. 
FailedObject:com.inflatus.conman.Jobs@5bda13

Thanks!

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: JDOUserException: Object not PersistenceCapable

Posted by Eric Rich <er...@inflatus.com>.
Just need JTA (and JNDI and RMI Registry Service Provider) to compile 
JDORI.  From what I can tell, the JDORI 1.0.1 binary release is missing 
the JDOModelException class.  I now have a JDOModelException.class file 
and eliminated that problem.

Thanks for your help!

Antonio Gallardo wrote:

>Eric Rich dijo:
>  
>
>>Sure enough.. had a stale JDO in the classpath.  Thanks!  I'm getting a
>>java.lang.NoClassDefFoundError:
>>com/sun/jdori/model/jdo/JDOModelException error now.  I think this is
>>from cleaning up my classpath (no more castor).  Downloading JTA to
>>rebuild JDORI.  Seems like the binary release is missing this class?
>>    
>>
>
>Not sure. What kind of problem do you have without JTA?
>
>Best Regards,
>
>Antonio Gallardo.
>  
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: JDOUserException: Object not PersistenceCapable

Posted by Antonio Gallardo <ag...@agsoftware.dnsalias.com>.
Eric Rich dijo:
> Sure enough.. had a stale JDO in the classpath.  Thanks!  I'm getting a
> java.lang.NoClassDefFoundError:
> com/sun/jdori/model/jdo/JDOModelException error now.  I think this is
> from cleaning up my classpath (no more castor).  Downloading JTA to
> rebuild JDORI.  Seems like the binary release is missing this class?

Not sure. What kind of problem do you have without JTA?

Best Regards,

Antonio Gallardo.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: JDOUserException: Object not PersistenceCapable

Posted by Eric Rich <er...@inflatus.com>.
Sure enough.. had a stale JDO in the classpath.  Thanks!  I'm getting a 
java.lang.NoClassDefFoundError: 
com/sun/jdori/model/jdo/JDOModelException error now.  I think this is 
from cleaning up my classpath (no more castor).  Downloading JTA to 
rebuild JDORI.  Seems like the binary release is missing this class?

thanks for the help!

Antonio Gallardo wrote:

>Stefan Klein dijo:
>  
>
>>Eric,
>>
>>Is the class listed in your repository.xml and the repository.xml lies
>>somewhere in the classpath? AFAIK, OJB raises ObjectNotPersistenceCapable
>>in two cases:
>>1. The class hasn't been enhanced (which can't be it in your case)
>>    
>>
>>>From my own experience:
>
>While using JDO 1.01 you can get this error if your classes was enhanced
>using JDO 1.0.
>
>  
>
>>2. No description of the class can be found in repository.xml
>>    
>>
>
>  
>
>>Stefan
>>    
>>
>
>Best Regards,
>
>Antonio Gallardo
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>For additional commands, e-mail: users-help@cocoon.apache.org
>
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: JDOUserException: Object not PersistenceCapable

Posted by Antonio Gallardo <ag...@agsoftware.dnsalias.com>.
Stefan Klein dijo:
> Eric,
>
> Is the class listed in your repository.xml and the repository.xml lies
> somewhere in the classpath? AFAIK, OJB raises ObjectNotPersistenceCapable
> in two cases:
> 1. The class hasn't been enhanced (which can't be it in your case)
>From my own experience:

While using JDO 1.01 you can get this error if your classes was enhanced
using JDO 1.0.

> 2. No description of the class can be found in repository.xml

>
> Stefan

Best Regards,

Antonio Gallardo

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: JDOUserException: Object not PersistenceCapable

Posted by Stefan Klein <kl...@web.de>.
Eric,

Is the class listed in your repository.xml and the repository.xml lies
somewhere in the classpath? AFAIK, OJB raises ObjectNotPersistenceCapable
in two cases:
1. The class hasn't been enhanced (which can't be it in your case)
2. No description of the class can be found in repository.xml

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: JDOUserException: Object not PersistenceCapable

Posted by Antonio Gallardo <ag...@agsoftware.dnsalias.com>.
Hi Eric:

Wat version of JDO are you using? The OJB block now uses JDO 1.01

Hope this help.

Best Regards,

Antonio Gallardo

Eric Rich dijo:
> I had this problem solved once but it came back again.  I'm trying to
> use OJB/Woody.
>
> I made sure there is only one instance of my classes in the classpath
> (they're in cocoon/WEB-INF/classes/...).  I enhanced the classes using
> com.sun.jdori.enhancer.Main.  Is there something I'm missing here?  It
> seems pretty simple.  Any suggestions would be greatly appreciated.
>
> Here's my error message:
> org.apache.avalon.framework.CascadingRuntimeException: "file:/C:/Program
> Files/Apache Group/Tomcat
> 4.1/webapps/cocoon/samples/conman/flow/Jobs.js", line 12: uncaught
> JavaScript exception: at Jobsform_jdo (file:/C:/Program Files/Apache
> Group/Tomcat 4.1/webapps/cocoon/samples/conman/flow/Jobs.js, Line 12):
> javax.jdo.JDOUserException: Object not PersistenceCapable.
> FailedObject:com.inflatus.conman.Jobs@5bda13
>
> Thanks!
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org