I have an established desktop application that uses Hibernate 4.1.8.
The application runs just fine and has been in use for a few years now (using earlier versions of Hibernate).
I now have a use case that requires JNLP protocol to launch an aspect of the application from a hyperlink.
Although I can launch other java.jar files using JNLP, I have not been able to launch the Hibernate enabled application because of exceptions thrown during initialisation:
11:49:08,904 ERROR HibernateUtil:165 - Session factory failed to start access denied ("java.util.PropertyPermission" "hibernate.enable_specj_proprietary_syntax" "read")
Exception in thread "AWT-EventQueue-0" java.lang.ExceptionInInitializerError
....
Caused by: java.security.AccessControlException: access denied ("java.util.PropertyPermission" "hibernate.enable_specj_proprietary_syntax" "read")
at java.security.AccessControlContext.checkPermission(Unknown Source)
I have tried adding:
Code:
<security >
<all-permissions/>
</security>
to the JNLP descriptor but to no avail.
Hoping that someone can point me towards to cause and solution of this problem.
db