tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Barker" <wbar...@wilshire.com>
Subject Re: Why did he copy everything in "server/lib" to "common/lib?"
Date Sat, 22 Nov 2008 03:14:06 GMT

"Mark Ebbert" <Mark.Ebbert@hci.utah.edu> wrote in message 
news:8D97D439-770B-422C-8B76-318020657386@hci.utah.edu...
> Hi,
>
> I have inherited a project from someone (who is no longer around). I  am 
> also fairly new to web-applications. While trying to become  familiar with 
> tomcat 5.5 and the application that I inherited, I  learned that the 
> previous developer copied everything in "server/lib"  to "common/lib." I 
> also learned that the application did not function  properly unless I did 
> the same (error: NoClassDefFoundError: org/ 
> apache/catalina/realm/RealmBase). When reading the documentation on  the 
> tomcat 5.5 class loader page 
> (http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html ), I 
> learned that everything in "server/lib" is meant for Tomcat (and  only 
> Tomcat -- I think). Can anyone straighten me out? Why would he  copy these 
> jars over? And if the application is dependent on them, I  would imagine 
> other people's application would be too, but the jars  are not available 
> to the applications.
>

It is likely that he has a custom Tomcat component (e.g. a custom Realm) 
that he also want visable to webapp code.  With a little bit more work, it 
probably wouldn't be hard to stick to the TC 5.5 hierarchy (e.g. an 
interface and a class containing a ThreadLocal in common/lib, and the Realm 
implementing the interface and a Valve in server/lib to make the 
connections).  However in its default configuration, TC 6 has a similar 
classloader hierachy to the one that you have (it uses restrictive 
SecurityManager restriction to protect TC classes, and says "don't care" if 
you're not using a SecurityManager).

> Any advice is appreciated.
>
> Mark T. W. Ebbert
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
> 




---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message