webjars / jquery

22 stars 26 forks source link

On MacOS X the maven deployed artefact provokes a java.util.zip.ZipException #33

Closed britzke closed 7 years ago

britzke commented 7 years ago

This prevents the servlet container to start. The message is: "java.util.zip.ZipException: invalid END header (bad central directory offset)". On a linux system the servlet container starts without error. I tested it with eclipse neon.1 in an empty maven project with only the webjars jquery dependency. I have been able to unpack it with the standard jar tool and if I repack it with jar tool (without a Manifest file as it has been delivered), the ZipException disappears.

My scenario: MacOS X 10.12.1, Tomcat 8.5.8, Java 1.8.0_111

Can this be a packing/delivering issue?

jamesward commented 7 years ago

Which artifact & version is this for?

britzke commented 7 years ago

3.1.1 (sorry)

jamesward commented 7 years ago

For the Classic org.webjars one? (i.e. not NPM or Bower)

britzke commented 7 years ago

The classic one. I loaded it via a maven dependency:

        <dependency>
            <groupId>org.webjars</groupId>
            <artifactId>jquery</artifactId>
            <version>3.1.1</version>
        </dependency>
jamesward commented 7 years ago

Whoops. Yeah, this is due to a packaging error. You can see the funky contents at: http://www.webjars.org/listfiles/jquery/3.1.1

Will release a fix shortly.

jamesward commented 7 years ago

I think that this should be fixed in 3.1.1-1. Let me know if you have any problems. Thanks!