IntelliJ Java IDE
The moose likes JNLP and Web Start and the fly likes problem with Persistence.createEntityManagerFactory Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JNLP and Web Start
Reply Bookmark "problem with Persistence.createEntityManagerFactory" Watch "problem with Persistence.createEntityManagerFactory" New topic
Author

problem with Persistence.createEntityManagerFactory

Jordan Thompson
Greenhorn

Joined: Nov 09, 2009
Posts: 20
Hi all,
I have an application that runs fine as an application. I have (tried) to package it as a web start app, but it dies at Persistence.createEntityManagerFactory(). When I say dies, I mean nothing happens - it never returns from the call. I have not been able to debug it as a web application - I have set up a logger that prints to a file and the last thing in the file is "INFO Getting an EntityManagerFactory"

Here is part of the code:


This code is never called:


Here is my jnlp file (all three jar files listed are signed - there are others in the lib directory that are not):



Here is the list of files in my lib directory:

antlr-2.7.6.jar
asm-attrs.jar
asm.jar
cglib-2.1.3.jar
commons-collections-2.1.1.jar
commons-logging-1.1.jar
dataLib.jar
dom4j-1.6.1.jar
ehcache-1.2.3.jar
ejb3-persistence.jar
hibernate-annotations.jar
hibernate-commons-annotations.jar
hibernate-entitymanager.jar
hibernate-tools.jar
hibernate3.jar
javassist.jar
jcalendar-1.3.3.jar
jcommon-1.0.16.jar
jdbc2_0-stdext.jar
jfreechart-1.0.13.jar
jta.jar
log4j-1.2.15.jar
mysql-connector-java-3.0.17-ga-bin.jar
thompco.jar


I am really at a loss - I have tried running from the command line in hopes that something may be printed, but am disappointed that nothing shows up.
I have tried to debug from netbeans, but cannot connect to the port (8989) I specified (any suggestions here would be very helpful.)
set JAVAWS_TRACE_NATIVE=1
set JAVAWS_TRACE_NATIVE=1
set JAVAWS_VM_ARGS=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjwp:transport=dt_socket, address=8989,server=y,suspend=n
javaws dataApp.jnlp

thanks for any help you may have for me.

Jordan

No matter where you go - there you are
-- Buckaroo Banzai
Jordan Thompson
Greenhorn

Joined: Nov 09, 2009
Posts: 20
this has been resolved - turns out that I had removed the mysql jar and added back the mysql library. Ant did not include the library (but it did include the jar.)
 
IntelliJ Java IDE
 
subject: problem with Persistence.createEntityManagerFactory
 
Threads others viewed
How to un jnlp app offline?
Dynamic JNLP not working with JBoss?
EJB client and Java webstart with JNLP
AccessControlException
Web start run the Jar but doesn't work No action Happened ?
IntelliJ Java IDE