faresd / appengine-maven-plugin

Automatically exported from code.google.com/p/appengine-maven-plugin
Apache License 2.0
0 stars 0 forks source link

NoClassDefFoundError exception with test about JPA on appengine with appengine-maven-plugin #33

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. I first tested this tutorial in order to use JPA on appengine 
http://www.pakzilla.com/2009/12/13/tutorial-jpa-on-google-app-engine/

2. I then create a maven projet with skeleton-archetype from 
https://developers.google.com/appengine/docs/java/tools/maven

3. I finally integrated the appengine-maven-plugin and dependencies for 
datanucleus.
ref: http://www.datanucleus.org/products/datanucleus/jpa/maven.html

4. I have a problem with the classpath because when I run wepapp the following 
error exceptions occur.
java.lang.NoClassDefFoundError: Could not initialize class 
com.engineplay.datastore.EMFService
java.lang.ExceptionInInitializerError

What is the expected output? What do you see instead?
no exception is expected

What version of the product are you using? On what operating system?
appengine-maven-plugin-1.8.0

Please provide any additional information below.
in attachment my project archives

Original issue reported on code.google.com by franck.s...@gmail.com on 31 Jul 2013 at 5:31

Attachments:

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I find the solution of my problem.
I have only added 
- the plugin datanucleus-maven-plugin + its dependencies.
- the entity class list in the section persistence-unit (see persistence.xml)

This issue could be closed.

Original comment by franck.s...@gmail.com on 31 Jul 2013 at 10:51