Bojan Smojver wrote:
>
> [EMAIL PROTECTED] wrote:
> >
> > Sorry, I had a lot on my had in the last days.
> >
> > Bojan - if you want to send a patch, it would be great. If not - I can fix
> > the bug ( but I would prefer you to send a patch - who knows, maybe later
> > you'll send another one, the first is allways harder :-)
> >
> > Costin
>
> Sorry, had to sleep ;-)
>
> I already have the code, but I'm still testing to make sure it does
> work. You'll have it this morning (Sydney time).
>
> Bojan
This does the trick for me...
Bojan
---
/home/groups/devel/jakarta/jakarta-tomcat/src/share/org/apache/tomcat/util/depend/DependClassLoader.java
Tue Sep 11 17:42:11 2001
+++ src/share/org/apache/tomcat/util/depend/DependClassLoader.java Thu Sep 13
+09:05:00 2001
@@ -238,9 +238,16 @@
int idx=fileN.indexOf( "!" );
if( idx>=0 )
fileN=fileN.substring( 0, idx) ;
- f=new File( fileN );
- if( debug > 0 ) log( "Jar dep " +f );
- if( ! f.exists()) f=null;
+
+ try{
+ f=new File(new URL(fileN).getFile());
+ if( debug > 0 ) log( "Jar dep " +f );
+ if( ! f.exists()) f=null;
+ } catch(NullPointerException npe){
+ f=null;
+ } catch(MalformedURLException mue){
+ f=null;
+ }
}
if( f==null ) return;