welll, the classloader works as explained here : http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html
hope it helps, -reynir Eric J Kaplan wrote: >Reynir > >That does help, although it is what I suspected. I did indeed have a ref to >this lib that I wasn't aware of. The reason I was confused initially thought >was that armanta.jar has a classloader Manifest that references a bunch of >libs, this Avalon one included, that are expected to be in an ext directory >that is off the lib directory. It seems that this manifest classpath is >ignored though? Anyway, I moved the libs up next to Armanta.jar in the lib >dir and it works fine. > >Thanks > >Eric > >-----Original Message----- >From: reynir [mailto:[EMAIL PROTECTED] >Sent: Tuesday, April 05, 2005 3:53 PM >To: Tomcat Users List >Subject: Re: NoClassDefFoundError: org/apache/avalon/framework/logger/Logger > >hi, > >This is a simple class not found exception, that would be fixed if you >add the avalon jars into WEB-INF/lib >The classloader can not find : org.apache.avalon.framework.logger.Logger >This is a class that you are using in your aramanta application >(com.armanta.servlets.ReportServlet) >You must provide this class into the classpath to get this to work. Its >not to my knowledge a part of tomcat, >and even so, you should provide libraries your applications depend on >your self. BTW. avalon project is closed, but I think you can download >those libraries. For logging I recomend log4J. > >see : http://avalon.apache.org/ > >hope it helps >-reynir > > > > > > > > >Eric J Kaplan wrote: > > > >>Fyi, I am running java 1.4.1_07 on windows XP >> >>-----Original Message----- >>From: Eric J Kaplan [mailto:[EMAIL PROTECTED] >>Sent: Tuesday, April 05, 2005 2:44 PM >>To: [email protected] >>Subject: NoClassDefFoundError: org/apache/avalon/framework/logger/Logger >> >>All >> >> >> >>I recently downloaded tomcat version 5.0.28 and created a webapp in the >>webapps directory which looks as follows: >> >> >> >><tomcat_home> >> >> webapps >> >> armanta-war >> >> WEB-INF >> >> lib >> >> armanta.jar >> >> >> >>armanta.jar has two classes in it, my servlet and a class used by the >>servlet. >> >> >> >>My web.xml is shown below. >> >> >> >>When I go to run my servlet, I get the following exception report and can't >>explain why, since my install of tomcat is pretty vanilla. I know >>historically there have been issues related to conflicts between jars, but >>in my case I've only added two class files into the mix. Can someone please >>help? >> >> >> >>type Exception report >> >>message >> >>description The server encountered an internal error () that prevented it >> >> >>from fulfilling this request. > > >>exception >> >>javax.servlet.ServletException: Error instantiating servlet class >>com.armanta.servlets.ReportServlet >> >>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:11 >> >> >8 > > >>) >> >>org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) >> >>org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) >> >>org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConn >> >> >e > > >>ction(Http11Protocol.java:705) >> >>org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) >> >>org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.ja >> >> >v > > >>a:683) >> java.lang.Thread.run(Thread.java:536) >> >>root cause >> >>java.lang.NoClassDefFoundError: org/apache/avalon/framework/logger/Logger >> java.lang.Class.getDeclaredConstructors0(Native Method) >> java.lang.Class.privateGetDeclaredConstructors(Class.java:1590) >> java.lang.Class.getConstructor0(Class.java:1762) >> java.lang.Class.newInstance0(Class.java:276) >> java.lang.Class.newInstance(Class.java:259) >> >>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:11 >> >> >8 > > >>) >> >>org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) >> >>org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) >> >>org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConn >> >> >e > > >>ction(Http11Protocol.java:705) >> >>org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) >> >>org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.ja >> >> >v > > >>a:683) >> java.lang.Thread.run(Thread.java:536) >> >>note The full stack trace of the root cause is available in the Apache >>Tomcat/5.0.28 logs. >> >> >> >> >> >><?xml version="1.0" encoding="ISO-8859-1"?> >> >> >> >><!DOCTYPE web-app >> >> PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" >> >> "http://java.sun.com/dtd/web-app_2_3.dtd"> >> >> >> >><web-app> >> >> >> >> >> >> <!-- General description of your web application --> >> >> >> >> <display-name>Armanta Report Web Application</display-name> >> >> <description> >> >> Consists of a servlet to send report commands to. >> >> </description> >> >> >> >> >> >> <servlet> >> >> <servlet-name>ArmantaServlet</servlet-name> >> >> <servlet-class>com.armanta.servlets.ReportServlet</servlet-class> >> >> </servlet> >> >> >> >> <servlet-mapping> >> >> <servlet-name>ArmantaServlet</servlet-name> >> >> <url-pattern>/ReportServlet</url-pattern> >> >> </servlet-mapping> >> >> >> >></web-app> >> >> >> >>Eric J. Kaplan >> >>Armanta, Inc. >> >>350 Mt. Kemble Ave. >> >>Morristown, NJ 07960 >> >> >> >> >> >>--------------------------------------------------------------------- >>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] > > > >--------------------------------------------------------------------- >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]
