Hi,
it works now in Websphere. But you must note 2 thinks:
1. File Serving mustt be special enable in your webapp under websphere
2. When you use jersey servlet container as filter, ther ist a bug in
websphere:
http://www-01.ibm.com/support/docview.wss?rs=180&uid=swg1PK31377
Regards,
Robert
On May 8, 2009, at 9:08 PM, Robert Naczinski wrote:
> Hi,
>
> I can it make on monday.
OK.
> One infomation: our app runs on websphere. Is
> this a problem?
>
Not sure yet, depends if i can reproduce using a simple project you
provide :-)
FWIW Jersey is using standard Servlet features.
Paul.
> Happy weekend.
>
> Robert
>
> 2009/5/8 Paul Sandoz <Paul.Sandoz_at_sun.com>:
>>
>> On May 7, 2009, at 2:00 PM, Robert Naczinski wrote:
>>
>>> Hi,
>>>
>>> is this feauture only for Jersey 1.1? We use 1.0.3, but that don't
>>> works
>>>
>>
>> The feature was implemented in 1.0.3.
>>
>> Can you send me your web.xml or a simple project that reproduces
>> the issue?
>>
>> Paul.
>>
>>> Regards,
>>>
>>> Robert
>>>
>>> 2009/5/7 Robert Naczinski <robert.naczinski_at_googlemail.com>:
>>>>
>>>> Hi,
>>>>
>>>> thanx for yout answer.But, when I configure
>>>> com.sun.jersey.spi.container.servlet.ServletContainer as a filter,
>>>> ther no ressources found.
>>>>
>>>> When I use a servlet, its OK.
>>>>
>>>> Has anybody any idea?
>>>>
>>>> Regards,
>>>>
>>>> Robert
>>>>
>>>> 2009/5/6 Paul Sandoz <Paul.Sandoz_at_sun.com>:
>>>>>
>>>>> Hi Robert,
>>>>>
>>>>> It is possible to use the ServletContainer as a filter.
>>>>>
>>>>> See the bookstore sample [1], specifically the web.xml
>>>>>
>>>>>
>>>>> http://fisheye4.atlassian.com/browse/~raw,r=2009/jersey/trunk/
>>>>> jersey/samples/bookstore/src/main/webapp/WEB-INF/web.xml
>>>>>
>>>>> notice the init param:
>>>>>
>>>>> <init-param>
>>>>>
>>>>>
>>>>> <param-name>com.sun.jersey.config.property.WebPageContentRegex</
>>>>> param-name>
>>>>> <param-value>/(images|css|jsp)/.*</param-value>
>>>>> </init-param>
>>>>>
>>>>> that declares a regex to match against the request URL path. If
>>>>> the
>>>>> regex
>>>>> matches then Jersey will pass the request on to the next filter
>>>>> in the
>>>>> chain:
>>>>>
>>>>>
>>>>> https://jersey.dev.java.net/nonav/apidocs/1.1.0-ea/jersey/com/sun/jersey/spi/container/servlet/ServletContainer.html
>>>>> #PROPERTY_WEB_PAGE_CONTENT_REGEX
>>>>>
>>>>> In the bookstore sample the regex matches directions that contain
>>>>> images,
>>>>> CSS files, and JSP files.
>>>>>
>>>>> Paul.
>>>>>
>>>>> [1]
>>>>>
>>>>> http://download.java.net/maven/2/com/sun/jersey/samples/bookstore/1.1.0-ea/bookstore-1.1.0-ea-project.zip
>>>>>
>>>>> On May 6, 2009, at 6:14 PM, Robert Naczinski wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> how I can serve resources in my Jersey web-app. In web.xml I have
>>>>>> mapped ServletContainer to /*
>>>>>>
>>>>>> I mean: how make other files servable ( i.e. *.pdf or *.png or
>>>>>> *.doc )
>>>>>>
>>>>>> Has enybody any ideeas?
>>>>>>
>>>>>> Regards,
>>>>>>
>>>>>> Robert
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
>>>>>> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>>>>>>
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
>>>>> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>>>>>
>>>>>
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
>>> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
>> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>