I've created a runnable jar and I can start it either using "java -jar abc.jar" or using a jnlp:
<?xml version="1.0" encoding="utf-8"?>
<jnlp
spec="6.0+"
codebase="host"
href="abc.jnlp">
<information>
<title>abc</title>
<vendor>def</vendor>
<homepage href=""/>
<description>def</description>
<description kind="short">def</description>
<icon href="images/swingset2.jpg"/>
<icon kind="splash" href="images/splash.gif"/>
<association mime-type="application-x/swingset2-file" extensions="swingset2"/>
<shortcut online="false">
<desktop/>
<menu submenu="My Corporation Apps"/>
</shortcut>
</information>
<security>
<all-permissions/>
</security>
<resources>
<j2se version="1.6+" java-vm-args="-esa -Xnoclassgc"/>
<jar href="lib/abc.jar"/>
</resources>
<application-desc />
</jnlp>
However, as soon as "Persistence.createEntityManagerFactory()" is called, the application freezes when started with jnlp. The "java -jar" started application does just fine.
The last log output is: [org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:132)] - opening new JDBC connection
What could be the problem? I've tried both approaches from the same pc and even the jnlp and jars are located at the pc and not on a remote server so connecting should defenitely be possible.