4 Replies Latest reply on Apr 1, 2002 4:45 PM by javaseeds

    Catalina on Mac OS X - filters.SetCharacterEncodingFilter cl

    fadeluca

      I downloaded JBoss2.4.4-Tomcat4.0.1 to try on my iMac at home which is running Mac OS X 10.1. When I try to run the Catalina server by itself, I can bring up the index page, but if I try to access the examples/jsp or examples/servlets, I get an HTTP status 404 error. Looking at the logs, I found the following error in the

      localhost_examples_log.2002-03-16.txt

      file:

      2002-03-16 22:10:34 StandardContext[/examples]: Exception starting filter Set Character Encoding
      java.lang.ClassNotFoundException: filters.SetCharacterEncodingFilter
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1307)
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1156)
      at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:252)
      at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:314
      )
      at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:120)
      at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3065)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:3371)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
      at org.apache.catalina.core.StandardHost.start(StandardHost.java:612)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
      at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307)
      at org.apache.catalina.core.StandardService.start(StandardService.java:388)
      at org.apache.catalina.core.StandardServer.start(StandardServer.java:505)
      at org.apache.catalina.startup.Catalina.start(Catalina.java:776)
      at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
      at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)

      2002-03-16 22:10:34 StandardContext[/examples]: Context startup failed due to previous errors
      2002-03-16 22:10:34 SessionListener: contextDestroyed()
      2002-03-16 22:10:34 ContextListener: contextDestroyed()

      It appears that Catalina is expecting to use a class called filters.SetCharacterEncodingFilter, but cannot find it. I have seen some other posts regarding the tools.jar file that normally exists in the libs directory of the JDK installation, but does not exist in this directory under the Mac OS X JDK 1.3.1 installation. Does anyone know if this class file is part of tools.jar? I saw a post from warjort that seemed to indicate this jar file is located elsewhere in Mac OS X installations, but I cannot seem to find it. Since people seem to be running Catalina on Mac OS X, I am hoping someone can help me resolve this problem.

      Thanks