[ https://issues.apache.org/jira/browse/CXF-6292?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14701337#comment-14701337 ]
Sergey Beryozkin commented on CXF-6292: --------------------------------------- FYI, I'll need to set the default init-prefix value to "", to have it consistent with 3.0.x/3.1.x. Also, can you check https://issues.apache.org/jira/browse/CXF-6547 In that issue the init-prefix is set to "" to make things work, I'm not sure I follow why it may need to be set to "" in one case (in fact this was the default value in 2.7.x) and to a non empty value in your case... > Init parameters on OSGi service are not picked up > ------------------------------------------------- > > Key: CXF-6292 > URL: https://issues.apache.org/jira/browse/CXF-6292 > Project: CXF > Issue Type: Bug > Components: JAX-RS, Transports > Affects Versions: 2.7.15 > Reporter: Jostein Gogstad > Assignee: Sergey Beryozkin > Fix For: 2.7.16 > > > File: > https://github.com/apache/cxf/blob/cxf-2.7.15/rt/transports/http/src/main/resources/OSGI-INF/blueprint/osgiservlet.xml > I _assume_ that the properties set on the service are init-params to > {{org.apache.cxf.transport.servlet.ServletController}}. Some frameworks, > pax-web-extender-whiteboard in my case, require one of the following for init > parameters > # init-params are prefixed with {{init.}} OR > # There's a property {{init-prefix}} on the service specifying the prefix. > This property may be blank > With the service as it stands no parameters are set on the servlet by > pax-web-extender-whiteboard. They are skipped at this if-statement: > https://github.com/ops4j/org.ops4j.pax.web/blob/master/pax-web-extender-whiteboard/src/main/java/org/ops4j/pax/web/extender/whiteboard/internal/tracker/ServletTracker.java#L180-L182 > > This makes it impossible to secure the servlet. -- This message was sent by Atlassian JIRA (v6.3.4#6332)