Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Regression: DLL handled as classpath resource [SPR-12928] #17521
After migrating our Eclipse-based RCP-Client from Spring 2.5.6 (!) to the latest release 4.1.6 we met this strange error:
This jacob DLL comes into play as an entry in the MANIFEST.MF of one of out jars; it looks as this:
It seems that Spring treets it as classpath Jar, and the classloader tries to open it as Zip file.
Juergen Hoeller commented
Does this stacktrace come out of the
We're generally only trying to open jar files that are being declared with a jar or zip prefix in the runtime classpath. I suppose Eclipse adds such an entry for that dll, derived from your manifest entry. If it does have a jar or zip prefix, it is an invalid classpath entry though. In any case, we're going to be more lenient there, ignoring jar entries that we can't open.
Carlo Luib-Finetti commented
Anyway, because we had this bundle classpath statement since a long time in the manifest, and because the error showed excactly when I did the upgrade to Spring 4.1 and the first runs of the application, I was sure Spring must be the culprit.