Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-4203

CXF bundle need to imports the jaas related package

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.4.7, 2.5.3
    • Component/s: OSGi
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      When I try to publish the JAXRS example with basic http authentication from blueprint, I got the complain that some jaas related packages can not be load by cxf bundle.

      Caused by: java.lang.ClassNotFoundException: org.apache.karaf.jaas.modules.RolePrincipal not found by org.apache.cxf.bundle [158]
      	at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1461)
      	at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:73)
      	at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1844)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
      	at org.apache.felix.framework.Felix.loadBundleClass(Felix.java:1745)
      	at org.apache.felix.framework.BundleImpl.loadClass(BundleImpl.java:929)
      	at org.ops4j.pax.swissbox.core.BundleClassLoader.findClass(BundleClassLoader.java:176)
      	at org.ops4j.pax.swissbox.core.BundleClassLoader.loadClass(BundleClassLoader.java:194)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
      	at org.eclipse.jetty.plus.jaas.JAASLoginService.getGroups(JAASLoginService.java:294)
      	... 39 more
      

      BY adding the packages of "org.eclipse.jetty.plus.jaas" and "org.apache.karaf.jaas.modules" into the dynamic import section of cxf bundle can fix the issue.

        Attachments

          Activity

            People

            • Assignee:
              njiang Willem Jiang
              Reporter:
              njiang Willem Jiang

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment