Hi, This error Caused by: java.lang.RuntimeException: URL [mvn:org/apache/servicemix/examples/cxf-wsn/5.0.0-SNAPSHOT] could not be resolved. means can't find this bundle from your local maven repo, please check if it's really in your maven local repo, also check
$SMX_HOME/etc/org.ops4j.pax.url.mvn.cfg ensure your maven local repo is specified there if it's not in default location # # Path to the local Maven repository which is used to avoid downloading # artifacts when they already exist locally. # The value of this property will be extracted from the settings.xml file # above, or defaulted to: # System.getProperty( "user.home" ) + "/.m2/repository" # #org.ops4j.pax.url.mvn.localRepository= ------------- 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小屋 www.camelone.org : The open source integration conference: On 2013-5-22, at 下午8:10, jay wrote: > I built the bundle in my local repository but unable to install it in smx4 > snapshot... can some one help me? > > karaf@root> osgi:install -s > mvn:org/apache/servicemix/examples/cxf-wsn/5.0.0-SNAPSHOT > Bundle IDs: > Error executing command: Error installing bundles: > Unable to install bundle > mvn:org/apache/servicemix/examples/cxf-wsn/5.0.0-SNAPSHOT > > > 12:57:44,823 | INFO | l Console Thread | Console | > 15 - org.apache.karaf.shell.console - 2.3.1 | Exception caught while > executing command > org.apache.karaf.shell.console.MultiException: Error installing bundles: > Unable to install bundle > mvn:org/apache/servicemix/examples/cxf-wsn/5.0.0-SNAPSHOT > at > org.apache.karaf.shell.console.MultiException.throwIf(MultiException.java:91) > at > org.apache.karaf.shell.osgi.InstallBundle.doExecute(InstallBundle.java:70)[26:org.apache.karaf.shell.osgi:2.3.1] > at > org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:38)[15:org.apache.karaf.shell.console:2.3.1] > at > org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)[15:org.apache.karaf.shell.console:2.3.1] > at > org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[15:org.apache.karaf.shell.console:2.3.1] > at > org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:474)[15:org.apache.karaf.shell.console:2.3.1] > at > org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:400)[15:org.apache.karaf.shell.console:2.3.1] > at > org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[15:org.apache.karaf.shell.console:2.3.1] > at > org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[15:org.apache.karaf.shell.console:2.3.1] > at > org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[15:org.apache.karaf.shell.console:2.3.1] > at > org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)[15:org.apache.karaf.shell.console:2.3.1] > at > org.apache.karaf.shell.console.jline.Console.run(Console.java:174)[15:org.apache.karaf.shell.console:2.3.1] > at java.lang.Thread.run(Thread.java:680)[:1.6.0_45] > Caused by: java.lang.Exception: Unable to install bundle > mvn:org/apache/servicemix/examples/cxf-wsn/5.0.0-SNAPSHOT > at > org.apache.karaf.shell.osgi.InstallBundle.doExecute(InstallBundle.java:45)[26:org.apache.karaf.shell.osgi:2.3.1] > ... 11 more > Caused by: org.osgi.framework.BundleException: Unable to cache bundle: > mvn:org/apache/servicemix/examples/cxf-wsn/5.0.0-SNAPSHOT > at > org.apache.felix.framework.Felix.installBundle(Felix.java:2703)[org.apache.felix.framework-4.0.3.jar:] > at > org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:165)[org.apache.felix.framework-4.0.3.jar:] > at > org.apache.karaf.shell.osgi.InstallBundle.doExecute(InstallBundle.java:43)[26:org.apache.karaf.shell.osgi:2.3.1] > ... 11 more > Caused by: java.lang.RuntimeException: URL > [mvn:org/apache/servicemix/examples/cxf-wsn/5.0.0-SNAPSHOT] could not be > resolved. > at > org.ops4j.pax.url.mvn.internal.Connection.getInputStream(Connection.java:195)[1:org.ops4j.pax.url.mvn:1.3.5] > at > org.apache.felix.framework.util.SecureAction.getURLConnectionInputStream(SecureAction.java:524)[org.apache.felix.framework-4.0.3.jar:] > at > org.apache.felix.framework.cache.JarRevision.initialize(JarRevision.java:165)[org.apache.felix.framework-4.0.3.jar:] > at > org.apache.felix.framework.cache.JarRevision.<init>(JarRevision.java:77)[org.apache.felix.framework-4.0.3.jar:] > at > org.apache.felix.framework.cache.BundleArchive.createRevisionFromLocation(BundleArchive.java:878)[org.apache.felix.framework-4.0.3.jar:] > at > org.apache.felix.framework.cache.BundleArchive.reviseInternal(BundleArchive.java:550)[org.apache.felix.framework-4.0.3.jar:] > at > org.apache.felix.framework.cache.BundleArchive.<init>(BundleArchive.java:153)[org.apache.felix.framework-4.0.3.jar:] > at > org.apache.felix.framework.cache.BundleCache.create(BundleCache.java:277)[org.apache.felix.framework-4.0.3.jar:] > at > org.apache.felix.framework.Felix.installBundle(Felix.java:2699)[org.apache.felix.framework-4.0.3.jar:] > ... 13 more > > > > > -- > View this message in context: > http://servicemix.396122.n5.nabble.com/Unable-to-install-the-example-cxf-wsn-bundle-in-service-mix-4-5-2-or-smx5-snapshot-versions-tp5716822.html > Sent from the ServiceMix - User mailing list archive at Nabble.com.
