Re: The type class ... has not been enhanced.

2007-09-06 Thread Patrick Linskey
Hmm. Are you listing your persistent types in your persistence.xml file? If not, what happens if you list them? If that doesn't fix things, can you post your persistence.xml file? -Patrick On 9/6/07, Johan Andrén <[EMAIL PROTECTED]> wrote: > I have not run the enhancer on the classes, and I'm not

Re: The type class ... has not been enhanced.

2007-09-06 Thread Johan Andrén
I have not run the enhancer on the classes, and I'm not running the runtime enhancer. I just found out how to pass arguments to the test JVM earlier this afternoon so I'll test to use the runtime enhancer as well as your proposed tests tomorrow. This is the stacktrace: testGetCurrentQuesti

Re: The type class ... has not been enhanced.

2007-09-06 Thread Patrick Linskey
Oh, and can you post the full stack trace? -Patrick On 9/6/07, Patrick Linskey <[EMAIL PROTECTED]> wrote: > Hi, > > A bunch of questions: > > What happens if you check to see if one of your persistent classes is > instanceof org.apache.openjpa.enhance.PersistenceCapable? > > Are you running the O

Re: The type class ... has not been enhanced.

2007-09-06 Thread Patrick Linskey
Hi, A bunch of questions: What happens if you check to see if one of your persistent classes is instanceof org.apache.openjpa.enhance.PersistenceCapable? Are you running the OpenJPA enhancer, or relying on the new unenhanced support? If the instanceof check passes, what happens if you manually

The type class ... has not been enhanced.

2007-09-06 Thread Johan Andrén
Hi I have a strange problem with OpenJPA and I have had no success finding a solution on the net (yet). We have a multi module maven2 project, the subprojects interesting in this case beeing a data model with annotated classes - "model" and ejb3 beans accessing the data - "ejb". I have

Re: 1.0.0 The type "class" has not been enhanced.

2007-08-31 Thread Patrick Linskey
Well, the short story is that if you comment out the load-time weaver declaration in your applicationContext.xml, the problem goes away. When the load-time weaver is specified, I believe that the problem is caused by the fact that your main class also is your Spring bean. When the load-time weaver

Re: 1.0.0 The type "class" has not been enhanced.

2007-08-30 Thread plinskey
Yep, it's some sort of a classloader issue. Somehow, PersitenceCapable is available in two different classloaders. I'll know more later today / tomorrow. -Patrick On 8/30/07, ben short <[EMAIL PROTECTED]> wrote: > My test apps not rocket science so feel free to make a test case for > it. But coul

Re: 1.0.0 The type "class" has not been enhanced.

2007-08-30 Thread ben short
My test apps not rocket science so feel free to make a test case for it. But could you alter the packages names please. On a site note, is it possible that the releases could make there way into the main maven 2 repositories? The how to docs can be found here [1] although you might allready know t

Re: 1.0.0 The type "class" has not been enhanced.

2007-08-29 Thread Patrick Linskey
> Setting openjpa.RuntimeUnenhancedClasses=2 allows the application to > run. Cool; FTR, 2 corresponds to the 'warn' setting. Sorry about the incorrect setting earlier. > If i change it to the following and comment out the work around > openjpa.RuntimeUnenhancedClasses then the application compla

Re: 1.0.0 The type "class" has not been enhanced.

2007-08-29 Thread ben short
Setting openjpa.RuntimeUnenhancedClasses=2 allows the application to run. I'm using spring with the following loadTimeWeaver on my entityManagerFactory... org.springframework.instrument.classloading.SimpleLoadTimeWeaver If i change it to the following and comment out the work around openjpa.Runti

Re: 1.0.0 The type "class" has not been enhanced.

2007-08-29 Thread Patrick Linskey
> I download the 1.0.0 source and ran mvn install. It built and > installed ok. I use either the maven enhance plugin or the ant task to > enhance the classes. When I run my simple test app I get the following > exception... Is there any way we could get access to that test application? I kinda su

1.0.0 The type "class" has not been enhanced.

2007-08-29 Thread ben short
Hi, I download the 1.0.0 source and ran mvn install. It built and installed ok. I use either the maven enhance plugin or the ant task to enhance the classes. When I run my simple test app I get the following exception... 32 openjpa INFO [main] openjpa.Runtime - Starting OpenJPA 1.0.0 438 ope