PDA

View Full Version : Error compiling JPA entities in pre-enhance


davidnwd
04-13-2011, 02:18 PM
Anybody know what this error is, deploying annotated JPA entities to resin-pro-3.1.6:


[2011-04-12 20:19:10.794] [CONFIG] JavaCompiler: Compiling com/xyz/sso/model/BaseEntity__ResinExt.java
[2011-04-12 20:19:10.794] [CONFIG] JavaCompiler: Compiling com/xyz/sso/model/CroSsoXref__ResinExt.java
[2011-04-12 20:19:10.794] [CONFIG] JavaCompiler: Compiling com/xyz/sso/model/icare/AgentLight__ResinExt.java
[2011-04-12 20:19:10.794] [CONFIG] JavaCompiler: Compiling com/xyz/sso/model/icare/Agent__ResinExt.java
[2011-04-12 20:19:10.796] [CONFIG] JavaCompiler: Compiling com/xyz/sso/model/icare/CenterCodes__ResinExt.java
[2011-04-12 20:19:10.796] [CONFIG] JavaCompiler: Compiling com/xyz/sso/model/icare/Department__ResinExt.java
[2011-04-12 20:19:10.796] [CONFIG] JavaCompiler: Compiling com/xyz/sso/model/icare/SecurityLevels__ResinExt.java
[2011-04-12 20:19:10.797] [CONFIG] JavaCompiler: Compiling com/xyz/sso/model/icare/Supervisor__ResinExt.java
[2011-04-12 20:19:15.596] [WARNING] AmberContainer: com.caucho.java.JavaCompileException: /local/apps/icare/icare/app/deploy/icare-web/WEB-INF/work/pre-enhance/com/xyz/sso/model/icare/AgentLight__ResinExt.java:22: cannot find symbol
[2011-04-12 20:19:15.596] symbol : variable __caucho_state
[2011-04-12 20:19:15.596] location: class com.xyz.sso.model.icare.AgentLight__ResinExt
[2011-04-12 20:19:15.596] __caucho_state = com.caucho.amber.entity.EntityState.TRANSIENT;
[2011-04-12 20:19:15.596] ^
[2011-04-12 20:19:15.596] /local/apps/icare/icare/app/deploy/icare-web/WEB-INF/work/pre-enhance/com/xyz/sso/model/icare/AgentLight__ResinExt.java:28: cannot find symbol
[2011-04-12 20:19:15.596] symbol : variable __caucho_state
[2011-04-12 20:19:15.596] location: class com.xyz.sso.model.icare.AgentLight__ResinExt
[2011-04-12 20:19:15.596] __caucho_state = com.caucho.amber.entity.EntityState.TRANSIENT;
[2011-04-12 20:19:15.596] ^
[2011-04-12 20:19:15.596] /local/apps/icare/icare/app/deploy/icare-web/WEB-INF/work/pre-enhance/com/xyz/sso/model/icare/AgentLight__ResinExt.java:34: cannot find symbol
[2011-04-12 20:19:15.596] symbol : variable __caucho_state
[2011-04-12 20:19:15.596] location: class com.xyz.sso.model.icare.AgentLight__ResinExt
[2011-04-12 20:19:15.596] __caucho_state = com.caucho.amber.entity.EntityState.TRANSIENT;
[2011-04-12 20:19:15.596] ^
[2011-04-12 20:19:15.596] /local/apps/icare/icare/app/deploy/icare-web/WEB-INF/work/pre-enhance/com/xyz/sso/model/icare/AgentLight__ResinExt.java:45: cannot find symbol
[2011-04-12 20:19:15.596] symbol : method __caucho_super_get_id()
[2011-04-12 20:19:15.596] location: class com.xyz.sso.model.icare.AgentLight__ResinExt
[2011-04-12 20:19:15.596] return this.__caucho_super_get_id();

reza
04-13-2011, 03:46 PM
davidnwd,

Could you possibly use the latest version of Resin? The reason I ask is that JPA support was never finalized in Resin 3, unlike in the current version which supports JPA 2 and the Java EE 6 Web Profile (we currently pass the Sun/Oracle compatibility test kit).

Also, in the current version we have stopped developing Amber in favor of integrating EclipseLink for JPA 2 support.

Thanks,
Reza

davidnwd
04-13-2011, 04:34 PM
Reza -- I'm working with IHG, and you've been attempting to get them to 4.x, but they're still having issues, so they have set the accounts back to 3.1.6. I saw one posting stating that they removed ejb-30.jar from /lib (I know 3.1 has ejb-15) and it solved their issue by allowing OpenJPA to work. I tried this, but Amber still kicked in and caused the same errors.

Any other ideas?

TIA
David

reza
04-13-2011, 04:44 PM
davidnwd,

What steps have you taken so far? Have you specified OpenJPA as the persistence provider in persistence.xml? If you have not, that might cause Amber to take effect as the default JPA persistence provider.

Thanks,
Reza