By Date: <-- -->
By Thread: <-- -->

Problems in TOMCAT



Kevin-

When you deploy Tomcat 5.5 you should have jsp-examples webapp in your webapps folder e.g.
$TOMCAT_HOME/webapps/jsp-examples/WEB-INF/classes/compressionFilters

01/19/2005  04:40 PM             4,025 CompressionFilter.class
01/19/2005  04:40 PM             7,412 CompressionFilter.java
01/19/2005  04:40 PM             1,665 CompressionFilterTestServlet.class
01/19/2005  04:40 PM             1,787 CompressionFilterTestServlet.java

Some snooping about in $TOMCAT_HOME/webapps/jsp-examples/WEB-INF/web.xml you should see this specification

    <filter-mapping>
      <filter-name>Compression Filter</filter-name>
      <url-pattern>/CompressionTest</url-pattern>
    </filter-mapping>


so the resulting url would be displayed at
http://localhost:8080/jsp-examples/CompressionTest

which *should* display the text
gzip, deflate
gzip supported -- able to compress
Compression Filter Test Servletcomprenez?Martin--*********************************************************************
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



  ----- Original Message ----- 
  From: Kevin Mullin 
  To: users (at) tomcat.apache.org 
  Sent: Tuesday, September 19, 2006 5:46 PM
  Subject: Problems in TOMCAT



  I am seeing this in the log that tracks the start of Tomcat: 

  SEVERE: End event threw exception                                   
  java.lang.reflect.InvocationTargetException                         
  .at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source)     
  ...a host of java trace messages ... 
  .at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)           
  Caused by: java.lang.IllegalArgumentException: Servlet mapping specifies an  servlet name CompressionFilterTestServlet 

  I can't find a CompressionFilterTestServlet.class, and besides, if it were missing, I would have expected a classnotfound exception, not this.  Can anybody tell me what this complaining about?



        Kevin Mullin
        Sr. Analyst
        IBM Corporation
        (206) 345-7068
        mullink (at) us.ibm.com