Rejected
Details
Assignee
UnassignedUnassignedReporter
Ramon CashaRamon CashaComponents
Affects versions
Priority
Major
Details
Details
Assignee
Unassigned
UnassignedReporter
Ramon Casha
Ramon CashaComponents
Affects versions
Priority
Created July 14, 2011 at 12:00 PM
Updated July 8, 2014 at 3:12 PM
Resolved July 8, 2014 at 3:12 PM
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.