You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cayenne.apache.org by james yong <i_...@yahoo.com.sg> on 2007/12/10 17:46:19 UTC

Additional class dependency of a CayenneDataObject class at runtime

Hi,

I have a subclass of an CayenneDataObject class. 
However, when it is instantiated in an osgi environment, an
java.lang.NoClassDefFoundError exception is thrown.

Does Cayenne creates any new class at runtime that is used by the
CayenneDataObject instance? The reason I need to know this, is because OSGi
requires the dependencies of the new instance to be know and set.

Regards,
James
-- 
View this message in context: http://www.nabble.com/Additional-class-dependency-of-a-CayenneDataObject-class-at-runtime-tp14256613p14256613.html
Sent from the Cayenne - User mailing list archive at Nabble.com.


Re: Additional class dependency of a CayenneDataObject class at runtime

Posted by james yong <i_...@yahoo.com.sg>.
Hi Andrus,

Thanks. I am not using JPA. Following your reply, i am able to narrow down
to the root of the problem which is not cayenne.

Regards,
James
-- 
View this message in context: http://www.nabble.com/Additional-class-dependency-of-a-CayenneDataObject-class-at-runtime-tp14256613p14275760.html
Sent from the Cayenne - User mailing list archive at Nabble.com.


Re: Additional class dependency of a CayenneDataObject class at runtime

Posted by Andrus Adamchik <an...@objectstyle.org>.
I know next to nothing about osgi environment, but Cayenne does not  
create any runtime classes. What you have at compile time, you get at  
runtime. Nothing more. (unless you are playing with JPA, which you  
didn't mention).

Andrus

On Dec 10, 2007, at 6:46 PM, james yong wrote:

>
> Hi,
>
> I have a subclass of an CayenneDataObject class.
> However, when it is instantiated in an osgi environment, an
> java.lang.NoClassDefFoundError exception is thrown.
>
> Does Cayenne creates any new class at runtime that is used by the
> CayenneDataObject instance? The reason I need to know this, is  
> because OSGi
> requires the dependencies of the new instance to be know and set.
>
> Regards,
> James
> -- 
> View this message in context: http://www.nabble.com/Additional-class-dependency-of-a-CayenneDataObject-class-at-runtime-tp14256613p14256613.html
> Sent from the Cayenne - User mailing list archive at Nabble.com.
>
>