Re: Class not found exception org.apache.karaf.jaas.boot.principal.RolePrincipal
I am able to resolve it by having below Dynamic-Import in my MANIFEST.MF file. DynamicImport-Package: org.apache.karaf.jaas.boot.principal;version=[2.3,3),org.apache.karaf.jaas.config;version=[2.3,3), org.eclipse.jetty.plus.jaas;version=[7.1.0,8.0.0) -- View this message in context: http://karaf.922171.n3.nabble.com/Class-not-found-exception-org-apache-karaf-jaas-boot-principal-RolePrincipal-tp4027557p4027644.html Sent from the Karaf - User mailing list archive at Nabble.com.
Re: Class not found exception org.apache.karaf.jaas.boot.principal.RolePrincipal
Hi, I'm gonna take a look at it as soon as possible :) might take me a bit though, so don't be to impatient with me :) regards, Achim 2013/2/2 siv vasan svasanta@gmail.com Hi, Probably you did not get my attachments. I have uploaded the sample project to GitHub. Link: https://github.com/svasanta/sample Please check this. Thanks -vasanta S On Fri, Feb 1, 2013 at 4:10 PM, siva vasanta svasanta@gmail.com wrote: Hi, Please find the attached sample application. 1. MyTestApp.zip (Eclipse sample project) 2. myrealm.xml - Karaf realm blueprint file. (I have manually copied it to deploy folder) 3. karaf.log - Log with with full stack trace. karaf@root osgi:list START LEVEL 100 , List Threshold: 50 ID State Blueprint Level Name [ 97] [Active ] [Created ] [ 80] myrealm.xml (0.0.0) [ 110] [Active ] [] [ 80] mytestapp (1.0) karaf@root osgi:uninstall 110 karaf@root osgi:install -s webbundle:file:///C:/Users/vasanta/workspace/MyTestApp/target/MyTestApp.war Bundle ID: 111 Thanks -Siva On Fri, Feb 1, 2013 at 3:39 AM, Achim Nierbeck [via Karaf] ml-node+s922171n4027561...@n3.nabble.com wrote: Hi, we had some issues about the visibility of the principals, but this has been fixed for 2.3.0. Could you provide a simple sample for pax-web for so I'm able to integrate it as a itest. regards, Achim 2013/1/31 siv vasan [hidden email] http://user/SendEmail.jtp?type=nodenode=4027561i=0 Hi, I am using karaf 2.3. I am trying to deploying web application on karaf Jetty. It uses JAAS for authentication. I am facing class not found exception. Why is this class not available to my webapp ? Please help on this. Exception: java.lang.RuntimeException: java.lang.ClassNotFoundException: org.apache.karaf.jaas.boot.principal.RolePrincipal not found by mytestapp [106] at org.eclipse.jetty.plus.jaas.JAASLoginService.getGroups(JAASLoginService.java:327)[71:org.eclipse.jetty.plus:7.6.7.v20120910] at org.eclipse.jetty.plus.jaas.JAASLoginService.login(JAASLoginService.java:244)[71:org.eclipse.jetty.plus:7.6.7.v20120910] I added below entry JAAS login service to jetty.xml Call name=addBean Arg New class=org.eclipse.jetty.plus.jaas.JAASLoginService Set name=nameLDPA/Set Set name=loginModuleNameLDAP/Set Set name=roleClassNames Array type=java.lang.String Itemorg.apache.karaf.jaas.boot.principal.RolePrincipal/Item /Array /Set /New /Arg /Call Also added below entry to MANIFEST-INF file. Import-Package: javax.servlet,javax.servlet.annotation,javax.servlet.http,org.apache.commons.logging,org.apache.commons.logging.impl,org.apache.log4j,org.apache.log4j.spi,org.apache.log4j.xml,org.slf4j,org.slf4j.helpers,org.slf4j.spi,org.eclipse.jetty.*,org.eclipse.jetty.plus.jaas.*, org.eclipse.jetty.security.*,org.eclipse.jetty.security.authentication.*,org.apache.karaf.jaas.boot.principal.* -- View this message in context: http://karaf.922171.n3.nabble.com/Class-not-found-exception-org-apache-karaf-jaas-boot-principal-RolePrincipal-tp4027557.html Sent from the Karaf - User mailing list archive at Nabble.com. -- Apache Karaf http://karaf.apache.org/ Committer PMC OPS4J Pax Web http://wiki.ops4j.org/display/paxweb/Pax+Web/ Committer Project Lead OPS4J Pax for Vaadin http://team.ops4j.org/wiki/display/PAXVAADIN/Home Commiter Project Lead blog http://notizblog.nierbeck.de/ -- If you reply to this email, your message will be added to the discussion below: http://karaf.922171.n3.nabble.com/Class-not-found-exception-org-apache-karaf-jaas-boot-principal-RolePrincipal-tp4027557p4027561.html To unsubscribe from Class not found exception org.apache.karaf.jaas.boot.principal.RolePrincipal, click here http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=4027557code=c3Zhc2FudGEudGV6QGdtYWlsLmNvbXw0MDI3NTU3fDMxNDUyNjAxNw== . NAML http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml -- View this message in context: http://karaf.922171.n3.nabble.com/Class-not-found-exception-org-apache-karaf-jaas-boot-principal-RolePrincipal-tp4027557p4027585.html Sent from the Karaf - User mailing list archive at Nabble.com. -- Apache Karaf http
Re: Class not found exception org.apache.karaf.jaas.boot.principal.RolePrincipal
Hi, Probably you did not get my attachments. I have uploaded the sample project to GitHub. Link: https://github.com/svasanta/sample Please check this. Thanks -vasanta S On Fri, Feb 1, 2013 at 4:10 PM, siva vasanta svasanta@gmail.com wrote: Hi, Please find the attached sample application. 1. MyTestApp.zip (Eclipse sample project) 2. myrealm.xml - Karaf realm blueprint file. (I have manually copied it to deploy folder) 3. karaf.log - Log with with full stack trace. karaf@root osgi:list START LEVEL 100 , List Threshold: 50 ID State Blueprint Level Name [ 97] [Active ] [Created ] [ 80] myrealm.xml (0.0.0) [ 110] [Active ] [] [ 80] mytestapp (1.0) karaf@root osgi:uninstall 110 karaf@root osgi:install -s webbundle:file:///C:/Users/vasanta/workspace/MyTestApp/target/MyTestApp.war Bundle ID: 111 Thanks -Siva On Fri, Feb 1, 2013 at 3:39 AM, Achim Nierbeck [via Karaf] ml-node+s922171n4027561...@n3.nabble.com wrote: Hi, we had some issues about the visibility of the principals, but this has been fixed for 2.3.0. Could you provide a simple sample for pax-web for so I'm able to integrate it as a itest. regards, Achim 2013/1/31 siv vasan [hidden email]http://user/SendEmail.jtp?type=nodenode=4027561i=0 Hi, I am using karaf 2.3. I am trying to deploying web application on karaf Jetty. It uses JAAS for authentication. I am facing class not found exception. Why is this class not available to my webapp ? Please help on this. Exception: java.lang.RuntimeException: java.lang.ClassNotFoundException: org.apache.karaf.jaas.boot.principal.RolePrincipal not found by mytestapp [106] at org.eclipse.jetty.plus.jaas.JAASLoginService.getGroups(JAASLoginService.java:327)[71:org.eclipse.jetty.plus:7.6.7.v20120910] at org.eclipse.jetty.plus.jaas.JAASLoginService.login(JAASLoginService.java:244)[71:org.eclipse.jetty.plus:7.6.7.v20120910] I added below entry JAAS login service to jetty.xml Call name=addBean Arg New class=org.eclipse.jetty.plus.jaas.JAASLoginService Set name=nameLDPA/Set Set name=loginModuleNameLDAP/Set Set name=roleClassNames Array type=java.lang.String Itemorg.apache.karaf.jaas.boot.principal.RolePrincipal/Item /Array /Set /New /Arg /Call Also added below entry to MANIFEST-INF file. Import-Package: javax.servlet,javax.servlet.annotation,javax.servlet.http,org.apache.commons.logging,org.apache.commons.logging.impl,org.apache.log4j,org.apache.log4j.spi,org.apache.log4j.xml,org.slf4j,org.slf4j.helpers,org.slf4j.spi,org.eclipse.jetty.*,org.eclipse.jetty.plus.jaas.*, org.eclipse.jetty.security.*,org.eclipse.jetty.security.authentication.*,org.apache.karaf.jaas.boot.principal.* -- View this message in context: http://karaf.922171.n3.nabble.com/Class-not-found-exception-org-apache-karaf-jaas-boot-principal-RolePrincipal-tp4027557.html Sent from the Karaf - User mailing list archive at Nabble.com. -- Apache Karaf http://karaf.apache.org/ Committer PMC OPS4J Pax Web http://wiki.ops4j.org/display/paxweb/Pax+Web/ Committer Project Lead OPS4J Pax for Vaadin http://team.ops4j.org/wiki/display/PAXVAADIN/Home Commiter Project Lead blog http://notizblog.nierbeck.de/ -- If you reply to this email, your message will be added to the discussion below: http://karaf.922171.n3.nabble.com/Class-not-found-exception-org-apache-karaf-jaas-boot-principal-RolePrincipal-tp4027557p4027561.html To unsubscribe from Class not found exception org.apache.karaf.jaas.boot.principal.RolePrincipal, click herehttp://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=4027557code=c3Zhc2FudGEudGV6QGdtYWlsLmNvbXw0MDI3NTU3fDMxNDUyNjAxNw== . NAMLhttp://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml -- View this message in context: http://karaf.922171.n3.nabble.com/Class-not-found-exception-org-apache-karaf-jaas-boot-principal-RolePrincipal-tp4027557p4027585.html Sent from the Karaf - User mailing list archive at Nabble.com.
Re: Class not found exception org.apache.karaf.jaas.boot.principal.RolePrincipal
Hi, Please find the attached sample application. 1. MyTestApp.zip (Eclipse sample project) 2. myrealm.xml - Karaf realm blueprint file. (I have manually copied it to deploy folder) 3. karaf.log - Log with with full stack trace. karaf@root osgi:list START LEVEL 100 , List Threshold: 50 ID State Blueprint Level Name [ 97] [Active ] [Created ] [ 80] myrealm.xml (0.0.0) [ 110] [Active ] [] [ 80] mytestapp (1.0) karaf@root osgi:uninstall 110 karaf@root osgi:install -s webbundle:file:///C:/Users/vasanta/workspace/MyTestApp/target/MyTestApp.war Bundle ID: 111 Thanks -Siva On Fri, Feb 1, 2013 at 3:39 AM, Achim Nierbeck [via Karaf] ml-node+s922171n4027561...@n3.nabble.com wrote: Hi, we had some issues about the visibility of the principals, but this has been fixed for 2.3.0. Could you provide a simple sample for pax-web for so I'm able to integrate it as a itest. regards, Achim 2013/1/31 siv vasan [hidden email]http://user/SendEmail.jtp?type=nodenode=4027561i=0 Hi, I am using karaf 2.3. I am trying to deploying web application on karaf Jetty. It uses JAAS for authentication. I am facing class not found exception. Why is this class not available to my webapp ? Please help on this. Exception: java.lang.RuntimeException: java.lang.ClassNotFoundException: org.apache.karaf.jaas.boot.principal.RolePrincipal not found by mytestapp [106] at org.eclipse.jetty.plus.jaas.JAASLoginService.getGroups(JAASLoginService.java:327)[71:org.eclipse.jetty.plus:7.6.7.v20120910] at org.eclipse.jetty.plus.jaas.JAASLoginService.login(JAASLoginService.java:244)[71:org.eclipse.jetty.plus:7.6.7.v20120910] I added below entry JAAS login service to jetty.xml Call name=addBean Arg New class=org.eclipse.jetty.plus.jaas.JAASLoginService Set name=nameLDPA/Set Set name=loginModuleNameLDAP/Set Set name=roleClassNames Array type=java.lang.String Itemorg.apache.karaf.jaas.boot.principal.RolePrincipal/Item /Array /Set /New /Arg /Call Also added below entry to MANIFEST-INF file. Import-Package: javax.servlet,javax.servlet.annotation,javax.servlet.http,org.apache.commons.logging,org.apache.commons.logging.impl,org.apache.log4j,org.apache.log4j.spi,org.apache.log4j.xml,org.slf4j,org.slf4j.helpers,org.slf4j.spi,org.eclipse.jetty.*,org.eclipse.jetty.plus.jaas.*, org.eclipse.jetty.security.*,org.eclipse.jetty.security.authentication.*,org.apache.karaf.jaas.boot.principal.* -- View this message in context: http://karaf.922171.n3.nabble.com/Class-not-found-exception-org-apache-karaf-jaas-boot-principal-RolePrincipal-tp4027557.html Sent from the Karaf - User mailing list archive at Nabble.com. -- Apache Karaf http://karaf.apache.org/ Committer PMC OPS4J Pax Web http://wiki.ops4j.org/display/paxweb/Pax+Web/ Committer Project Lead OPS4J Pax for Vaadin http://team.ops4j.org/wiki/display/PAXVAADIN/Home Commiter Project Lead blog http://notizblog.nierbeck.de/ -- If you reply to this email, your message will be added to the discussion below: http://karaf.922171.n3.nabble.com/Class-not-found-exception-org-apache-karaf-jaas-boot-principal-RolePrincipal-tp4027557p4027561.html To unsubscribe from Class not found exception org.apache.karaf.jaas.boot.principal.RolePrincipal, click herehttp://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=4027557code=c3Zhc2FudGEudGV6QGdtYWlsLmNvbXw0MDI3NTU3fDMxNDUyNjAxNw== . NAMLhttp://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml MyTestApp.zip (25K) http://karaf.922171.n3.nabble.com/attachment/4027569/0/MyTestApp.zip karaf.log (67K) http://karaf.922171.n3.nabble.com/attachment/4027569/1/karaf.log myrealm.xml (1K) http://karaf.922171.n3.nabble.com/attachment/4027569/2/myrealm.xml -- View this message in context: http://karaf.922171.n3.nabble.com/Class-not-found-exception-org-apache-karaf-jaas-boot-principal-RolePrincipal-tp4027557p4027569.html Sent from the Karaf - User mailing list archive at Nabble.com.
Class not found exception org.apache.karaf.jaas.boot.principal.RolePrincipal
Hi, I am using karaf 2.3. I am trying to deploying web application on karaf Jetty. It uses JAAS for authentication. I am facing class not found exception. Why is this class not available to my webapp ? Please help on this. Exception: java.lang.RuntimeException: java.lang.ClassNotFoundException: org.apache.karaf.jaas.boot.principal.RolePrincipal not found by mytestapp [106] at org.eclipse.jetty.plus.jaas.JAASLoginService.getGroups(JAASLoginService.java:327)[71:org.eclipse.jetty.plus:7.6.7.v20120910] at org.eclipse.jetty.plus.jaas.JAASLoginService.login(JAASLoginService.java:244)[71:org.eclipse.jetty.plus:7.6.7.v20120910] I added below entry JAAS login service to jetty.xml Call name=addBean Arg New class=org.eclipse.jetty.plus.jaas.JAASLoginService Set name=nameLDPA/Set Set name=loginModuleNameLDAP/Set Set name=roleClassNames Array type=java.lang.String Itemorg.apache.karaf.jaas.boot.principal.RolePrincipal/Item /Array /Set /New /Arg /Call Also added below entry to MANIFEST-INF file. Import-Package: javax.servlet,javax.servlet.annotation,javax.servlet.http,org.apache.commons.logging,org.apache.commons.logging.impl,org.apache.log4j,org.apache.log4j.spi,org.apache.log4j.xml,org.slf4j,org.slf4j.helpers,org.slf4j.spi,org.eclipse.jetty.*,org.eclipse.jetty.plus.jaas.*, org.eclipse.jetty.security.*,org.eclipse.jetty.security.authentication.*,org.apache.karaf.jaas.boot.principal.* -- View this message in context: http://karaf.922171.n3.nabble.com/Class-not-found-exception-org-apache-karaf-jaas-boot-principal-RolePrincipal-tp4027557.html Sent from the Karaf - User mailing list archive at Nabble.com.