users@jersey.java.net

using multiple filters

From: Jon Stritar <jstritar_at_reloadnyc.com>
Date: Sun, 31 May 2009 14:05:28 -0400

How do you initialize the jersey servlet with multiple
ContainerRequestFilters or ContainerResponseFilters? I've tried passing
lists inside the init-param, but no luck. I'm guessing my syntax is
wrong:

<init-param>
<param-name>com.sun.jersey.spi.container.ContainerRequestFilters</param-name>
<param-value>
<list>
   <value>com.sun.jersey.api.container.filter.LoggingFilter</value>
   <value>com.test.TestFilter</value>
</list>
</param-value>
</init-param>


Each works individually, but when together Jersey interprets the names
incorrectly:

SEVERE: The class com.sun.jersey.api.container.filter.LoggingFilter
                     com.test.TestFilter could not be found. This class is ignored.


Thanks!

-- 
Jon Stritar
World Evolved Services, LLC
The information contained in this communication may be confidential, is
intended only for the use of the recipient named above, and may be
legally privileged. If the reader of this message is not the intended
recipient, please note that any dissemination, distribution, or copying
of this communication, or any of its contents, is strictly prohibited.
If you have received this communication in error, please re-send this
communication to the sender and delete the original message and any copy
of it from your computer system.