We want to port our EJB3 application (successfully running on Windows) to OS/400. During deployement of the EntityBeans we get error "java.lang.NoClassDefFoundError: javax/persistence/NamedNativeQuery":
Stacktrace:
15:36:22,251 INFO [Ejb3Configuration] found EJB3 Entity bean: com.dgr.profi.server.test.performance.Test
15:36:22,252 INFO [Ejb3Configuration] found EJB3 Entity bean: com.dgr.profi.server.test.performance.Test1
15:36:36,698 INFO [AnnotationBinder] Binding entity from annotated class: com.dgr.profi.server.offert.entitymodel.Abrechnungsart
15:36:38,627 WARN [ServiceController] Problem starting service persistence.units:jar=jprofi.jar.jar,unitName=JProfi
java.lang.reflect.InvocationTargetException
at java.lang.Throwable.<init>(Throwable.java:241)
at java.lang.Exception.<init>(Exception.java:77)
...
Caused by: java.lang.NoClassDefFoundError: javax/persistence/NamedNativeQuery
at java.lang.Throwable.<init>(Throwable.java:196)
at java.lang.Error.<init>(Error.java:49)
at java.lang.LinkageError.<init>(LinkageError.java:36)
at java.lang.NoClassDefFoundError.<init>(NoClassDefFoundError.java:40)
at org.hibernate.cfg.AnnotationBinder.bindQueries(AnnotationBinder.java:206)
at org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:335)
at org.hibernate.cfg.AnnotationConfiguration.processArtifactsOfType(AnnotationConfiguration.java:276)
at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:210)
....
It seems, that in class org.hibernate.cfg.AnnotationBinder(hibernate-annotations.jar) he cannot find class javax/persistence/NamedNativeQuery (ejb3-persistence.jar)
Concerning JBoss on OS/400, we could achieve:
JBoss-4.0.4RC1 running
EJB3 application with SessionBeans running
We failed:
Deploying Entity Beans
Any ideas appreciated!
Johannes