Re: How do i use JAX-RS with WAB in OSGi karaf?

2014-11-04 Thread Sergey Beryozkin
I've no links to any specific docs. AFAIK each web.xml needs to have its own CXFServlet allocated and refer to specific Spring context files, with each of them having the endpoints with non-overlapping address, i.e, you can not have a single logger-rest-context.xml specify multiple endpoints w

Re: How do i use JAX-RS with WAB in OSGi karaf?

2014-11-04 Thread Srikanth Hugar
Yes i use web.xml. And i am using spring DM. My current configurations are something like for multiple bundles: 1. web.xml contextClass org.springframework.osgi.web.context.support.OsgiBundleXmlWebApplicationContext contextConfigLocation classpath:META-INF/spring/logger-rest-context.xml s

Re: How do i use JAX-RS with WAB in OSGi karaf?

2014-11-04 Thread Sergey Beryozkin
Do you use web.xml at all ? Without it, multiple jaxrs:endpoint with the same address would be handled by a default CXF HTTP Transport which has a dedicated CXFServlet so indeed there will be a clash. With web.xml you can have each WAB allocating its own CXFServlet/Destinations. Is it Sprin

Re: How do i use JAX-RS with WAB in OSGi karaf?

2014-11-04 Thread Srikanth Hugar
Lets say i have two REST Web Application Bundles. one with path "/css/logger" and another with path "/css/dc" When i want to convert as WAB, i may configure something like below: war1 /css/dc war2 /css/logger But my existing bundles have something like below with JAX-RS

Re: How do i use JAX-RS with WAB in OSGi karaf?

2014-11-04 Thread Sergey Beryozkin
Hi On 04/11/14 09:50, Srikanth Hugar wrote: I have a existing multiple REST services with bundle using JAX-RS with different addresses. Hence it works fine because in JAX-RS address i specify the different addresses. But now i want to convert my bundles to WAB because i want to integrate with sp

How do i use JAX-RS with WAB in OSGi karaf?

2014-11-04 Thread Srikanth Hugar
I have a existing multiple REST services with bundle using JAX-RS with different addresses. Hence it works fine because in JAX-RS address i specify the different addresses. But now i want to convert my bundles to WAB because i want to integrate with spring security and want to run with different W