In your registry, make sure HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java
Development Kit\1.4\JavaHome is set correctly, then reinstall Tomcat 4.0.

If I remember correctly, if you have Netscape 6 installed it sets this to
point to the JRE instead of the JDK.  This prevents the Tomcat 4.0 installer
from copying tools.jar to "Apache Tomcat 4.0\common\lib".

-----Original Message-----
From: Ali Manji [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 02, 2001 8:25 AM
To: [EMAIL PROTECTED]
Subject: RE: Is tomcat4 and jdk1.4beta2 combination okay?


Yes jdk1.4beta2 does have a tools.jar and the JAVA_HOME var does point to 
it.  I am now thinking that something is wrong with the Tomcat config files,

because if I run catalina.bat directly I seem to be okay and the shipped 
samples seem to be okay, yet when I start Tomcat via Start->Programs->Apache

Tomcat 4.0->Start Tomcat then things don't work.  Weird eh?

*****************************************************
Ali M. Manji
*****************************************************



>From: Randy Layman <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: RE: Is tomcat4 and jdk1.4beta2 combination okay?
>Date: Tue, 2 Oct 2001 08:22:02 -0400
>
>
>       Tomcat is indicating that it can't find JavaC (thus the Class Not
>Found for sun.tools.javac.Main).  Does jdk1.4 still have a tools.jar file?
>Is it in your classpath for Tomcat? (i.e. is your JAVA_HOME set such that
>JAVA_HOME/lib/tools.jar exists)
>
>       Randy
>
> > -----Original Message-----
> > From: Ali Manji [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, October 02, 2001 8:39 AM
> > To: [EMAIL PROTECTED]
> > Subject: Is tomcat4 and jdk1.4beta2 combination okay?
> >
> >
> > > I recently upgraded my JDK to use jdk1.4 beta 2 and am
> > running tomcat 4.0
> > > the most recent release driver and I am haviing trouble
> > running any of the
> > > shipped samples (like numberguess jsp).  The error I get is
> > just below, is
> > > this a known problem?
> > >
> > > A Servlet Exception Has Occurred
> > > Root Cause:
> > > java.lang.NoClassDefFoundError: sun/tools/javac/Main
> > > at
> > >
> > org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaComp
> > iler.java:128)
> > > at org.apache.jasper.compiler.Compiler.compile(Compiler.java:271)
> > > at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:543)
> > > at
> > >
> > org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfN
> > ecessary(JspSe
> > > rvlet.java:176)
> > > at
> > >
> > org.apache.jasper.servlet.JspServlet$JspServletWrapper.service
> > (JspServlet.ja
> > > va:188)
> > > at
> > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet
> > .java:381)
> > > at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
> > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:1264)
> > > at
> > >
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
> > er(Application
> > > FilterChain.java:247)
> > > at
> > >
> > org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
> > cationFilterCh
> > > ain.java:193)
> > > at
> > >
> > org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
> > rapperValve.ja
> > > va:243)
> > > at
> > >
> > org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> > ipeline.java:5
> > > 66)
> > > at
> > >
> > org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> > ine.java:472)
> > > at
> > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> > > at
> > >
> > org.apache.catalina.core.StandardContextValve.invoke(StandardC
> > ontextValve.ja
> > > va:215)
> > > at
> > >
> > org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> > ipeline.java:5
> > > 66)
> > > at
> > >
> > org.apache.catalina.authenticator.AuthenticatorBase.invoke(Aut
> > henticatorBase
> > > .java:472)
> > > at
> > >
> > org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> > ipeline.java:5
> > > 64)
> > > at
> > >
> > org.apache.catalina.valves.CertificatesValve.invoke(Certificat
> > esValve.java:2
> > > 46)
> > > at
> > >
> > org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> > ipeline.java:5
> > > 64)
> > > at
> > >
> > org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> > ine.java:472)
> > > at
> > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> > > at
> > >
> > org.apache.catalina.core.StandardContext.invoke(StandardContex
> > t.java:2366)
> > > at
> > >
> > org.apache.catalina.core.StandardHostValve.invoke(StandardHost
> > Valve.java:164
> > > )
> > > at
> > >
> > org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> > ipeline.java:5
> > > 66)
> > > at
> > >
> > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValv
> > e.java:462)
> > > at
> > >
> > org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> > ipeline.java:5
> > > 64)
> > > at
> > >
> > org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> > ine.java:472)
> > > at
> > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> > > at
> > >
> > org.apache.catalina.core.StandardEngineValve.invoke(StandardEn
> > gineValve.java
> > > :163)
> > > at
> > >
> > org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> > ipeline.java:5
> > > 66)
> > > at
> > >
> > org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> > ine.java:472)
> > > at
> > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> > > at
> > >
> > org.apache.catalina.connector.http.HttpProcessor.process(HttpP
> > rocessor.java:
> > > 1005)
> > > at
> > >
> > org.apache.catalina.connector.http.HttpProcessor.run(HttpProce
> > ssor.java:1098
> > > )
> > > at java.lang.Thread.run(Unknown Source)
> > >
> > >
> > >
> >


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

Reply via email to