Hibernate + Webstart + JnlpDownloadServlet: problem with JAR names
------------------------------------------------------------------
Key: HHH-6440
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-6440
Project: Hibernate Core
Issue Type: Bug
Components: entity-manager
Affects Versions: 3.5.6
Reporter: Ramon Casha
I have created a webapp to deploy my application using Java Web Start, and I'm using
the standard JnlpDownloadServlet to provide different file versions. For instance, the
JNLP file would reference entities.jar, but the physical file on the web server might be
entities-1.0.2.jar. This is normally handled by the web start internals, but Hibernate
attempts to access the JAR file directly (I think to find the entities), using the
"original" JAR file name without a version.
I believe the problem is in org.hibernate.ejb.packaging.JarVisitorFactory, in the function
getJarURLFromURLEntry. This method takes a "jar:" URL and extracts from it the
embedded "http:" URL. However this http URL does not have the version number
included. Presumably the protocol handler for the jar protocol handles this internally.
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira