Re: Bug in tomcat 4.0b1

2001-04-20 Thread Park, Sung-Gu

I think I've gotten the same error message!
I've tested with tomcat 4.0b4 nightly build and it doesn't work at
ll.  -_-;
The jar in trouble is JTA 1.0.1a from Sun!

Sung-Gu


P.S.: The error message is :

java.lang.NullPointerException
at
org.apache.catalina.loader.Extension.getRequired(Extension.java:336)
at
org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(S
tandardClassLoader.java:1177)
at
org.apache.catalina.loader.StandardClassLoader.(StandardClassLoa
der.java:198)
at
org.apache.catalina.startup.Bootstrap.createCommonLoader(Bootstrap.jav
a:263)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:120)
Exception in thread "main" java.lang.IllegalArgumentException:
addRepositoryInter
nal: java.lang.NullPointerException
at
org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(S
tandardClassLoader.java:1185)
at
org.apache.catalina.loader.StandardClassLoader.(StandardClassLoa
der.java:198)
at
org.apache.catalina.startup.Bootstrap.createCommonLoader(Bootstrap.jav
a:263)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:120)

- Original Message -
From: "Donnchadh ?Donnabh?n" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 17, 2001 10:10 PM
Subject: Bug in tomcat 4.0b1


> There seems to be a bug in
>org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal
>  At line 1062 jarFile.getManifest() is called but there is no check for
> a returned null. In the case of the Oracle 8i thin JDBC driver there
>  is no manifest so depending on where the jar is located tomcat will
>  not start or the context will not start.
>
> The exiting code is:
> Manifest manifest = jarFile.getManifest();
> Iterator extensions =
> Extension.getAvailable(manifest).iterator();
> while (extensions.hasNext())
> available.add(extensions.next());
> extensions =
> Extension.getRequired(manifest).iterator();
> while (extensions.hasNext())
> required.add(extensions.next());
>
> and should be replaced with:
> Manifest manifest = jarFile.getManifest();
> if (manifest != null) {
> Iterator extensions =
> Extension.getAvailable(manifest).iterator();
> while (extensions.hasNext())
> available.add(extensions.next());
> extensions =
> Extension.getRequired(manifest).iterator();
> while (extensions.hasNext())
> required.add(extensions.next());
> }
>
>Donnchadh
>
> --
>
> // Donnchadh ?Donnabh?n  mailto:[EMAIL PROTECTED]
> // Vistech Software Ltd.   http://www.vistechsoftware.com
> // Building 7, Cork Airport Business Park, Cork, Ireland
> // Ph. +353-21-4315007  Fax +353-21-4315066
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
>




Bug in tomcat 4.0b1

2001-01-17 Thread Donnchadh Ó Donnabháin

 There seems to be a bug in 
   org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal
 At line 1062 jarFile.getManifest() is called but there is no check for
a returned null. In the case of the Oracle 8i thin JDBC driver there
 is no manifest so depending on where the jar is located tomcat will
 not start or the context will not start.

The exiting code is:
Manifest manifest = jarFile.getManifest();
Iterator extensions =
Extension.getAvailable(manifest).iterator();
while (extensions.hasNext())
available.add(extensions.next());
extensions =
Extension.getRequired(manifest).iterator();
while (extensions.hasNext())
required.add(extensions.next());

and should be replaced with:
Manifest manifest = jarFile.getManifest();
if (manifest != null) {
Iterator extensions =
Extension.getAvailable(manifest).iterator();
while (extensions.hasNext())
available.add(extensions.next());
extensions =
Extension.getRequired(manifest).iterator();
while (extensions.hasNext())
required.add(extensions.next());
}

   Donnchadh

-- 

// Donnchadh Ó Donnabháin  mailto:[EMAIL PROTECTED]
// Vistech Software Ltd.   http://www.vistechsoftware.com
// Building 7, Cork Airport Business Park, Cork, Ireland
// Ph. +353-21-4315007  Fax +353-21-4315066


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]