Yes i use web.xml. And i am using spring DM. My current configurations are something like for multiple bundles:
1. web.xml <web-app> <context-param> <param-name>contextClass</param-name> <param-value>org.springframework.osgi.web.context.support.OsgiBundleXmlWebApplicationContext</param-value> </context-param> <context-param> <param-name>contextConfigLocation</param-name> <param-value> classpath:META-INF/spring/logger-rest-context.xml </param-value> </context-param> <filter> <filter-name>springSecurityFilterChain</filter-name> <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class> </filter> .................................................................................. </web-app> 2. MANIFEST.MF entries for OSGi <Web-ContextPath>/css/logger</Web-ContextPath> <Web-Connectors>https-admin</Web-Connectors> <Web-VirtualHosts>localhost</Web-VirtualHosts> <Bundle-ClassPath>.,WEB-INF/classes</Bundle-ClassPath> 3. spring configuration <jaxrs:server id="logServices" address=".............."> </jaxrs:server> How do i allocate its own CXFServlet/Destinations? Could you please direct me with some links of docs if you have? Srikanth Hugar www.gharki.com On Tue, Nov 4, 2014 at 4:05 PM, Sergey Beryozkin <sberyoz...@gmail.com> wrote: > 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 Spring DM or Blueprint ? > > Sergey > > > > > On 04/11/14 10:25, Srikanth Hugar wrote: > >> 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 >> <Web-ContextPath>/css/dc</Web-ContextPath> >> >> war2 >> <Web-ContextPath>/css/logger</Web-ContextPath> >> >> >> But my existing bundles have something like below with JAX-RS >> >> >> <jaxrs:server id="logServices" address="/css/dc"> >> ............................. >> </jaxrs:server> >> >> >> <jaxrs:server id="logServices" address="/css/logger"> >> ............................. >> </jaxrs:server> >> >> >> If i change path to "/" as mentioned below in both WAB, it fails with same >> address error which is expected. >> <jaxrs:server id="logServices" address=""> >> ............................. >> </jaxrs:server> >> >> How do i configure my WAB's in above mentioned scenario? >> >> Srikanth Hugar >> www.gharki.com >> >> >> >> On Tue, Nov 4, 2014 at 3:42 PM, Sergey Beryozkin <sberyoz...@gmail.com> >> wrote: >> >> 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 spring security and want to run with different Web-Connectors. >>>> >>>> When i convert the bundles to WAB by specifying the Web-ContextPath >>>> and Web-Connectors. >>>> >>>> But now i have to change the JAX-RS address to "/" or something, this >>>> will >>>> surely fail because of same address. >>>> >>>> Anybody tried this combination earlier? If yes, how to use JAX-RS along >>>> with WAB? >>>> >>>> Are you referring to a Web Application Bundle approach ? Yes, I tried >>>> it >>>> >>> with both Spring DM and Blueprint. Can you clarify what path conflicts >>> are >>> you referring to, type some example please >>> >>> Cheers, Sergey >>> >>> >> >