tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 47834] TldConfig throws Exception when exploring unpacked jar
Date Mon, 14 Sep 2009 16:43:53 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=47834

--- Comment #3 from Guillaume Sauthier <guillaume.sauthier@objectweb.org> 2009-09-14
09:43:50 PDT ---
Thanks for the review Mark.

I cannot use the TC7 trunk from JOnAS (bound to TC 6.0.20 for now), so I gave
it a try using a pure tomcat.

I took a simple web app with a jar unpacked in the WEB-INF/lib directory.
It doesn't work as expected :'(

In tldScanWebInfLib(), when you get the resource paths from WEB-INF/lib, my jar
file is there, but the String is of the form: "<something>.jar/". The trailing
'/' is a problem because you test for ".jar" only.

Anyway, even if something was found, I think the current code is wrong in
handling directories: in tldScanJar() the first thing we do is opening the URL
to get the URLConnection. If the URL is referring to a directory, we will very
quickly get an IOException.

I'll work on a refined patch tomorrow.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message