Re: Classloading Problem

Robert Leland <[email protected]> Tue, 16 May 2006 11:51:08 -0400
Newsgroups gmane.text.xml.resin.user
Message-ID <[email protected]>
There was also a ZIP/Jar bug in 1.4.2 that was introduced when another 
problem was fixed.
I believe the change was rolled back about  1.4.2_09, but you should 
probably try to recreate
with the latest 1.4.2 release.(1.4.2_11)

-Rob


Mattias Jiderhamn wrote:
> I would try to recreate this in a debugging environment, preferrably 
> with a breakpoint when java.util.zip.ZipException is thrown.
> Also make sure there are only .jar files and directories in your 
> classpath (application.getAttribute("caucho.class.path"))
>
> You probably won't get much help with a version of Resin as old as 
> 2.1.6. Have you tried with 2.1.17?
>
> At 2006-05-16 12:05, Karl-Heinz Hoffmann wrote:
>> Hi
>>
>> I'm looking for a debugging aid for the following problem I'm 
>> struggle with
>> for some time. I'm using resin 2.1.6 with JDK 1.4.2_05.
>> The problem is I got the following error messages and I couldn't find 
>> the
>> wrong .jar .jsp .class file.  I used the JVM option -verbose:class
>> but it doesn't say any error message. The message is show several 
>> times at
>> startup and each time the class-update-interval is reached.
>> May be some of you has a good idea on how to catch this one.
>>
>> Cheers
>> Karl-Heinz
>>
>> [2006-05-16 03:04:02.733] java.util.zip.ZipException: error in 
>> opening zip
>> file
>>       at java.util.zip.ZipFile.open(Native Method)
>>       at java.util.zip.ZipFile.<init>(ZipFile.java:112)
>>       at java.util.jar.JarFile.<init>(JarFile.java:127)
>>       at java.util.jar.JarFile.<init>(JarFile.java:65)
>>       at com.caucho.vfs.Jar.getZipFile(Jar.java:442)
>>       at com.caucho.vfs.Jar.getJarEntry(Jar.java:421)
>>       at com.caucho.vfs.Jar.getSafeJarEntry(Jar.java:403)
>>       at com.caucho.vfs.Jar.isFile(Jar.java:174)
>>       at com.caucho.vfs.Jar.canRead(Jar.java:237)
>>       at com.caucho.vfs.JarPath.canRead(JarPath.java:147)
>>       at
>> com.caucho.util.DirectoryClassLoader.getClassEntry(DirectoryClassLoader.java:232) 
>>
>>       at
>> com.caucho.util.DynamicClassLoader.findClass(DynamicClassLoader.java:558) 
>>
>>       at
>> com.caucho.util.DynamicClassLoader.loadClass(DynamicClassLoader.java:510) 
>>
>>       at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
>>       at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
>>       at java.lang.Class.forName0(Native Method)
>>       at java.lang.Class.forName(Class.java:219)
>>       at
>> com.caucho.util.DynamicClassLoader.loadClass(DynamicClassLoader.java:500) 
>>
>>       at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
>>       at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
>>       at java.lang.Class.forName0(Native Method)
>>       at java.lang.Class.forName(Class.java:219)
>>       at com.caucho.util.CauchoSystem.loadClass(CauchoSystem.java:387)
>>       at com.caucho.jsp.JspManager.preloadIsValid(JspManager.java:204)
>>       at com.caucho.jsp.JspManager.createPage(JspManager.java:147)
>>       at com.caucho.jsp.PageManager.getPage(PageManager.java:346)
>>       at com.caucho.jsp.PageManager.getPage(PageManager.java:191)
>>       at com.caucho.jsp.QServlet.getPage(QServlet.java:220)
>>       at
>> com.caucho.server.http.FilterChainPage.doFilter(FilterChainPage.java:129) 
>>
>>       at com.caucho.server.http.Invocation.service(Invocation.java:312)
>>       at
>> com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135)
>>       at
>> com.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:342) 
>>
>>       at
>> com.caucho.server.http.RunnerRequest.handleConnection(RunnerRequest.java:272) 
>>
>>       at com.caucho.server.TcpConnection.run(TcpConnection.java:137)
>>       at java.lang.Thread.run(Thread.java:534)
>
>
> .
>


-- 
 
 

*_________________________________________
**Robert Leland                         INTEGRITYOne *(Formerly PRIZUM)
P: (703) 476-7404 x108                        1900 Campus Commons Drive
F: (703) 476-7405                                  Reston, VA 20191
[email protected] 
<mailto:[email protected]>     
www.integrityonepartners.com <http://www.integrityonepartners.com/>

*     BUSINESS CONSULTING | TECHNOLOGY SOLUTIONS | INNOVATION R&D*