[hibernate-issues] [Hibernate-JIRA] Created: (HHH-6440) Hibernate + Webstart + JnlpDownloadServlet: problem with JAR names
Ramon Casha (JIRA)
noreply at atlassian.com
Thu Jul 14 06:01:15 EDT 2011
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
More information about the hibernate-issues
mailing list