Thank you very much Karel. This is the first time I have seen
PrototypeServiceFactory. I did manage to get everything registered and it
seems to work but it is not very stable running on windows. I get the
error message registered in SERVER runtime does not implement any provider
interfaces
Note that you can register your filter to both contexts by using a
wildcard filter
"(osgi.http.whiteboard.context.name=*)" . Your filter will both
be activated in the whiteboard (default) context and in the api
context ("org.osgi.service.http").
In this case you probably want to
Hi David,
I don't know the osgi-jax-rs-connector you're using but based on the issues
I'd think it's using the HttpService (or Felix Whiteboard implementation).
In that case you need to add a servlet context select filter to you servlet
to make it use the same servlet context as the jax-rs
I seem to be bumping into a different problem. Similar to this
https://github.com/hstaudacher/osgi-jax-rs-connector/issues/99 where an
issue was opened here https://issues.apache.org/jira/browse/FELIX-4904 but
is closed for the version that I am using. My filter is getting called
when going to
I found the issue. It was in the context name. It is working now. Thank
you so much for pointing me in the right direction.
On Mon, Apr 25, 2016 at 12:56 PM, David Daniel
wrote:
> I think I see the pertinent error message.
>
> [main] DEBUG
I think I see the pertinent error message.
[main] DEBUG org.apache.felix.http.jetty - Ignoring unmatched Filter
service [javax.servlet.Filter]
Is it because I try to pick up / on my filter pattern.
On Mon, Apr 25, 2016 at 12:47 PM, David Daniel
wrote:
> Carsten,
>
Carsten,
I tried to register as a whiteboard service for the filter like this
final HazelcastSessionFilter sessionFilter = new
HazelcastSessionFilter();
final Dictionary filter1Props = new
Hashtable();
David Daniel wrote
> I noticed ExtHttpService is deprecated. Is there a better way to register
> a filter now than the example here
> http://felix.apache.org/documentation/subprojects/apache-felix-http-service.html
>
Yes, the documentation is totally outdated. There is the Http Whiteboard
I noticed ExtHttpService is deprecated. Is there a better way to register
a filter now than the example here
http://felix.apache.org/documentation/subprojects/apache-felix-http-service.html
Thanks for any help,
David
9 matches
Mail list logo