ObjectDB ObjectDB

Guestbook example from tutorial does not work.



I have Problems to initialize objectdb in a jee envoirment.

I used the Guestbook from the tutorial and try to deploy on Tomcat but i get this error.

Caused by: org.apache.tomee.catalina.TomEERuntimeException: org.apache.openejb.OpenEJBException: Creating application failed: /objectdb-2.6.2/tutorials/guestbook-jee6/target/Guestbook: org.apache.openejb.OpenEJBRuntimeException: java.lang.ClassNotFoundException: com.objectdb.jpa.Provider: java.lang.ClassNotFoundException: com.objectdb.jpa.Provider

Server version: Apache Tomcat/7.0.55

Server built:   Jul 18 2014 05:34:04
Server number:
OS Name:        Linux
OS Version:     3.13.0-37-generic
Architecture:   amd64
JVM Version:    1.8.0_45-b14
JVM Vendor:     Oracle Corporation


The exception may indicate that the objectdb-jee.jar file is not located in the correct location, and therefore ObjectDB cannot be found. You may want to try running the Maven version of this tutorial.

ObjectDB Support

Thank you for your quick reply. But thats a maven example.

If i place the object-jee.jar to th /Web-inf/lib directory it works.

Another alternative is to place the object-jee.jar to /tomcat/lib/ dir.

Didn´t find a better solution.

Why there is no maven-repository for this?




You are right, this requires a better solution.

Starting build 2.6.2_02 the ObjectDB Maven repository will include only ObjectDB without JPA, which will help using ObjectDB in TomEE. The tutorial and Maven examples have been updated and tested successfully with TomEE 1.7.2 and ObjectDB 2.6.2_02.

ObjectDB Support


To post on this website please sign in.