From owner-freebsd-java Thu Apr 4 18:38:23 2002 Delivered-To: freebsd-java@freebsd.org Received: from hobbits.brel.com (hobbits.brel.com [203.127.231.61]) by hub.freebsd.org (Postfix) with ESMTP id 050C837B416; Thu, 4 Apr 2002 18:38:18 -0800 (PST) Received: by hobbits.brel.com (Postfix, from userid 1001) id 4583A3309; Fri, 5 Apr 2002 10:38:13 +0800 (SGT) Date: Fri, 5 Apr 2002 10:38:13 +0800 From: Calvin NG To: Ernst de Haan Cc: freebsd-java@FreeBSD.org Subject: Re: Tomcat4 and catalina:jsp_classpath Message-ID: <20020405103813.A88665@brel.com> References: <20020404150807.A86509@brel.com> <200204042204.AAA14942@smtp.hccnet.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <200204042204.AAA14942@smtp.hccnet.nl>; from znerd@FreeBSD.org on Fri, Apr 05, 2002 at 12:04:32AM +0200 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 Greetings, Yes it does work, I see /home/local/jdk1.3.1/lib/tools.jar in the catalina.jsp_classpath now when I run SnoopServlet And all the example JSP and my own JSP displays properly. Regards, /calvin lines with :> are quotes from Ernst de Haan's email :> Hi Calvin, :> :> Committed a changed port just a few minutes ago. Could you please confirm :> that it now works as you would like/expect it to ? :> :> Sincerely, :> :> 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message