dev@glassfish.java.net

GlassFish V3 Prelude build error: invalid LOC header (bad signature)

From: Sreenivas Munnangi <Sreenivas.Munnangi_at_Sun.COM>
Date: Wed, 06 Aug 2008 11:44:21 -0700

Recently, I have been seeing the following build error frequently on my
Solaris X86 machine. Appreciate any help/pointers.

thanks
sreeni

[INFO] [hk2:hk2-compile]
[INFO] Compiling 12 source files to
/space/GFV3_SRC_080608/v3/registration/registration-impl/target/classes
Note:
/space/GFV3_SRC_080608/v3/registration/registration-impl/src/main/java/com/sun/enterprise/registration/impl/SysnetRegistrationService.java
uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
[INFO] [bundle:manifest {execution: bundle-manifest}]
[INFO]
------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO]
------------------------------------------------------------------------
[INFO] jzentry == 0,
 jzfile = 188762992,
 total = 7,
 name =
/space/GFV3_SRC_080608/v3/distributions/external/commons-codec/target/commons-codec-repackaged-10.0-SNAPSHOT.jar,
 i = 2,
 message = invalid LOC header (bad signature)
[INFO]
------------------------------------------------------------------------
[INFO] Trace
java.lang.InternalError: jzentry == 0,
 jzfile = 188762992,
 total = 7,
 name =
/space/GFV3_SRC_080608/v3/distributions/external/commons-codec/target/commons-codec-repackaged-10.0-SNAPSHOT.jar,
 i = 2,
 message = invalid LOC header (bad signature)
        at java.util.zip.ZipFile$3.nextElement(ZipFile.java:429)
        at java.util.zip.ZipFile$3.nextElement(ZipFile.java:415)
        at aQute.lib.osgi.ZipResource.build(ZipResource.java:41)
        at aQute.lib.osgi.ZipResource.build(ZipResource.java:32)
        at aQute.lib.osgi.Jar.<init>(Jar.java:35)
        at
org.apache.felix.bundleplugin.BundlePlugin.getClasspath(BundlePlugin.java:670)
        at
org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:227)
        at
org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:218)
        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 8 minutes 57 seconds
[INFO] Finished at: Wed Aug 06 09:58:29 PDT 2008
[INFO] Final Memory: 66M/141M
[INFO]
------------------------------------------------------------------------