179 words

Guestbook example from tutorial does not work.

#1
2015-05-31 11:51

Hi,

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:  7.0.55.0
OS Name:        Linux
OS Version:     3.13.0-37-generic
Architecture:   amd64
JVM Version:    1.8.0_45-b14
JVM Vendor:     Oracle Corporation

fjubuu
fjubuu's picture
Joined on 2015-05-28
User Post #3
#2
2015-06-01 10:04

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
ObjectDB - Fast Object Database for Java (JPA/JDO)
support
support's picture
Joined on 2010-05-03
User Post #2,220
#3
2015-06-01 20:34

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?

 

 

fjubuu
fjubuu's picture
Joined on 2015-05-28
User Post #4
#4
2015-06-03 07:19

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
ObjectDB - Fast Object Database for Java (JPA/JDO)
support
support's picture
Joined on 2010-05-03
User Post #2,221

Post Reply

Please read carefully the posting instructions - before posting to the ObjectDB website.

  • You may have to disable pop up blocking in order to use the toolbar (e.g. in Chrome).
  • Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell checker).
  • To insert formatted lines (e.g. Java code, stack trace) - select a style in the toolbar and then insert the text in the new created block.
  • Avoid overflow of published source code examples by breaking long lines.
  • You may mark in paragraph code words (e.g. class names) with the code style (can be applied by ctrl + D).
  • Long stack traces (> 50 lines) and complex source examples (> 100 lines) should be posted as attachments.
Attachments:
Maximum file size: 32 MB
Cancel