You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Willem Jiang (Created) (JIRA)" <ji...@apache.org> on 2012/03/26 09:22:31 UTC
[jira] [Created] (CXF-4203) CXF bundle need to imports the jaas
related package
CXF bundle need to imports the jaas related package
---------------------------------------------------
Key: CXF-4203
URL: https://issues.apache.org/jira/browse/CXF-4203
Project: CXF
Issue Type: Bug
Components: OSGi
Affects Versions: 2.5.2, 2.4.6
Reporter: Willem Jiang
Assignee: Willem Jiang
Fix For: 2.4.7, 2.5.3
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.
{code}
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
{code}
BY adding the packages of "org.exclipse.jetty.plus.jaas" and "org.apache.karaf.jaas.modules" into the dynamic import section of cxf bundle can fix the issue.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Reopened] (CXF-4203) CXF bundle need to imports the jaas
related package
Posted by "Willem Jiang (Reopened) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-4203?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Willem Jiang reopened CXF-4203:
-------------------------------
> CXF bundle need to imports the jaas related package
> ---------------------------------------------------
>
> Key: CXF-4203
> URL: https://issues.apache.org/jira/browse/CXF-4203
> Project: CXF
> Issue Type: Bug
> Components: OSGi
> Reporter: Willem Jiang
> Assignee: Willem Jiang
> Fix For: 2.4.7, 2.5.3
>
>
> 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.
> {code}
> 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
> {code}
> 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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CXF-4203) CXF bundle need to imports the jaas
related package
Posted by "Willem Jiang (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-4203?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Willem Jiang updated CXF-4203:
------------------------------
Comment: was deleted
(was: sorry, it's a false alarm.
The error is introduced by other classloader hacking.
I just test my application with karaf 2.2.5 and CXF 2.5.3, it works.)
> CXF bundle need to imports the jaas related package
> ---------------------------------------------------
>
> Key: CXF-4203
> URL: https://issues.apache.org/jira/browse/CXF-4203
> Project: CXF
> Issue Type: Bug
> Components: OSGi
> Reporter: Willem Jiang
> Assignee: Willem Jiang
> Fix For: 2.4.7, 2.5.3
>
>
> 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.
> {code}
> 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
> {code}
> 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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CXF-4203) CXF bundle need to imports the jaas
related package
Posted by "Willem Jiang (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-4203?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Willem Jiang updated CXF-4203:
------------------------------
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.
{code}
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
{code}
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.
was:
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.
{code}
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
{code}
BY adding the packages of "org.exclipse.jetty.plus.jaas" and "org.apache.karaf.jaas.modules" into the dynamic import section of cxf bundle can fix the issue.
> CXF bundle need to imports the jaas related package
> ---------------------------------------------------
>
> Key: CXF-4203
> URL: https://issues.apache.org/jira/browse/CXF-4203
> Project: CXF
> Issue Type: Bug
> Components: OSGi
> Affects Versions: 2.4.6, 2.5.2
> Reporter: Willem Jiang
> Assignee: Willem Jiang
> Fix For: 2.4.7, 2.5.3
>
>
> 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.
> {code}
> 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
> {code}
> 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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CXF-4203) CXF bundle need to imports the jaas
related package
Posted by "Willem Jiang (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-4203?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Willem Jiang updated CXF-4203:
------------------------------
Affects Version/s: (was: 2.4.6)
(was: 2.5.2)
The issue was introduced by the code change of CXF-4060 to get the user principal first.
> CXF bundle need to imports the jaas related package
> ---------------------------------------------------
>
> Key: CXF-4203
> URL: https://issues.apache.org/jira/browse/CXF-4203
> Project: CXF
> Issue Type: Bug
> Components: OSGi
> Reporter: Willem Jiang
> Assignee: Willem Jiang
> Fix For: 2.4.7, 2.5.3
>
>
> 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.
> {code}
> 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
> {code}
> 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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (CXF-4203) CXF bundle need to imports the jaas
related package
Posted by "Willem Jiang (Resolved) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-4203?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Willem Jiang resolved CXF-4203.
-------------------------------
Resolution: Fixed
Applied patch into trunk, 2.5.x-fixes and 2.4.x-fixes.
> CXF bundle need to imports the jaas related package
> ---------------------------------------------------
>
> Key: CXF-4203
> URL: https://issues.apache.org/jira/browse/CXF-4203
> Project: CXF
> Issue Type: Bug
> Components: OSGi
> Reporter: Willem Jiang
> Assignee: Willem Jiang
> Fix For: 2.4.7, 2.5.3
>
>
> 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.
> {code}
> 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
> {code}
> 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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (CXF-4203) CXF bundle need to imports the jaas
related package
Posted by "Willem Jiang (Resolved) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-4203?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Willem Jiang resolved CXF-4203.
-------------------------------
Resolution: Cannot Reproduce
sorry, it's a false alarm.
The error is introduced by other classloader hacking.
I just test my application with karaf 2.2.5 and CXF 2.5.3, it works.
> CXF bundle need to imports the jaas related package
> ---------------------------------------------------
>
> Key: CXF-4203
> URL: https://issues.apache.org/jira/browse/CXF-4203
> Project: CXF
> Issue Type: Bug
> Components: OSGi
> Affects Versions: 2.4.6, 2.5.2
> Reporter: Willem Jiang
> Assignee: Willem Jiang
> Fix For: 2.4.7, 2.5.3
>
>
> 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.
> {code}
> 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
> {code}
> 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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira