This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 31938

Summary: exceptions when replacing jar in cvs based web app
Product: javaee Reporter: leomekenkamp <leomekenkamp>
Component: CodeAssignee: issues@javaee <issues>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P3    
Version: 3.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description leomekenkamp 2003-03-12 12:43:35 UTC
Exceptions occur when a cvs based jar is replaced.
As 'refresh' in a cvs based checkout dir is
impossible (please add this, it would not only be
a fast workaround for the problem described here)
the workaround is to unmount and then remount the
web-app.

steps to reproduce:
- create a web application in a cvs server
- include a jar in WEB-INF/lib
- do a fresh cvs checkout (in netbeans)
- replace (in a shell) the aforementioned jar with
a newer version
- edit a jsp (in netbeans)
- the following exception gets thrown at the time
one would expect the command completion to kick in:

Annotation: Exception occurred in Request Processor
java.lang.InternalError: jzentry == 0,
 jzfile = 135494136,
 total = 357,
 name =
/home/leo/work/workshop/workshop/web/WEB-INF/lib/ozone-1.2.x-dev.jar,
 i = 69,
 message = invalid LOC header (bad signature)
        at
java.util.zip.ZipFile$2.nextElement(ZipFile.java:309)
        at
java.util.jar.JarFile$1.nextElement(JarFile.java:201)
        at
org.apache.jasper.compiler.TldLocationsCache.tldConfigJar(TldLocationsCache.java:237)
        at
org.apache.jasper.compiler.TldLocationsCache.processJars(TldLocationsCache.java:210)
        at
org.apache.jasper.compiler.TldLocationsCache.<init>(TldLocationsCache.java:139)
        at
org.netbeans.modules.web.jspparser.WMDataCache.getTldLocationsCache(WMDataCache.java:87)
        at
org.netbeans.modules.web.jspparser.OptionsImpl.<init>(OptionsImpl.java:55)
        at
org.netbeans.modules.web.jspparser.OptionsImpl.<init>(OptionsImpl.java:48)
        at
org.netbeans.modules.web.jspparser.JspParserImpl.parsePage(JspParserImpl.java:103)
        at
org.netbeans.modules.web.core.jsploader.TagLibParseSupport$ParsingRunnable.run(TagLibParseSupport.java:121)
        at org.openide.util.Task.run(Task.java:136)
[catch] at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:599)
Comment 1 pzajac 2003-03-12 12:52:29 UTC
reassigned to web module
Comment 2 psuk 2003-03-12 14:16:38 UTC
The symptoms (exception) looks similar to issue 31573.

*** This issue has been marked as a duplicate of 31573 ***