What I really needed to know was did you install the JDK or the JRE.  From 
your answer I take it you installed the JDK, that's good.

If you are getting these errors while going to http://localhost/examples 
then apache is starting tomcat in process but tomcat is not able to find 
the JDK stuff if needs to operate.  This is actually good because the 
major hurdle of getting apache and tomcat to communicate is done.  Now all 
you need is to get tomcat to know where the JDK or the JRE is or both.

I've seen this problem when I forgot to reboot after I installed J2SDK.  I 
also got this when I installed as a user who did not have administrator 
privileges.  You should get this same error even if you start Tomcat 
manually.  It can't find the Java libs and dll's it needs to function.  So 
start tomcat manually from start>programs>apache tomcat 4.1 then open a 
browser to http://localhost:8080.  If this works then go to the examples 
dir and select something.  It should blow up somewhere.  If it does then 
reinstall the J2SDK and pay particular attention to all your env variables 
and path statements, and I would install it as Administrator. 

BTW these env variables should be set in the system environment, and not 
the user environment.

I've installed it in c:\www\Java so my 'system' environment variables are;
JAVA_HOME = c:\www\Java 
and this is tacked onto the end of my 'system' PATH
c:\www\Java;c:\www\Java\bin

Check your apache error log for more clues.
Check your tomcat error log for clues too.

Here is a document I made to help with installs. 
ftp://pokey.wr.usgs.gov/pub/rsowders/Apache2_Win2k_TC4.1.8_JSDK1.4.doc

Hope it helps you.
rls




"ChinHo Tan" <[EMAIL PROTECTED]>
08/07/2002 10:51 PM
Please respond to "Tomcat Users List"

 
        To:     "Tomcat Users List" <[EMAIL PROTECTED]>
        cc: 
        Subject:        Re: Exception

I set to JDK .. is this correct ?

----- Original Message -----
From: "Shapira, Yoav" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, August 07, 2002 2:50 PM
Subject: RE: Exception


Hi,
Is your $JAVA_HOME set to a JDK or a JRE?

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: ChinHo Tan [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, August 07, 2002 2:42 PM
>To: [EMAIL PROTECTED]
>Subject: Exception
>
>May I know what is the cause for the following errors ? Thanks ..
>
>
>type Exception report
>message Internal Server Error
>description The server encountered an internal error (Internal Server
>Error)
>that prevented it from fulfilling this request.
>exception
>
>javax.servlet.ServletException: sun/tools/javac/Main
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:481)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic
atio
>n
>FilterChain.java:247)
> at
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil
terC
>h
>ain.java:193)
> at
>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal
ve.j
>a
>va:243)
> at
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j
ava:
>5
>66)
> at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
472)
> at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
>org.apache.catalina.core.StandardContextValve.invoke(StandardContextVal
ve.j
>a
>va:190)
> at
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j
ava:
>5
>66)
> at
>org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.j
ava:
>2
>46)
> at
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j
ava:
>5
>64)
> at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
472)
> at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
>org.apache.catalina.core.StandardContext.invoke(StandardContext.java:23
47)
> at
>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav
a:18
>0
>)
> at
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j
ava:
>5
>66)
> at
>org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherV
alve
>.
>java:170)
> at
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j
ava:
>5
>64)
> at
>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav
a:17
>0
>)
> at
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j
ava:
>5
>64)
> at
>org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:46
8)
> at
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j
ava:
>5
>64)
> at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
472)
> at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
>org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve
.jav
>a
>:174)
> at
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j
ava:
>5
>66)
> at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
472)
> at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
>org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.
java
>:
>1027)
> at
>org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java
:112
>5
>)
> at java.lang.Thread.run(Thread.java:536)
>
>root cause
>java.lang.NoClassDefFoundError: sun/tools/javac/Main
> at
>org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java
:136
>)
> at org.apache.jasper.compiler.Compiler.compile(Compiler.java:272)
> at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:548)
> at
>org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(
JspS
>e
>rvlet.java:176)
> at
>org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServl
et.j
>a
>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:853)
> at
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic
atio
>n
>FilterChain.java:247)
> at
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil
terC
>h
>ain.java:193)
> at
>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal
ve.j
>a
>va:243)
> at
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j
ava:
>5
>66)
> at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
472)
> at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
>org.apache.catalina.core.StandardContextValve.invoke(StandardContextVal
ve.j
>a
>va:190)
> at
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j
ava:
>5
>66)
> at
>org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.j
ava:
>2
>46)
> at
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j
ava:
>5
>64)
> at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
472)
> at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
>org.apache.catalina.core.StandardContext.invoke(StandardContext.java:23
47)
> at
>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav
a:18
>0
>)
> at
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j
ava:
>5
>66)
> at
>org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherV
alve
>.
>java:170)
> at
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j
ava:
>5
>64)
> at
>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav
a:17
>0
>)
> at
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j
ava:
>5
>64)
> at
>org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:46
8)
> at
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j
ava:
>5
>64)
> at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
472)
> at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
>org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve
.jav
>a
>:174)
> at
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j
ava:
>5
>66)
> at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
472)
> at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
>org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.
java
>:
>1027)
> at
>org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java
:112
>5
>)
> at java.lang.Thread.run(Thread.java:536)


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>





--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to