tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jolet, John" <John.Jo...@misyshealthcare.com>
Subject RE: Still Need Help RE: Tomcat 4_0_2 JSP Does Not Work in Default
Date Tue, 19 Feb 2002 14:04:35 GMT
i agree, that fixed it for me, too.  However, this behavior is NOT what the
documentation says to expect.  I would consider this a bug, since it is not,
in fact building my classpath to include $JAVA_HOME/lib/tools.jar as the
docs say.

-----Original Message-----
From: Shannon Brown [mailto:replies@shannonbrown.net]
Sent: Tuesday, February 19, 2002 8:09 AM
To: Tomcat Users List
Subject: RE: Still Need Help RE: Tomcat 4_0_2 JSP Does Not Work in
Default
Importance: High


Thanks to all.  I would not say that this is the "right" solution, but it is
a solution.

Add a symbolic link in the /var/tomcat4/lib directory to the tools.jar file
in the java directory.  In my case, this was:
ln -s /usr/local/java/lib/tools.jar tools.jar
I stopped and restarted Tomcat.

The problem does seem to be resolved.

This is rather odd, however, and I am concerned about future upgrades.  The
classpath is obliterated (I edited my dtomcat4 script to display the
environment variables).  I do not, however, see where this occurs.

||||||||||||||||||||||||||||||||||||||||||||
Shannon Brown
  Internet Technologies Architect
  Business Technologies Advisor
    www.shannonbrown.net
    info@shannonbrown.net
    717.665.5656
||||||||||||||||||||||||||||||||||||||||||||

-----Original Message-----
From: Jolet, John [mailto:John.Jolet@misyshealthcare.com]
Sent: Tuesday, February 19, 2002 8:49 AM
To: 'Tomcat Users List'
Subject: RE: Still Need Help RE: Tomcat 4_0_2 JSP Does Not Work in
Default


okay, but according to the docs, the start script throws away your classpath
and rebuilds it....where do I put the entry in that case?  you mean i should
copy the tools.jar to the tomcat/lib directory?  would a symlink work?

-----Original Message-----
From: rsequeira@transentric.com [mailto:rsequeira@transentric.com]
Sent: Tuesday, February 19, 2002 7:53 AM
To: Tomcat Users List
Subject: Re: Still Need Help RE: Tomcat 4_0_2 JSP Does Not Work in
Default



Trying adding tools.jar to your classpath or better still in the Tomcat/lib
directory.
Thanks.
RS




"Shannon Brown" <replies@shannonbrown.net> on 02/19/2002 07:09:21 AM

Please respond to "Tomcat Users List" <tomcat-user@jakarta.apache.org>

To:   "Tomcat Users List" <tomcat-user@jakarta.apache.org>
cc:

Subject:  Still Need Help RE: Tomcat 4_0_2 JSP Does Not Work in Default

I re-ran the application this morning and am getting the
sun/tools/javac/Main error.  (This was not appearing yesterday.  I am using
JDK 1.4.0 final and Tomcat 4.0.2 RPM version.

Very odd.  Servlets run fine.



javax.servlet.ServletException: sun/tools/javac/Main
           at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:485)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java)
           at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application

FilterChain.java:247)
           at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh

ain.java:193)
           at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja

va:243)
           at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java: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(StandardContextValve.ja

va:190)
           at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5

66)
           at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase

.java:475)
           at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5

64)
           at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2

46)
           at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java: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:2343)
           at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180

)
           at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5

66)
           at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.

java:170)
           at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5

64)
           at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170

)
           at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5

64)
           at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
           at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java: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.java

:174)
           at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java: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:

1012)
           at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107

)
           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:552)
           at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe

rvlet.java:177)
           at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja

va:189)
           at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
           at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java)
           at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application

FilterChain.java:247)
           at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh

ain.java:193)
           at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja

va:243)
           at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java: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(StandardContextValve.ja

va:190)
           at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5

66)
           at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase

.java:475)
           at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5

64)
           at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2

46)
           at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java: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:2343)
           at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180

)
           at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5

66)
           at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.

java:170)
           at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5

64)
           at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170

)
           at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5

64)
           at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
           at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java: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.java

:174)
           at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java: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:

1012)
           at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107

)
           at java.lang.Thread.run(Thread.java:536)


||||||||||||||||||||||||||||||||||||||||||||
Shannon Brown
  Internet Technologies Architect
  Business Technologies Advisor
    www.shannonbrown.net
    info@shannonbrown.net
    717.665.5656
||||||||||||||||||||||||||||||||||||||||||||

-----Original Message-----
From: Jolet, John [mailto:John.Jolet@misyshealthcare.com]
Sent: Tuesday, February 19, 2002 2:58 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat 4_0_2 JSP Does Not Work in Default


i think i'm seeing this, too, although it ran out of the box....if you
compile the java files under the work tree, do they run?  they do for me,
just won't autocompile...is the error telling you classnotfound exeption in
sun/tools/javac/Main?

-----Original Message-----
From: Shannon Brown [mailto:replies@shannonbrown.net]
Sent: Monday, February 18, 2002 5:11 PM
To: Tomcat Users List
Subject: Tomcat 4_0_2 JSP Does Not Work in Default


Tomcat 4.0.2
Sun JDK 1.4.0 Final
Apache 1.3
RedHat Linux 7.2

What I Did:
I had a working installation of Tomcat 4.0.1 this morning.  I downloaded
and
installed the new 4.0.2 RPMs.  The RPMs would not run out-of-the-box.  I
had
to comment out the Tomcat-Apache Section of server.xml to get the Tomcat
Service to start.

Tomcat is running (ps -A).  I see the default index.html page for the
examples section.  I can run the servlet examples without any problems.
However, when I try to run the JSP examples, I get an error message.
Checking the logs, any JSP invocation is throwing a 500 error.

Not sure why and really do not know where to begin since everything else
(finally) seems to be running.

||||||||||||||||||||||||||||||||||||||||||||
Shannon Brown
  Internet Technologies Architect
  Business Technologies Advisor
    www.shannonbrown.net
    info@shannonbrown.net
    717.665.5656
||||||||||||||||||||||||||||||||||||||||||||



--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>

--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>



--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>









--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>

--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>



--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>

--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message