JPA blacklist not working
magick93 Sep 25, 2015 11:54 AMHello
I am trying to use Errai JPA, however when I attempt to enable this my project does not compile.
I get the following error:
[INFO] Tracing compile failure path for type 'org.jboss.errai.jpa.client.local.GeneratedErraiEntityManagerFactory'
[INFO] [ERROR] Errors in '/home/anton/git/app.ui/target/.generated/org/jboss/errai/jpa/client/local/GeneratedErraiEntityManagerFactory.java'
[INFO] [ERROR] Line 1369: No source code is available for type com.my.models.IndicatorContainer; did you forget to inherit a required module?
[INFO] [ERROR] Line 1337: No source code is available for type com.my.models.IndicatorMeta; did you forget to inherit a required module?
[INFO] [ERROR] Line 1273: No source code is available for type com.my.models.MacroEconomicEvent; did you forget to inherit a required module?
[INFO] [ERROR] Hint: Check that the type name 'org.jboss.errai.jpa.client.local.GeneratedErraiEntityManagerFactory' is really what you meant
Yes, in the errai.properties file I have
errai.jpa.whitelist=com.my.models.shared.StrategyTestResult
errai.jpa.blacklist=com.my.models.IndicatorContainer com.my.models.IndicatorMeta com.my.models.MacroEconomicEvent
Update
I have added the offending classes (above) to the ErraiApp.properites errai.marshalling.serializableTypes, and that has removed the above error, however now there is a new error.
Now, when I try to run the app I get:
Uncaught java.lang.RuntimeException: critical error in IOC container bootstrap: java.lang.RuntimeException: No proxy provider found for bindable type: com.my.models.shared.Account
Yet, this class IS specified in the ErraiApp.properties and errai.properties file, and there was no problem prior to adding the errai jpa and errai.properties file.
To clarify, when I comment out <inherits name="org.jboss.errai.jpa.JPA"/> in the app.gwt.xml, then there is no problem. Only when enabling Errai JPA does this error occur.