Alex,
Thanks for the interest. See below.
Best wishes,
--greg
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"
http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<filter>
<filter-name>JerseyFilter</filter-name>
<display-name>Jersey Filter</display-name>
<description>Attempting to use Jersey as a Filter</description>
<filter-class>com.sun.jersey.spi.container.servlet.ServletContainer</filter-class>
</filter>
<filter>
<filter-name>LiftFilter</filter-name>
<display-name>Lift Filter</display-name>
<description>The Filter that intercepts lift calls</description>
<filter-class>net.liftweb.http.LiftFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>JerseyFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>LiftFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
</web-app>
On Mon, Mar 2, 2009 at 4:43 PM, Alex Boisvert <boisvert_at_intalio.com> wrote:
> Can you post your web.xml?
>
>
>
> On Mon, Mar 2, 2009 at 3:50 PM, Meredith Gregory <lgreg.meredith_at_gmail.com
> > wrote:
>
>> Marc,
>>
>> Thanks for the link! BTW, i'm looking at that sources from the Jersey jar
>> and it appears that com.sun.jersey.spi.container.servlet.ServletContainer
>> implements Filter. And yet, when i launch with jetty i get:
>>
>> 2009-03-02 15:46:18.043::WARN: failed JerseyFilter
>> java.lang.IllegalStateException: class
>> com.sun.jersey.spi.container.servlet.ServletContainer is not a
>> javax.servlet.Filter
>> at
>> org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:88)
>>
>> Best wishes,
>>
>> --greg
>>
>> On Mon, Mar 2, 2009 at 2:16 PM, Marc Hadley <Marc.Hadley_at_sun.com> wrote:
>>
>>> Apache Camel uses Jersey as a filter:
>>>
>>>
>>> https://svn.apache.org/repos/asf/camel/trunk/components/camel-web/src/main/webapp/WEB-INF/web.xml
>>>
>>> Marc.
>>>
>>>
>>> On Mar 2, 2009, at 4:46 PM, Meredith Gregory wrote:
>>>
>>> Jerseyans,
>>>>
>>>> Does anyone have any experience with using Jersey as a filter? i'd like
>>>> to take advantage of some of Jersey's Request/Response rendering as well as
>>>> some of Lift's cool stuff. The Lift servlet is a filter and deployed as
>>>> such. i note that the com/sun/jersey/spi/container/servlet/ServletContainer
>>>> implements Filter. However, i have yet to find an example of Jersey deployed
>>>> in a filter capacity. If anyone has used Jersey this way, please let me
>>>> know.
>>>>
>>>> Best wishes,
>>>>
>>>> --greg
>>>>
>>>> --
>>>> L.G. Meredith
>>>> Managing Partner
>>>> Biosimilarity LLC
>>>> 806 55th St NE
>>>> Seattle, WA 98105
>>>>
>>>> +1 206.650.3740
>>>>
>>>> http://biosimilarity.blogspot.com
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
>>> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>>>
>>>
>>
>>
>> --
>> L.G. Meredith
>> Managing Partner
>> Biosimilarity LLC
>> 806 55th St NE
>> Seattle, WA 98105
>>
>> +1 206.650.3740
>>
>> http://biosimilarity.blogspot.com
>>
>>
>>
>
> --~--~---------~--~----~------------~-------~--~----~
> You received this message because you are subscribed to the Google Groups
> "Lift" group.
> To post to this group, send email to liftweb_at_googlegroups.com
> To unsubscribe from this group, send email to
> liftweb+unsubscribe_at_googlegroups.com<liftweb%2Bunsubscribe_at_googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/liftweb?hl=en
> -~----------~----~----~----~------~----~------~--~---
>
>
--
L.G. Meredith
Managing Partner
Biosimilarity LLC
806 55th St NE
Seattle, WA 98105
+1 206.650.3740
http://biosimilarity.blogspot.com