Re: running examples in Tomcat 4.0 b5

2001-06-15 Thread Marc-andre Thibodeau


OK, I have several ClassCastExceptions trying to run examples in Tomcat 4.0
b5, all related to filters.  I suppose it's a classpath thing...

1)  Where should I put the servlet.jar downloaded with the binary
distribution of Tomcat 4 (jakarta-servletapi-4.0-b5) ?

2)  Is there any other jar file I need to execute the examples??

3)  I feel documentation is incomplete on Tomcat 4.0 installation (IMHO)

MA


Luba Powell wrote:

 This is where you start.  Under \conf\server.xml
 find
 !-- Tomcat Examples Context --
 Context path=/examples docBase=examples debug=2

 bumpup debug level to 99 or higher than 2.
 Then examine your logs.

 - Original Message -
 From: Marc-andre Thibodeau [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, June 14, 2001 4:44 PM
 Subject: running examples in Tomcat 4.0 b5

 
  Hi there!
 
  I just installed Tomcat 4.0 b5 on linux and I just cannot run the
  examples included in the binary bundle...
  When I connect to http://localhost:8080/examples/jsp, I receive the
  following error message:
 
  HTTP Status 503 - This application is not currently available
  The requested service (This application is not currently available) is
  not currently available.
 
 
  The HTML content is served normally, but all JSPs and Servlets do not
  work...
  Anybody has an idea?
 
  MA
 




I need help!!

2001-06-15 Thread Marc-andre Thibodeau


I spent too many hours trying to solve my problem.  The next step will
be a psychotherapist!

Here is all I did:

Trying to install:  Tomcat 4.0 b5
JDK:  1.3.0
OS: Linux 6.1
downloaded:  jakarta-tomcat-4.0-b5.zipjakarta-servletapi-4.0-b5.zip

unzipped both of them
set CATALINA_HOME correctly
set JAVA_HOME correctly
set TOMCAT_HOME to same directory as CATALINA_HOME
put servlet.jar file downloaded in $CATALINA_HOME/lib
executed $CATALINA_HOME/bin/startup.sh

and here's the important parts of the logfiles I get:

localhost_examples_log.2001-06-15.txt
-
2001-06-15 10:30:12 StandardContext[/examples]: Exception starting
filter Compression Filter
java.lang.ClassCastException: compressionFilters.CompressionFilter
at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:250)

at
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:311)

(... and other ClassCastExceptions, all related to filters)

localhost_log_2001-06-15.txt
--
2001-06-15 10:49:34 StandardContext[]: Servlet  threw load() exception
javax.servlet.ServletException: Class
org.apache.jasper.servlet.JspServlet is not a Servlet
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:813)

- Root Cause -
java.lang.ClassCastException: org.apache.jasper.servlet.JspServlet
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:810)

(... and other ServletExceptions)

If anybody can help, I would appreciate it a lot!

MA




Re: I need help!!

2001-06-15 Thread Marc-andre Thibodeau


I LOVE YOU!!!

It was because of the servlet.jar!  I just deleted it and now it works!!!
But could somebody tell me what is the point of putting a tomcat version with
an incompatible version of the servlet api in the same download directory???
grrr...

Well, I feel better now!

Thanks a lot!

MA

Luba Powell wrote:

 Could it be that those packages have incompatible classes:
 jakarta-tomcat-4.0-b5.zipjakarta-servletapi-4.0-b5.zip

 Why do you need jakarta-servletapi?  tomcat supports servlets.

 - Original Message -
 From: Marc-andre Thibodeau [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, June 15, 2001 10:54 AM
 Subject: I need help!!

 
  I spent too many hours trying to solve my problem.  The next step will
  be a psychotherapist!
 
  Here is all I did:
 
  Trying to install:  Tomcat 4.0 b5
  JDK:  1.3.0
  OS: Linux 6.1
  downloaded:  jakarta-tomcat-4.0-b5.zipjakarta-servletapi-4.0-b5.zip
 
  unzipped both of them
  set CATALINA_HOME correctly
  set JAVA_HOME correctly
  set TOMCAT_HOME to same directory as CATALINA_HOME
  put servlet.jar file downloaded in $CATALINA_HOME/lib
  executed $CATALINA_HOME/bin/startup.sh
 
  and here's the important parts of the logfiles I get:
 
  localhost_examples_log.2001-06-15.txt
  -
  2001-06-15 10:30:12 StandardContext[/examples]: Exception starting
  filter Compression Filter
  java.lang.ClassCastException: compressionFilters.CompressionFilter
  at
 
 org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilter
 Config.java:250)
 
  at
 
 org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFil
 terConfig.java:311)
 
  (... and other ClassCastExceptions, all related to filters)
 
  localhost_log_2001-06-15.txt
  --
  2001-06-15 10:49:34 StandardContext[]: Servlet  threw load() exception
  javax.servlet.ServletException: Class
  org.apache.jasper.servlet.JspServlet is not a Servlet
  at
  org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:813)
 
  - Root Cause -
  java.lang.ClassCastException: org.apache.jasper.servlet.JspServlet
  at
  org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:810)
 
  (... and other ServletExceptions)
 
  If anybody can help, I would appreciate it a lot!
 
  MA
 




running examples in Tomcat 4.0 b5

2001-06-14 Thread Marc-andre Thibodeau


Hi there!

I just installed Tomcat 4.0 b5 on linux and I just cannot run the
examples included in the binary bundle...
When I connect to http://localhost:8080/examples/jsp, I receive the
following error message:

HTTP Status 503 - This application is not currently available
The requested service (This application is not currently available) is
not currently available.


The HTML content is served normally, but all JSPs and Servlets do not
work...
Anybody has an idea?

MA