jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Stewart" <jason.e.stew...@gmail.com>
Subject java.lang.ClassNotFoundException: org.apache.cactus.server.FilterTestRedirector
Date Wed, 29 Mar 2006 07:43:27 GMT
Hey all,

After setting up my project to use cactus many months ago, I had to
stop integration. I recently resumed and started getting the following
exceptions from my <cactus> task:

   [cactus] StandardContext[/pantoto-2005-06-09-cactified]: Exception
starting filter FilterRedirector: java.lang.ClassNotFoundException:
org.apache.cactus.server.FilterTestRedirector
   [cactus] java.lang.ClassNotFoundException:
org.apache.cactus.server.FilterTestRedirector
   [cactus] 	at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1407)
   [cactus] 	at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1252)
   [cactus] 	at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:205)
   [cactus] 	at
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:280)
   [cactus] 	at
org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:73)
   [cactus] 	at
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3101)
   [cactus] 	at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3558)
   [cactus] 	at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:774)
   [cactus] 	at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:760)
   [cactus] 	at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:548)
   [cactus] 	at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:260)
   [cactus] 	at
org.apache.catalina.core.StandardHost.install(StandardHost.java:741)
   [cactus] 	at
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:445)
   [cactus] 	at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:353)
   [cactus] 	at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:671)
   [cactus] 	at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
   [cactus] 	at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
   [cactus] 	at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1149)
   [cactus] 	at
org.apache.catalina.core.StandardHost.start(StandardHost.java:707)
   [cactus] 	at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141)
   [cactus] 	at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:316)
   [cactus] 	at
org.apache.catalina.core.StandardService.start(StandardService.java:450)
   [cactus] 	at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2143)
   [cactus] 	at org.apache.catalina.startup.Catalina.start(Catalina.java:463)
   [cactus] 	at org.apache.catalina.startup.Catalina.execute(Catalina.java:350)
   [cactus] 	at org.apache.catalina.startup.Catalina.process(Catalina.java:129)
   [cactus] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   [cactus] 	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   [cactus] 	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   [cactus] 	at java.lang.reflect.Method.invoke(Method.java:324)
   [cactus] 	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156)


I can eliminate the error and get cactus running by opening up my
cactified war file, editing the web.xml file and removing the
following:

    <filter>
        <filter-name>FilterRedirector</filter-name>
        <filter-class>org.apache.cactus.server.FilterTestRedirector</filter-class>
    </filter>
    <filter-mapping>
        <filter-name>FilterRedirector</filter-name>
        <url-pattern>/FilterRedirector</url-pattern>
    </filter-mapping>

Two questions:
* why is this creating a problem?
* how can I keep cactus from adding these lines to my web.xml and
still use the <cactifywar> task?

Thanks, jas.

Mime
View raw message