Hi Eder,
Yes that is what I mean indeed: configure datanucleus enhancer for every module
that has domain entities that are being persisted.
Here is an example for estatio [1]. Maybe you can do likewise for your
application?
Best regards,
Johan Doornenbal+31 6 227 666 28
[1] https://github.com/estatio/estatio/blob/master/pom-jdo-enhance-all.xml  





On Wed, Feb 22, 2017 3:54 PM, L Eder [email protected]  wrote:
Johan, i configured the DataNucleus enhancer only for the dom module.

Should i add another one for the fixture module, where the problem

class lives in?




2017-02-22 10:20 GMT-04:00, L Eder <[email protected]>:

> That is the class. And it already carries @PersistenceCapable:

>

> "

> package org.isisaddons.module.wizard.fixture.dom;

>

> import javax.jdo.annotations.IdentityType;

> import javax.jdo.annotations.VersionStrategy;

>

> import org.apache.isis.applib.DomainObjectContainer;

> import org.apache.isis.applib.annotation.BookmarkPolicy;

> import org.apache.isis.applib.annotation.DomainObject;

> import org.apache.isis.applib.annotation.DomainObjectLayout;

> import org.apache.isis.applib.annotation.MemberOrder;

> import org.apache.isis.applib.annotation.Title;

> import org.apache.isis.applib.util.ObjectContracts;

>

> @javax.jdo.annotations.PersistenceCapable(

> identityType=IdentityType.DATASTORE,

> schema="wizard")

> @javax.jdo.annotations.DatastoreIdentity(

> strategy=javax.jdo.annotations.IdGeneratorStrategy.IDENTITY,

> column="id")

> @javax.jdo.annotations.Version(

> strategy=VersionStrategy.VERSION_NUMBER,

> column="version")

> @DomainObject(

> objectType = "WIZARD_DEMO_OBJECT"

> )

> @DomainObjectLayout(

> bookmarking = BookmarkPolicy.AS_ROOT

> )

> public class WizardDemoObject implements Comparable<WizardDemoObject> {

>

> //region > name (property)

>

> private String name;

>

> @javax.jdo.annotations.Column(allowsNull="false")

> @Title(sequence="1")

> @MemberOrder(sequence="1")

> public String getName() {

> return name;

> }

>

> public void setName(final String name) {

> this.name = name;

> }

>

> //endregion

>

>

> //region > compareTo

>

> @Override

> public int compareTo(WizardDemoObject other) {

> return ObjectContracts.compare(this, other, "name");

> }

>

> //endregion

>

> //region > injected services

>

> @javax.inject.Inject

> @SuppressWarnings("unused")

> private DomainObjectContainer container;

>

> //endregion

>

> }

> "

>

>

> 2017-02-22 9:23 GMT-04:00, Johan Doornenbal <[email protected]>:

>> Hi Eder,

>> This is a datanucleus issue. Make sure the classes are enhanced …

>> Best regards,

>> Johan Doornenbal+31 6 227 666 28

>>

>>

>>

>>

>>

>> On Wed, Feb 22, 2017 2:01 PM, L Eder [email protected] wrote:

>> I got this same error when running the own Addon Template.

>>

>>

>>

>>

>> 2017-02-22 8:12 GMT-04:00, L Eder <[email protected]>:

>>

>>> I tried the IDEA import as well, but i am fighting errors there, after

>>

>>> i run the created configuration. Any help is thankful.

>>

>>>

>>

>>>

>>

>>> “

>>

>>> [IsisWicketApplication main ERROR] Failed to initialize

>>

>>> com.google.inject.ProvisionException: Unable to provision, see the

>>

>>> following errors:

>>

>>> 1) Error in custom provider, java.lang.IllegalStateException:

>>

>>> Non-enhanced @PersistenceCapable classes found, will abort. The

>>

>>> classes in error are:

>>

>>> * org.isisaddons.module.wizard.fixture.dom.WizardDemoObject

>>

>>> Did the DataNucleus enhancer run correctly?

>>

>>> “

>>

>>>

>>

>>>

>>

>>> 2017-02-22 4:52 GMT-04:00, Erik de Hair <[email protected]>:

>>

>>>>

>>

>>>> On 02/22/2017 09:43 AM, Erik de Hair wrote:

>>

>>>>> Hi Eder,

>>

>>>>>

>>

>>>>> I've only run the application from IntelliJ using the settings as per

>>

>>>>> [1], never really built it as a war. But now it seems I've got the

>>

>>>>> same problem when running with antrun:run.

>>

>>>>>

>>

>>>>> I used the Apache Isis add on template from [2] but didn't add any

>>

>>>>> dependencies. Just renamed the xxx-strings to wizard and added a few

>>

>>>>> classes. I did change the compileSource and compileTarget properties

>>

>>>>> to 1.8 though, because I was using Java 8 streams.

>>

>>>> Changing back to Java 7 didn't help...

>>

>>>>

>>

>>>>

>>

>>>

>

Reply via email to