Problem with Maven dependency for version bigger of 6.0


Hi, guys,

I'm trying to add Jasper reports in my project with maven dependency.

The major issue is because if I add a dependency for version 6.0 or lower everything is ok but if I add some bigger version than 6.0 then I can't start the application and I'm getting this errors



org.apache.catalina.LifecycleException: Failed to initialize component [org.apache.catalina.webresources.JarResourceSet@410ae9a3]

    at sun.reflect.NativeMethodAccessorImpl.invoke(
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(
    at java.lang.reflect.Method.invoke(
    at org.apache.catalina.startup.Bootstrap.start(
    at org.apache.catalina.startup.Bootstrap.main(
Caused by: java.lang.IllegalArgumentException: invalid LOC header (bad signature)
    at org.apache.catalina.webresources.AbstractSingleArchiveResourceSet.initInternal(
    at org.apache.catalina.util.LifecycleBase.init(
    ... 44 more
Caused by: invalid LOC header (bad signature)
    at Method)
    at sun.misc.IOUtils.readFully(
    at java.util.jar.JarFile.getBytes(
    at java.util.jar.JarFile.getManifestFromReference(
    at java.util.jar.JarFile.getManifest(
    at org.apache.catalina.webresources.AbstractSingleArchiveResourceSet.initInternal(
    ... 45 more

java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to initialize component [org.apache.catalina.webresources.JarResourceSet@410ae9a3]




aleksandar.vukovic's picture
Joined: Apr 4 2019 - 6:54am
Last seen: 8 months 3 weeks ago

1 Answer:


LOC error usually are caused by corrupted jar file. Try deleting jar files in your maven cache and rerunning.

hozawa's picture
Joined: Apr 24 2010 - 4:31pm
Last seen: 1 year 2 months ago