tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "GOMEZ Henri" <hgo...@slib.fr>
Subject Problems with RPM
Date Tue, 19 Feb 2002 14:39:36 GMT
Nice page :)

I read :


Tomcat 4.0.2 -- RPM Version
javax.servlet.ServletException: sun/tools/javac/Main
JSP examples will not execute in the default installation.  To "fix" the problem, 
you need to manually create a symbolic link between the JAVA_HOME/lib/tools.jar and 
the CATALINA_HOME/lib.  In my case, I created the following:
ln -s /usr/local/java/lib/tools.jar tools.jar
in the /var/tomcat4/lib directory.  After creating the symbolic link, you must stop and 
start the Tomcat service.  Execute tomcat4 stop and then tomcat4 start from the command line.

=> Fixed in RPM 4.0.2 release 3 (my fault ;()
   will be release before end of day (CET)

Tomcat 4.0.2 -- RPM Version
su: warning: cannot change directory to /var/tomcat: No such file or directory
This problem is caused by a bug in the Tomcat4 install RPM file.  
The RPM file creates a new user called tomcat4 but sets the working directory incorrectly.

=> Fixed in RPM 4.0.2 release 2 ;)

---

Tomcat 4.0.2 -- RPM Version
ConnectionException
The java.net.ConnectionException error can be difficult to troubleshoot. 
After hours of troubleshooting, I carefully reviewed the catalina.out log file in $CATALINA_HOME/logs.
 
As a result, I commented out the Tomact-Apache Service definition in server.xml.  
This definition is near the end of the file and begins with a <Service name=Tomcat-Apache>

tag and ends with the </Service> tag. Do not comment out the final </Server> tag
or the XML 
file cannot be read.  Save the server.xml file.  Run tomcat4 stop. Run tomcat4 start.

=> The webapp connector could be removed if you don't have an Apache with mod_webapp
   module to speak with. BTW, what's the problem with ConnectionException.

For Apache or IIS or iPlanet users, you could use ajp13 :

    <!-- Define an AJP 1.3 Connector on port 8109 -->
    <Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
               port="8109" minProcessors="5" maxProcessors="75"
               acceptCount="10" debug="0"/>

The default port for Ajp13 in RPM is 8109, to avoid conflict with
a running Tomcat 3.2 or 3.3 which listen on 8009

Regards

>
>I agree.  I posted the solution on my web site:
>http://www.shannonbrown.net/resources/linux-resources.htm
>in case other people need this resolution.
>
>I combed through the scripts but do not yet see where the problem occurs
>with the CLASSPATH.



||||||||||||||||||||||||||||||||||||||||||||
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 9:05 AM
To: 'Tomcat Users List'
Subject: RE: Still Need Help RE: Tomcat 4_0_2 JSP Does Not Work in
Default


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>


Mime
View raw message