Hi Boris,

I tried keeping into shared/lib of that particular application. But it
reflects the same error again. My requirement of putting these two jars in
shared/lib or common/lib is because i need to use them for other 20 more
applications. Hence, it would be more convenient to keep one copy and access
by multiple applications rather copying them to every application's
WEB-INF/lib.

Kindly, suggest some solution for this.

Thanks,
Nehal

-----Original Message-----
From: Boris Unckel [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 05, 2006 5:12 PM
To: users@tomcat.apache.org
Subject: Re: unable to load classes


Hello Nehal,

> I have 2 of my application specific jarfiles which need to be used by all
> other applications too in tomcat 5.5.9 on linux. Hence, i am placing both
> the jarfiles into common/lib of tomcat binary and linking them into
> shared/lib of application which use them.
>
> But, unfortunately, i get Null Pointer Exception. And my jarfiles or say
> classes are not getting loaded.
>
> If i put those jarfiles into application's WEB-INF/lib, it works fine.
>
> One of my jar contains servlet API in it.
>
> What could be the possible reason of failing the class loading from
> common/lib path?
Have a look at
http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html
If you have placed a jar in commons/lib, it is not needed to put them into
sharded.
I recommend to use shared/libs for your webapps only. Or even better, do not
use any shared directory if there is no special reason for. A webapp is an
independent application and WEB-INF/lib is the just made for libs needed by
this application.

Regards
Boris

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


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

Reply via email to