Unfortunately, I get the an error (see below) when I am creating a jar file
and run the program afterwards. As I can see, of course, the
javax.persistence jar provided by the ejb3-persistence.jar is obviously
missing. But I don't know how to fix the problem. When I'm running the
program as a
Hi Wayne,
thank you for your answer. I should be more
precised in my descriptions... Here are the facts, in hope to give you some
hints:
- It's a desktop java app
- I'm using the m2eclipse plugin
- m2eclipse creates a jar file for me to run it as a desktop java app
- m2eclipse runs with the
- there's an exec plugin (groupid: org.codehaus.mojo, artifactid:
exec-maven-plugin) which executes the jar after building it. The jar
principally works, but the first time, I'm using a database related process,
I get this error.
What does your exec-maven-plugin configuration look like? It
Hi,
I have only little experience with Maven. Currently, I'm working on a
project with JPA. It's a desktop application without Application Server. I
added the hibernate-entitymanager-3.4.0.GA.jar to the dependencies (all
corresponding dependencies are resolved by Maven). My JUnit tests
Martin,
While the app I'm currently working on is a web-based app, I have an
explicit dependency declare for the persistence API. Whether it is
necessary, I'm not sure, but it's in the POM. So, I thought I'd reply
with it for you.
dependency