Hello,

I'm building some utility wrappers for Tomcat (using 5.0.30 in this case). Since they need to be accessed by all webapps, I'm placing their jars in shared/lib (I also even tried common/lib to resolve the problem below).

These jars reference classes in org.apache.catalina.* ('ServerFactory' and 'Realm' among others).

When I exec call the methods from JSPs (for example), I get a NoClassDefFoundError: org/apache/catalina/ServerFactory..

I *was* originally able to execute the same code that's now contained in the shared/lib jars, from directly inside JSPs, using the prescribed 'privileged=true' Server/Service/Engine/Host/Context attribute... however it's the classloader for shared/lib jars thats seems to need a similar 'privileged' attribute..

Should I place this same (or another attrib) in some other web.xml element? Or is there another lib directory I should use?

Thanks in advance,

ken



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

Reply via email to