Sorry Mark, I couldn't email two days.
Mark Struberg wrote: > Hi Rolf! > > I could only find 1 warning in the log you posted: > >> [WARNING] Removing: enhance from forked lifecycle, >> to prevent recursive invocation. >> > which has nothing to do with the openjpa plugin itself. > > Moving all entities into an own package should technically not be necessary. > This was only done to speed up parsing (we have a really large project). So > may you please try to temporarily comment out the <includes> and paste the > log again! The plugin should check for PersistenceCapable classes and remove > all others from the list by itself! > without <includes/> I got warnings for all other classes: http://apache.pastebin.com/m3c0908a2 That's ok. Now I prefer to have the model separated in a package and explicitely specify what belongs to it by <includes/>: http://apache.pastebin.com/m620beca3 > txs and LieGrue, > strub > > --- Rolf Schumacher <mailingl...@august.de> schrieb am Do, 26.3.2009: > > >> Von: Rolf Schumacher <mailingl...@august.de> >> Betreff: Re: AW: [mojo-user] openjpa:enhance >> An: user@mojo.codehaus.org >> Datum: Donnerstag, 26. März 2009, 1:14 >> Hi, Mark >> >> It seems to work now. >> I grouped all entity classes in one package, separating >> them from the >> others. >> I added that package to the configuration/include as you >> mentioned. >> The build an the tests ran successfully. >> I got 2 warnings: http://apache.pastebin.com/d429f65b2 >> Do they mean anything to me? >> >> The new pom.xml is here: http://apache.pastebin.com/d455833bd >> If you need to see the persistence.xml: http://apache.pastebin.com/d76a3d7d7 >> >> Thank you for immediate answer. >> >> Rolf >> >> Mark Struberg wrote: >> >>> Hi Rolf! >>> >>> Yes, this is the right list. >>> >>> First, please add the >>> <version>1.0</version >>> to the openjpa-maven-plugin section. >>> >>> 2nd, You may now use >>> <configuration> >>> <addDefaultConstructor>true</addDefaultConstructor> >>> <enforcePropertyRestrictions>true<enforcePropertyRestrictions> >>> </configuration >>> instead of writing them to the toolProperties section >>> >> in the long form. >> >>> You could also specify specific classpaths to include >>> >> which would look like this: >> >>> >>> >> <configuration> >> >>> >>> >> <includes> >> >>> >>> >> >> com/mycomp/myproject/backend/template.entities/*.class,com/mycomp/myproject/backend/coin.entities/*.class >> >>> >>> >> </includes> >> >>> >>> >> <addDefaultConstructor>true</addDefaultConstructor> >> >>> >>> >> <enforcePropertyRestrictions>true</enforcePropertyRestrictions> >> >>> >>> >> </configuration> >> >>> >>> If it still doesn't work, then please run a >>> $> mvn clean >>> and then a >>> $> mvn -X openjpa:enhance >>> and pastebin the output again. >>> >>> txs and LieGrue, >>> strub >>> >>> --- Rolf Schumacher <mailingl...@august.de> >>> >> schrieb am Mi, 25.3.2009: >> >>> >>> >>>> Von: Rolf Schumacher <mailingl...@august.de> >>>> Betreff: [mojo-user] openjpa:enhance >>>> An: user@mojo.codehaus.org >>>> Datum: Mittwoch, 25. März 2009, 22:29 >>>> Is this the right list I'm requesting >>>> help from? >>>> >>>> openjpa:enhance did not succeed and I need help in >>>> >> order to >> >>>> understand why. >>>> >>>> see the complete stack trace here: http://apache.pastebin.com/m1ac3be64 >>>> >>>> I included openjpa-maven-plugin in pom.xml. >>>> see the complete pom.xml here: http://apache.pastebin.com/m1be8d0c5 >>>> >>>> When I compile I expected that the entity classes >>>> >> will be >> >>>> enhanced, not >>>> all classes. >>>> >>>> What I got is a stack trace telling the error: >>>> >>>> 964 INFO [main] >>>> >> openjpa.MetaData - >> >>>> Parsing class >>>> "eu.ngong.ehour.report.impl.Bill". >>>> Exception in thread "main" >>>> >> java.lang.NoClassDefFoundError: >> >>>> Leu/ngong/registry/Resources; >>>> >>>> It seems that openjpa:enhance tries to enhance >>>> >> all >> >>>> classes. >>>> It tries to enhance bill.class which is not an >>>> >> entity >> >>>> class. >>>> bill depends on a class >>>> >> eu.ngong.registry.Resources >> >>>> that is available at runtime, not at compiletime. >>>> >>>> Seems that I misunderstood several things. >>>> What did I miss? What should I have read before? >>>> >>>> Rolf >>>> >>>> >>>> >>>> >> --------------------------------------------------------------------- >> >>>> To unsubscribe from this list, please visit: >>>> >>>> http://xircles.codehaus.org/manage_email >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >> --------------------------------------------------------------------- >> >>> To unsubscribe from this list, please visit: >>> >>> http://xircles.codehaus.org/manage_email >>> >>> >>> >>> >> --------------------------------------------------------------------- >> To unsubscribe from this list, please visit: >> >> http://xircles.codehaus.org/manage_email >> >> >> >> > > > > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email