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 goals: goals: compile test-compile test
 - junit tests work fine (where database stuff is tested)
 - 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.

Hope, that helps - if you need any more information, please let me know. I
know about the assembly "program" and I tried to execute the goal
assembly:assembly, but it didn't work...

If you need any more information to solve this problem, please let me know.

Thanks in advance for your support,
Martin

"Wayne Fay" <[email protected]> schrieb:
>> 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 simple Java Desktop App, everything is fine.
> 
> How are you "creating a jar file and run the program"? Unless you
> build a special package eg with the assembly plugin, it will only
> contain your project code and not the dependencies etc.
> 
> What are your expectations?
> 
> Wayne
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to