From owner-freebsd-java Wed Apr 3 23:28: 5 2002 Delivered-To: freebsd-java@freebsd.org Received: from zaphod.euronet.nl (zaphod.euronet.nl [194.134.128.241]) by hub.freebsd.org (Postfix) with ESMTP id 142D837B405 for ; Wed, 3 Apr 2002 23:28:00 -0800 (PST) Received: (from ernst@localhost) by zaphod.euronet.nl (8.11.6/8.11.6) id g347Rud41477; Thu, 4 Apr 2002 09:27:56 +0200 (CEST) (envelope-from ernst) Message-Id: <200204040727.g347Rud41477@zaphod.euronet.nl> Content-Type: text/plain; charset="iso-8859-1" From: Ernst de Haan Organization: EuroNet Internet B.V. To: Calvin NG Subject: Re: Tomcat4 and catalina:jsp_classpath Date: Thu, 4 Apr 2002 09:27:55 +0200 X-Mailer: KMail [version 1.3.2] References: <20020404150807.A86509@brel.com> In-Reply-To: <20020404150807.A86509@brel.com> Cc: freebsd-java@FreeBSD.ORG MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Calvin, Please submit a PR using send-pr. I will then solve this issue ASAP. Ernst On Thursday 04 April 2002 09:08, Calvin NG wrote: > Greetings, > > I have just finished installing jakarta-tomcat4 from the ports > collection. Testing the servlets looks okay, however, when running the JSP > examples, I get a very nicely formatted Tomcat4 error page reporting > "Internal Server Error" due to exception: javax.servlet.ServletException: > sun/tools/javac/Main root cause: java.lang.NoClassDefFoundError: > sun/tools/javac/Main > > It is quite apparent that Tomcat is not able to find tools.jar that is > in $JAVA_HOME/lib/ (I checked, the tools.jar is still there). > > Looking carefully at Tomcat4's doc, specifically Class Loader How-To, > it mentions that Catalina will ignore the system setting, CLASSPATH, > but will load its classes in a very specific way. (I will not repeat it > here, those interested should read > http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html > > Now it seems that my Tomcat4 installation is not following this to > the letter, and has failed to load $JAVA_HOME/lib/tools.jar > Maybe someone can point out what I am doing wrong. > > I can solve this problem by copying $JAVA_HOME/lib/tools.jar into > $CATALINA_HOME/common/lib/tools.jar but I would like to know if > anyone else has encounter this problem and how they resolve it. > > NOTE: you can take a peek at catalina:jsp_classpath at > http://localhost:8180/examples/servlet/SnoopServlet > assuming default installation with examples > mine doesn't contain bootstrap.jar or tools.jar > > Regards, > /calvin > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-java" in the body of the message -- Ernst de Haan EuroNet Internet B.V. "Come to me all who are weary and burdened and I will give you rest" -- Jesus Christ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message