"Mark Ebbert" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]