Hi everybody,
as posted recently, I am having issues integrating Jax-Rs in Sling.
I narrowed down the problem further and have to admit that I have
difficulties
to understand how the registration of Servlet Filters works in Sling.
In all Sling-Versions that i tried (launchpad-6-standalone/engine-2.2.2,
Karaf/engine-2.2.2, Karaf/engine-2.0.6)
the org.apache.sling.jaxrs.wink.JaxRsFilter is displayed as a service
under system/console/services.
But only with engine-2.0.6 it is properly displayed in the
"Current Apache Sling Servlet Filter Configuration".
Weird enough that the Filter works in
launchpad-6-standalone/engine-2.2.2 although it is not displayed in the
Servlet Filter Confing (with sling engine 2.0.6 it is working in BOTH
Standalone Launchpad AND in Karaf).
I set a breakpoint in the doFilter and found out that it never gets
called in my Karaf/egine-2.2.2 installation.
Further info:
For Karaf/engine-2.2.2 i installed the feature from
mvn:org.apache.sling/org.apache.sling.launchpad/6/xml/features
And for Karaf/engine-2.0.6 i used
mvn:org.apache.sling/org.apache.sling.launchpad.karaf/1.0.0-SNAPSHOT/xml/features
Any ideas or reommendations where to look? Are there known
inconsistencies in that API among versions?
p.s.:
On my last post i forgot to introduce myself. My name is Marius Giepz
and I am working on an
Opensource BI-Tool in my sparetime. Currently I am doing a POC for a
future platform for that tool,
based on OSGI and Sling/Jackrabbit.