Re: How to make karaf install features of certain versions?
Hi, JRE actually only supplies 1.0 of javax.annotation. That's why the weld-feature in karaf-3.0.3 provides the bundle mvn:javax.annotation/javax.annotation-api/1.2 You should use that bundle too, rather than modifying the version in jre.properties. kind regards, Christoph On 13/04/15 20:26, Krzysztof Sobkowiak wrote: Hi I have just taken a fresh Karaf 3.0.3 and imported the pax cdi 0.8.0 repository karaf@root() feature:repo-add mvn:org.ops4j.pax.cdi/pax-cdi-features/0.8.0/xml/features Adding feature url mvn:org.ops4j.pax.cdi/pax-cdi-features/0.8.0/xml/features karaf@root() feature:install pax-cdi/0.8.0 Error executing command: Can't install feature pax-cdi/0.8.0: Could not start bundle mvn:org.ops4j.pax.cdi/pax-cdi-extension/0.8.0 in feature(s) pax-cdi-1.1-0.8.0, pax-cdi-0.8.0, pax-cdi-1.2-0.8.0: Unresolved constraint in bundle org.ops4j.pax.cdi.extension [80]: Unable to resolve 80.0: missing requirement [80.0] osgi.wiring.package; ((osgi.wiring.package=javax.annotation)(version=1.1.0)(!(version=2.0.0))) Next I have changed the version of javax.annotation to 1.2 jre-1.7= \ javax.accessibility, \ javax.activation;version=1.1, \ javax.activity, \ javax.annotation;version=1.2, \ After restart I could install the pax cdi karaf@root() feature:install pax-cdi/0.8.0 karaf@root() Regards Krzysztof On 13.04.2015 19:57, PashaTurok wrote: I've changed version of javax.annotation to 1.2 in /etc/jre.properties and when I execute feature:install pax-cdi/0.8.0 I get osgi framework exception that javax.annotaion package can't be resolved. what to do? -- View this message in context: http://karaf.922171.n3.nabble.com/How-to-make-karaf-install-features-of-certain-versions-tp4039644p4039658.html Sent from the Karaf - User mailing list archive at Nabble.com.
Re: How to make karaf install features of certain versions?
I've changed version of javax.annotation to 1.2 in /etc/jre.properties and when I execute feature:install pax-cdi/0.8.0 I get osgi framework exception that javax.annotaion package can't be resolved. what to do? -- View this message in context: http://karaf.922171.n3.nabble.com/How-to-make-karaf-install-features-of-certain-versions-tp4039644p4039658.html Sent from the Karaf - User mailing list archive at Nabble.com.
Re: How to make karaf install features of certain versions?
Hi I have just taken a fresh Karaf 3.0.3 and imported the pax cdi 0.8.0 repository karaf@root() feature:repo-add mvn:org.ops4j.pax.cdi/pax-cdi-features/0.8.0/xml/features Adding feature url mvn:org.ops4j.pax.cdi/pax-cdi-features/0.8.0/xml/features karaf@root() feature:install pax-cdi/0.8.0 Error executing command: Can't install feature pax-cdi/0.8.0: Could not start bundle mvn:org.ops4j.pax.cdi/pax-cdi-extension/0.8.0 in feature(s) pax-cdi-1.1-0.8.0, pax-cdi-0.8.0, pax-cdi-1.2-0.8.0: Unresolved constraint in bundle org.ops4j.pax.cdi.extension [80]: Unable to resolve 80.0: missing requirement [80.0] osgi.wiring.package; ((osgi.wiring.package=javax.annotation)(version=1.1.0)(!(version=2.0.0))) Next I have changed the version of javax.annotation to 1.2 jre-1.7= \ javax.accessibility, \ javax.activation;version=1.1, \ javax.activity, \ javax.annotation;version=1.2, \ After restart I could install the pax cdi karaf@root() feature:install pax-cdi/0.8.0 karaf@root() Regards Krzysztof On 13.04.2015 19:57, PashaTurok wrote: I've changed version of javax.annotation to 1.2 in /etc/jre.properties and when I execute feature:install pax-cdi/0.8.0 I get osgi framework exception that javax.annotaion package can't be resolved. what to do? -- View this message in context: http://karaf.922171.n3.nabble.com/How-to-make-karaf-install-features-of-certain-versions-tp4039644p4039658.html Sent from the Karaf - User mailing list archive at Nabble.com. -- Krzysztof Sobkowiak JEE OSS Architect Apache Software Foundation Member Apache ServiceMix http://servicemix.apache.org/ Committer PMC chair Senior Solution Architect @ Capgemini SSC http://www.pl.capgemini-sdm.com/en/
Re: How to make karaf install features of certain versions?
Stupid question. Now I try to install to karaf weld 2.2.10.Final. By analogy I do this way: feature:repo-add mvn:org.jboss.weld/weld-features/2.2.10.Final/xml/features However it says Error executing command: Error resolving artifact org.jboss.weld:weld-features:xml:features:2.2.10.Final: Could not find artifact org.jboss.weld:weld-features:xml:features:2.2.10.Final in central (http://repo1.maven.org/maven2/) How to fix it? And how do you undestand mvn path adding repo? -- View this message in context: http://karaf.922171.n3.nabble.com/How-to-make-karaf-install-features-of-certain-versions-tp4039644p4039667.html Sent from the Karaf - User mailing list archive at Nabble.com.
Re: How to make karaf install features of certain versions?
I meant, pax-cdi-1.2-weld feature installs weld 2.2.4.Final bundle, not feature. On 14.04.2015 06:34, Krzysztof Sobkowiak wrote: There is no separate features repository for weld. It is defined in pax-cdi repository you have already installed. The pax-cdi 0.8.0 defines a pax-cdi-1.2-weld feature which installs weld 2.2.4.Final feature. There is no feature for 2.2.10.Final. You should install the version provided by pax-cdi repository - it ensures the compatibility between pax-cdi and weld. regards Krzysztof On 13.04.2015 23:39, PashaTurok wrote: Stupid question. Now I try to install to karaf weld 2.2.10.Final. By analogy I do this way: feature:repo-add mvn:org.jboss.weld/weld-features/2.2.10.Final/xml/features However it says Error executing command: Error resolving artifact org.jboss.weld:weld-features:xml:features:2.2.10.Final: Could not find artifact org.jboss.weld:weld-features:xml:features:2.2.10.Final in central (http://repo1.maven.org/maven2/) How to fix it? And how do you undestand mvn path adding repo? -- View this message in context: http://karaf.922171.n3.nabble.com/How-to-make-karaf-install-features-of-certain-versions-tp4039644p4039667.html Sent from the Karaf - User mailing list archive at Nabble.com. -- Krzysztof Sobkowiak JEE OSS Architect Apache Software Foundation Member Apache ServiceMix http://servicemix.apache.org/ Committer PMC chair Senior Solution Architect @ Capgemini SSC http://www.pl.capgemini-sdm.com/en/
Re: How to make karaf install features of certain versions?
There is no separate features repository for weld. It is defined in pax-cdi repository you have already installed. The pax-cdi 0.8.0 defines a pax-cdi-1.2-weld feature which installs weld 2.2.4.Final feature. There is no feature for 2.2.10.Final. You should install the version provided by pax-cdi repository - it ensures the compatibility between pax-cdi and weld. regards Krzysztof On 13.04.2015 23:39, PashaTurok wrote: Stupid question. Now I try to install to karaf weld 2.2.10.Final. By analogy I do this way: feature:repo-add mvn:org.jboss.weld/weld-features/2.2.10.Final/xml/features However it says Error executing command: Error resolving artifact org.jboss.weld:weld-features:xml:features:2.2.10.Final: Could not find artifact org.jboss.weld:weld-features:xml:features:2.2.10.Final in central (http://repo1.maven.org/maven2/) How to fix it? And how do you undestand mvn path adding repo? -- View this message in context: http://karaf.922171.n3.nabble.com/How-to-make-karaf-install-features-of-certain-versions-tp4039644p4039667.html Sent from the Karaf - User mailing list archive at Nabble.com. -- Krzysztof Sobkowiak JEE OSS Architect Apache Software Foundation Member Apache ServiceMix http://servicemix.apache.org/ Committer PMC chair Senior Solution Architect @ Capgemini SSC http://www.pl.capgemini-sdm.com/en/
Re: How to make karaf install features of certain versions?
What do you have in the log ? Regards JB On 04/13/2015 06:38 PM, PashaTurok wrote: Hoever when I do feature:install pax-cdi/0.8 I get Error executing command - Can't install feature pax-cdi/0.8 and in log: java.lang.IllegalStateException: Can't install feature pax-cdi/0.8: null^M at org.apache.karaf.features.internal.FeaturesServiceImpl.installFeature(FeaturesServiceImpl.java:388)^M at Proxy464edfe2_2888_4e51_96cc_e74c9c101925.installFeature(Unknown Source)^M at org.apache.karaf.features.command.InstallFeatureCommand.doExecute(InstallFeatureCommand.java:67)^M at org.apache.karaf.features.command.FeaturesCommandSupport.doExecute(FeaturesCommandSupport.java:38)^M at org.apache.karaf.shell.console.AbstractAction.execute(AbstractAction.java:33)[25:org.apache.karaf.shell.console:3.0.3]^M at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:39)[25:org.apache.karaf.shell.console:3.0.3]^M at org.apache.karaf.shell.commands.basic.AbstractCommand.execute(AbstractCommand.java:33)[25:org.apache.karaf.shell.console:3.0.3]^M at Proxy23360963_282c_4a85_911b_a95f1c1ab5d2.execute(Unknown Source)[:]^M at Proxy23360963_282c_4a85_911b_a95f1c1ab5d2.execute(Unknown Source)[:]^M at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[25:org.apache.karaf.shell.console:3.0.3]^M at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)[25:org.apache.karaf.shell.console:3.0.3]^M at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)[25:org.apache.karaf.shell.console:3.0.3]^M at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[25:org.apache.karaf.shell.console:3.0.3]^M at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[25:org.apache.karaf.shell.console:3.0.3]^M at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[25:org.apache.karaf.shell.console:3.0.3]^M at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:92)^M at org.apache.karaf.shell.console.impl.jline.ConsoleImpl.run(ConsoleImpl.java:208)^M at org.apache.karaf.shell.console.impl.jline.LocalConsoleManager$2$1$1.run(LocalConsoleManager.java:109)^M at java.security.AccessController.doPrivileged(Native Method)[:1.8.0_40]^M at org.apache.karaf.jaas.modules.JaasHelper.doAs(JaasHelper.java:57)[26:org.apache.karaf.jaas.modules:3.0.3]^M at org.apache.karaf.shell.console.impl.jline.LocalConsoleManager$2$1.run(LocalConsoleManager.java:102)[25:org.apache.karaf.shell.console:3.0.3]^M How to fix it? -- View this message in context: http://karaf.922171.n3.nabble.com/How-to-make-karaf-install-features-of-certain-versions-tp4039644p4039652.html Sent from the Karaf - User mailing list archive at Nabble.com. -- Jean-Baptiste Onofré jbono...@apache.org http://blog.nanthrax.net Talend - http://www.talend.com
Re: How to make karaf install features of certain versions?
It's 0.8.0 not 0.8. feature:install pax-cdi/0.8.0 Regards JB On 04/13/2015 06:38 PM, PashaTurok wrote: Hoever when I do feature:install pax-cdi/0.8 I get Error executing command - Can't install feature pax-cdi/0.8 and in log: java.lang.IllegalStateException: Can't install feature pax-cdi/0.8: null^M at org.apache.karaf.features.internal.FeaturesServiceImpl.installFeature(FeaturesServiceImpl.java:388)^M at Proxy464edfe2_2888_4e51_96cc_e74c9c101925.installFeature(Unknown Source)^M at org.apache.karaf.features.command.InstallFeatureCommand.doExecute(InstallFeatureCommand.java:67)^M at org.apache.karaf.features.command.FeaturesCommandSupport.doExecute(FeaturesCommandSupport.java:38)^M at org.apache.karaf.shell.console.AbstractAction.execute(AbstractAction.java:33)[25:org.apache.karaf.shell.console:3.0.3]^M at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:39)[25:org.apache.karaf.shell.console:3.0.3]^M at org.apache.karaf.shell.commands.basic.AbstractCommand.execute(AbstractCommand.java:33)[25:org.apache.karaf.shell.console:3.0.3]^M at Proxy23360963_282c_4a85_911b_a95f1c1ab5d2.execute(Unknown Source)[:]^M at Proxy23360963_282c_4a85_911b_a95f1c1ab5d2.execute(Unknown Source)[:]^M at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[25:org.apache.karaf.shell.console:3.0.3]^M at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)[25:org.apache.karaf.shell.console:3.0.3]^M at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)[25:org.apache.karaf.shell.console:3.0.3]^M at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[25:org.apache.karaf.shell.console:3.0.3]^M at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[25:org.apache.karaf.shell.console:3.0.3]^M at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[25:org.apache.karaf.shell.console:3.0.3]^M at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:92)^M at org.apache.karaf.shell.console.impl.jline.ConsoleImpl.run(ConsoleImpl.java:208)^M at org.apache.karaf.shell.console.impl.jline.LocalConsoleManager$2$1$1.run(LocalConsoleManager.java:109)^M at java.security.AccessController.doPrivileged(Native Method)[:1.8.0_40]^M at org.apache.karaf.jaas.modules.JaasHelper.doAs(JaasHelper.java:57)[26:org.apache.karaf.jaas.modules:3.0.3]^M at org.apache.karaf.shell.console.impl.jline.LocalConsoleManager$2$1.run(LocalConsoleManager.java:102)[25:org.apache.karaf.shell.console:3.0.3]^M How to fix it? -- View this message in context: http://karaf.922171.n3.nabble.com/How-to-make-karaf-install-features-of-certain-versions-tp4039644p4039652.html Sent from the Karaf - User mailing list archive at Nabble.com. -- Jean-Baptiste Onofré jbono...@apache.org http://blog.nanthrax.net Talend - http://www.talend.com
Re: How to make karaf install features of certain versions?
I tried feature:install pax-cdi/0.8 and feature:install pax-cdi/0.8.0 - the result is the same. When I do karaf@root list | grep pax-cdi I get nothing. I mean the result is karaf@root -- View this message in context: http://karaf.922171.n3.nabble.com/How-to-make-karaf-install-features-of-certain-versions-tp4039644p4039656.html Sent from the Karaf - User mailing list archive at Nabble.com.
Re: How to make karaf install features of certain versions?
You have to register pax-cdi 0.8.0 first: karaf@root() feature:repo-add mvn:org.ops4j.pax.cdi/pax-cdi-features/0.8.0/xml/features karaf@root() feature:list|grep -i pax-cdi|grep -i 0.8.0 You will see the features. And after: feature:install pax-cdi/0.8.0 You may have an issue with javax.annotations, just change the version in etc/jre.properties. Regards JB On 04/13/2015 07:00 PM, PashaTurok wrote: I tried feature:install pax-cdi/0.8 and feature:install pax-cdi/0.8.0 - the result is the same. When I do karaf@root list | grep pax-cdi I get nothing. I mean the result is karaf@root -- View this message in context: http://karaf.922171.n3.nabble.com/How-to-make-karaf-install-features-of-certain-versions-tp4039644p4039656.html Sent from the Karaf - User mailing list archive at Nabble.com. -- Jean-Baptiste Onofré jbono...@apache.org http://blog.nanthrax.net Talend - http://www.talend.com
How to make karaf install features of certain versions?
I run feature:install pax-cdi weld and karaf installs pax-cdi 0.11.0 but I need 0.8. How to do it? -- View this message in context: http://karaf.922171.n3.nabble.com/How-to-make-karaf-install-features-of-certain-versions-tp4039644.html Sent from the Karaf - User mailing list archive at Nabble.com.
Re: How to make karaf install features of certain versions?
Hi feature:install pax-cdi/0.8.0 Regards JB On 04/13/2015 06:13 PM, PashaTurok wrote: I run feature:install pax-cdi weld and karaf installs pax-cdi 0.11.0 but I need 0.8. How to do it? -- View this message in context: http://karaf.922171.n3.nabble.com/How-to-make-karaf-install-features-of-certain-versions-tp4039644.html Sent from the Karaf - User mailing list archive at Nabble.com. -- Jean-Baptiste Onofré jbono...@apache.org http://blog.nanthrax.net Talend - http://www.talend.com
Re: How to make karaf install features of certain versions?
Hi feature:install pax-cdi/0.8 regards Krzysztof On 13.04.2015 18:13, PashaTurok wrote: I run feature:install pax-cdi weld and karaf installs pax-cdi 0.11.0 but I need 0.8. How to do it? -- View this message in context: http://karaf.922171.n3.nabble.com/How-to-make-karaf-install-features-of-certain-versions-tp4039644.html Sent from the Karaf - User mailing list archive at Nabble.com. -- Krzysztof Sobkowiak JEE OSS Architect Apache Software Foundation Member Apache ServiceMix http://servicemix.apache.org/ Committer PMC chair Senior Solution Architect @ Capgemini SSC http://www.pl.capgemini-sdm.com/en/
Re: How to make karaf install features of certain versions?
Thank you everyone for help. Karaf has a very friendly community. Last days I tried to solve problem with weld and I wish no one to do something with weld community (all questions are simply ignored) + their site simply doesn't work. -- View this message in context: http://karaf.922171.n3.nabble.com/How-to-make-karaf-install-features-of-certain-versions-tp4039644p4039650.html Sent from the Karaf - User mailing list archive at Nabble.com.