karaf features and maven urls
Hi, I would like to know if it possible to set a repository alongside a karaf feauture e.g: feature name=my-feautre-1 version=1.0.0 repository=http://maven.mycompany.com; feature name=my-feautre-2 version=1.0.0 repository=file:///opt/maven feature name=my-feautre-3 version=1.0.0 repository=file://${env.HOME}/.m2/repository So we can avoid to search in the repository chain configured via config admin if we know where a bundle is and where it isn't -- View this message in context: http://karaf.922171.n3.nabble.com/karaf-features-and-maven-urls-tp4027592.html Sent from the Karaf - User mailing list archive at Nabble.com.
Re: karaf features and maven urls
The current schema [1] doesn't support it. [1] http://karaf.apache.org/manual/2.3.0/users-guide/provisioning-schema.html Best, Christian On Sun, Feb 3, 2013 at 5:29 PM, lbu lburgazz...@gmail.com wrote: Hi, I would like to know if it possible to set a repository alongside a karaf feauture e.g: feature name=my-feautre-1 version=1.0.0 repository=http://maven.mycompany.com; feature name=my-feautre-2 version=1.0.0 repository=file:///opt/maven feature name=my-feautre-3 version=1.0.0 repository=file://${env.HOME}/.m2/repository So we can avoid to search in the repository chain configured via config admin if we know where a bundle is and where it isn't -- View this message in context: http://karaf.922171.n3.nabble.com/karaf-features-and-maven-urls-tp4027592.html Sent from the Karaf - User mailing list archive at Nabble.com. --
Re: karaf 2.3.x's notices file mentioned LGPL ??
My bad it is from http://aopalliance.sourceforge.net I thought Apache policy does allow direct usage of LGPL lib? Thanks -D On Sun, Feb 3, 2013 at 10:49 AM, Dan Tran dant...@gmail.com wrote: http://svn.apache.org/repos/asf/karaf/branches/karaf-2.3.x/NOTICE mentions about LGPL in summary section. which artifact is that? Thanks -D
Re: karaf 2.3.x's notices file mentioned LGPL ??
It's aopalliance, required by spring-aop. However, I think this dependency is no more required. I gonna take a look to remove the references. Regards JB On 02/03/2013 07:49 PM, Dan Tran wrote: http://svn.apache.org/repos/asf/karaf/branches/karaf-2.3.x/NOTICE mentions about LGPL in summary section. which artifact is that? Thanks -D -- Jean-Baptiste Onofré jbono...@apache.org http://blog.nanthrax.net Talend - http://www.talend.com
Re: karaf 2.3.x's notices file mentioned LGPL ??
Correct, GPL and LGPL is category X license. However, as we don't embed it in the distribution, it's allowed. Anyway, I don't think that the dependency is required, I will remove it if it's really the case. Regards JB On 02/03/2013 07:52 PM, Dan Tran wrote: My bad it is from http://aopalliance.sourceforge.net I thought Apache policy does allow direct usage of LGPL lib? Thanks -D On Sun, Feb 3, 2013 at 10:49 AM, Dan Tran dant...@gmail.com wrote: http://svn.apache.org/repos/asf/karaf/branches/karaf-2.3.x/NOTICE mentions about LGPL in summary section. which artifact is that? Thanks -D -- Jean-Baptiste Onofré jbono...@apache.org http://blog.nanthrax.net Talend - http://www.talend.com
Re: karaf 2.3.x's notices file mentioned LGPL ??
Super thanks for removing that -D Btw, http://aopalliance.sourceforge.net only use 'Public Domain' I dont see LPGL mentioned in that page On Sun, Feb 3, 2013 at 10:53 AM, Jean-Baptiste Onofré j...@nanthrax.net wrote: Correct, GPL and LGPL is category X license. However, as we don't embed it in the distribution, it's allowed. Anyway, I don't think that the dependency is required, I will remove it if it's really the case. Regards JB On 02/03/2013 07:52 PM, Dan Tran wrote: My bad it is from http://aopalliance.sourceforge.net I thought Apache policy does allow direct usage of LGPL lib? Thanks -D On Sun, Feb 3, 2013 at 10:49 AM, Dan Tran dant...@gmail.com wrote: http://svn.apache.org/repos/asf/karaf/branches/karaf-2.3.x/NOTICE mentions about LGPL in summary section. which artifact is that? Thanks -D -- Jean-Baptiste Onofré jbono...@apache.org http://blog.nanthrax.net Talend - http://www.talend.com
Re: karaf 2.3.x's notices file mentioned LGPL ??
AFAIR, it's a dual license. On 02/03/2013 07:59 PM, Dan Tran wrote: Super thanks for removing that -D Btw, http://aopalliance.sourceforge.net only use 'Public Domain' I dont see LPGL mentioned in that page On Sun, Feb 3, 2013 at 10:53 AM, Jean-Baptiste Onofré j...@nanthrax.net wrote: Correct, GPL and LGPL is category X license. However, as we don't embed it in the distribution, it's allowed. Anyway, I don't think that the dependency is required, I will remove it if it's really the case. Regards JB On 02/03/2013 07:52 PM, Dan Tran wrote: My bad it is from http://aopalliance.sourceforge.net I thought Apache policy does allow direct usage of LGPL lib? Thanks -D On Sun, Feb 3, 2013 at 10:49 AM, Dan Tran dant...@gmail.com wrote: http://svn.apache.org/repos/asf/karaf/branches/karaf-2.3.x/NOTICE mentions about LGPL in summary section. which artifact is that? Thanks -D -- Jean-Baptiste Onofré jbono...@apache.org http://blog.nanthrax.net Talend - http://www.talend.com -- Jean-Baptiste Onofré jbono...@apache.org http://blog.nanthrax.net Talend - http://www.talend.com
Re: karaf 2.3.x's notices file mentioned LGPL ??
According to the homepage [1] it's actually public domain. kind regards, christoph [1] http://aopalliance.sourceforge.net/ On 2013-02-03 20:13, Jean-Baptiste Onofré wrote: AFAIR, it's a dual license. On 02/03/2013 07:59 PM, Dan Tran wrote: Super thanks for removing that -D Btw, http://aopalliance.sourceforge.net only use 'Public Domain' I dont see LPGL mentioned in that page On Sun, Feb 3, 2013 at 10:53 AM, Jean-Baptiste Onofré j...@nanthrax.net wrote: Correct, GPL and LGPL is category X license. However, as we don't embed it in the distribution, it's allowed. Anyway, I don't think that the dependency is required, I will remove it if it's really the case. Regards JB On 02/03/2013 07:52 PM, Dan Tran wrote: My bad it is from http://aopalliance.sourceforge.net I thought Apache policy does allow direct usage of LGPL lib? Thanks -D On Sun, Feb 3, 2013 at 10:49 AM, Dan Tran dant...@gmail.com wrote: http://svn.apache.org/repos/asf/karaf/branches/karaf-2.3.x/NOTICE mentions about LGPL in summary section. which artifact is that? Thanks -D -- Jean-Baptiste Onofré jbono...@apache.org http://blog.nanthrax.net Talend - http://www.talend.com smime.p7s Description: S/MIME Cryptographic Signature
Re: Eclkpselink bundle installation : features vs command
Hi, This error indicates mvn:org.eclipse.persistence/org.eclipse.persistence.asm/3.3.1.v201206041142 isn't a valid OSGi bundle, Netty has a similar issue[1] a while ago, they fixed it. I think you need report this issue to eclipse link community and let them fix it. [1]https://issues.jboss.org/browse/NETTY-376 - Freeman(Yue) Fang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://fusesource.com | http://www.redhat.com/ Twitter: freemanfang Blog: http://freemanfang.blogspot.com http://blog.sina.com.cn/u/1473905042 weibo: @Freeman小屋 On 2013-2-2, at 下午9:04, lbu wrote: Hi, I've created a simple feature to automatically install all the eclipselink dependencies of a project and I've noticed the following behavior: When the bundle org.eclipse.persistence.asm is installed from the karaf shell, the bundle is installed karaf@btuninstall 89 karaf@btosgi:install mvn:org.eclipse.persistence/org.eclipse.persistence.asm/3.3.1.v201206041142 Bundle ID: 182 When installed from a very simple feature, it fails: karaf@btfeatures:install bt-jpa Error executing command: Manifest not present in the first entry of the zip mvn:org.eclipse.persistence/org.eclipse.persistence.asm/3.3.1.v201206041142 Here the feature: feature name=bt-jpa version=1.0.0 bundlemvn:org.eclipse.persistence/org.eclipse.persistence.asm/3.3.1.v201206041142/bundle bundlemvn:org.eclipse.persistence/org.eclipse.persistence.antlr/3.2.0.v201206041011/bundle bundlemvn:org.eclipse.persistence/org.eclipse.persistence.core/2.4.1/bundle bundlemvn:org.eclipse.persistence/org.eclipse.persistence.jpa/2.4.1/bundle bundlemvn:org.eclipse.persistence/org.eclipse.persistence.oracle/2.4.1/bundle bundlemvn:org.apache.openjpa/openjpa/2.2.0/bundle /feature And the log: 13:56:25,370|INFO |org.apache.karaf.shell.console.jline.Console == Exception caught while executing command org.osgi.framework.BundleException: Manifest not present in the first entry of the zip mvn:org.eclipse.persistence/org.eclipse.persistence.asm/3.3.1.v201206041142 at org.apache.karaf.features.internal.FeaturesServiceImpl.installBundleIfNeeded(FeaturesServiceImpl.java:817)[20:org.apache.karaf.features.core:2.3.0] at org.apache.karaf.features.internal.FeaturesServiceImpl.doInstallFeature(FeaturesServiceImpl.java:603)[20:org.apache.karaf.features.core:2.3.0] at org.apache.karaf.features.internal.FeaturesServiceImpl.installFeatures(FeaturesServiceImpl.java:405)[20:org.apache.karaf.features.core:2.3.0] at org.apache.karaf.features.internal.FeaturesServiceImpl.installFeature(FeaturesServiceImpl.java:393)[20:org.apache.karaf.features.core:2.3.0] at org.apache.karaf.features.internal.FeaturesServiceImpl.installFeature(FeaturesServiceImpl.java:389)[20:org.apache.karaf.features.core:2.3.0] at org.apache.karaf.features.command.InstallFeatureCommand.doExecute(InstallFeatureCommand.java:62)[22:org.apache.karaf.features.command:2.3.0] at org.apache.karaf.features.command.FeaturesCommandSupport.doExecute(FeaturesCommandSupport.java:41)[22:org.apache.karaf.features.command:2.3.0] at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:38)[14:org.apache.karaf.shell.console:2.3.0] at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)[14:org.apache.karaf.shell.console:2.3.0] at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[14:org.apache.karaf.shell.console:2.3.0] at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:474)[14:org.apache.karaf.shell.console:2.3.0] at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:400)[14:org.apache.karaf.shell.console:2.3.0] at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[14:org.apache.karaf.shell.console:2.3.0] at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[14:org.apache.karaf.shell.console:2.3.0] at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[14:org.apache.karaf.shell.console:2.3.0] at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)[14:org.apache.karaf.shell.console:2.3.0] at org.apache.karaf.shell.console.jline.Console.run(Console.java:175)[14:org.apache.karaf.shell.console:2.3.0] at java.lang.Thread.run(Thread.java:680)[:1.6.0_37] It looks like a bug, or am I missing something? -- View this message in context: http://karaf.922171.n3.nabble.com/Eclkpselink-bundle-installation-features-vs-command-tp4027584.html Sent from the Karaf - User mailing list archive at Nabble.com.
Re: Eclkpselink bundle installation : features vs command
Hi, thank you I'll report it. For my understanding, why the features fails whereas the command doesn't ? -- View this message in context: http://karaf.922171.n3.nabble.com/Eclkpselink-bundle-installation-features-vs-command-tp4027584p4027607.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