karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré (JIRA) <j...@apache.org>
Subject [jira] [Updated] (KARAF-3806) KAR: Karaf tries to resolve artifacts from remote Maven repo, ignoring the contents of a KAR
Date Fri, 26 Jun 2015 13:44:05 GMT

     [ https://issues.apache.org/jira/browse/KARAF-3806?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jean-Baptiste Onofré updated KARAF-3806:
----------------------------------------
    Fix Version/s: 3.0.4

> KAR: Karaf tries to resolve artifacts from remote Maven repo, ignoring the contents of
a KAR
> --------------------------------------------------------------------------------------------
>
>                 Key: KARAF-3806
>                 URL: https://issues.apache.org/jira/browse/KARAF-3806
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-kar
>    Affects Versions: 3.0.3
>            Reporter: Roland Hauser
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 3.0.4
>
>
> I noticed a strange behaviour when I deploy a KAR file to Karaf. The deployment process
works as follows:
> - Build the KAR using karaf-maven-plugin
> - Upload KAR via SCP to Karaf (using the integrated SSH server of Karaf) to data/tmp
> - Connect via SSH to Karaf.
> - Execute kar:install file:data/tmp/com.bechtle.deployment.terra-1.0.0-SNAPSHOT.kar
> The machine is not connected to the internet nor it has any Maven repository configured.
When I deploy a KAR file that way I get following exceptions:
> 2015-06-26 10:19:07,598 | WARN  | 3]-nio2-thread-2 | AetherBasedResolver            
 | 3 - org.ops4j.pax.logging.pax-logging-api - 1.8.1 | Error resolving artifactch.bechtle.osgi.springmvc:ch.bechtle.osgi.springmvc.blueprint.adapter:jar:0.0.2-SNAPSHOT:Could
not transfer artifact ch.bechtle.osgi.springmvc:ch.bechtle.osgi.springmvc.blueprint.adapter:jar:0.0.2-SNAPSHOT
from/to sonatype.snapshots.deploy (https://oss.sonatype.org/content/repositories/snapshots/):
Connect to oss.sonatype.org:443 [oss.sonatype.org/52.1.234.146, oss.sonatype.org/54.85.199.15,
oss.sonatype.org/52.4.249.96, oss.sonatype.org/52.5.218.160] failed: Connection refused
> shaded.org.eclipse.aether.resolution.ArtifactResolutionException: Could not transfer
artifact ch.bechtle.osgi.springmvc:ch.bechtle.osgi.springmvc.blueprint.adapter:jar:0.0.2-SNAPSHOT
from/to sonatype.snapshots.deploy (https://oss.sonatype.org/content/repositories/snapshots/):
Connect to oss.sonatype.org:443 [oss.sonatype.org/52.1.234.146, oss.sonatype.org/54.85.199.15,
oss.sonatype.org/52.4.249.96, oss.sonatype.org/52.5.218.160] failed: Connection refused
> 	at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:444)
> 	at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:246)
> 	at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:223)
> 	at shaded.org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:294)
> 	at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:476)
> 	at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:433)
> 	at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:411)
> 	at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:386)
> 	at org.ops4j.pax.url.mvn.internal.Connection.getInputStream(Connection.java:124)
> 	at java.net.URL.openStream(URL.java:1038)[:1.8.0_45]
> 	at org.apache.karaf.features.internal.BundleManager.getInputStreamForBundle(BundleManager.java:185)
> 	at org.apache.karaf.features.internal.BundleManager.doInstallBundleIfNeeded(BundleManager.java:95)
> 	at org.apache.karaf.features.internal.BundleManager.installBundleIfNeeded(BundleManager.java:89)
> 	at org.apache.karaf.features.internal.FeaturesServiceImpl.doInstallFeature(FeaturesServiceImpl.java:556)
> 	at org.apache.karaf.features.internal.FeaturesServiceImpl.installFeatures(FeaturesServiceImpl.java:419)
> 	at org.apache.karaf.features.internal.FeaturesServiceImpl.installFeature(FeaturesServiceImpl.java:400)
> 	at Proxy189bf845_1147_46d3_8c5f_38ac9909d2ec.installFeature(Unknown Source)
> 	at Proxyc18d6bea_4260_42f8_9c5b_0e8a91b6fe8e.installFeature(Unknown Source)
> 	at org.apache.karaf.kar.internal.KarServiceImpl.installFeatures(KarServiceImpl.java:215)
> 	at org.apache.karaf.kar.internal.KarServiceImpl.install(KarServiceImpl.java:96)
> 	at org.apache.karaf.kar.internal.KarServiceImpl.install(KarServiceImpl.java:84)
> 	at Proxyda77f121_8f18_4c1f_ac9b_fe09dc997944.install(Unknown Source)
> 	at Proxyc829a2d3_f131_4404_9698_1bd546109ee0.install(Unknown Source)
> 	at org.apache.karaf.kar.command.InstallKarCommand.doExecute(InstallKarCommand.java:31)
> 	at org.apache.karaf.shell.console.AbstractAction.execute(AbstractAction.java:33)
> 	at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:39)
> 	at org.apache.karaf.shell.commands.basic.AbstractCommand.execute(AbstractCommand.java:33)
> 	at Proxy37851065_0b38_41f4_bbc1_d518be985f9a.execute(Unknown Source)
> 	at Proxy37851065_0b38_41f4_bbc1_d518be985f9a.execute(Unknown Source)
> 	at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)
> 	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)
> 	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)
> 	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
> 	at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:92)
> 	at org.apache.karaf.shell.ssh.ShellCommand$1.run(ShellCommand.java:124)
> 	at java.security.AccessController.doPrivileged(Native Method)[:1.8.0_45]
> 	at org.apache.karaf.jaas.modules.JaasHelper.doAs(JaasHelper.java:77)
> 	at org.apache.karaf.shell.ssh.ShellCommand.start(ShellCommand.java:120)
> 	at org.apache.sshd.server.channel.ChannelSession.handleExec(ChannelSession.java:422)[28:org.apache.sshd.core:0.12.0]
> 	at org.apache.sshd.server.channel.ChannelSession.handleRequest(ChannelSession.java:304)[28:org.apache.sshd.core:0.12.0]
> 	at org.apache.sshd.server.channel.ChannelSession$ChannelSessionRequestHandler.process(ChannelSession.java:576)[28:org.apache.sshd.core:0.12.0]
> 	at org.apache.sshd.server.channel.ChannelSession$ChannelSessionRequestHandler.process(ChannelSession.java:574)[28:org.apache.sshd.core:0.12.0]
> 	at org.apache.sshd.common.channel.AbstractChannel.handleRequest(AbstractChannel.java:96)[28:org.apache.sshd.core:0.12.0]
> 	at org.apache.sshd.common.session.AbstractConnectionService.channelRequest(AbstractConnectionService.java:261)[28:org.apache.sshd.core:0.12.0]
> 	at org.apache.sshd.common.session.AbstractConnectionService.process(AbstractConnectionService.java:139)[28:org.apache.sshd.core:0.12.0]
> 	at org.apache.sshd.common.session.AbstractSession.doHandleMessage(AbstractSession.java:399)[28:org.apache.sshd.core:0.12.0]
> 	at org.apache.sshd.common.session.AbstractSession.handleMessage(AbstractSession.java:295)[28:org.apache.sshd.core:0.12.0]
> 	at org.apache.sshd.common.session.AbstractSession.decode(AbstractSession.java:731)[28:org.apache.sshd.core:0.12.0]
> 	at org.apache.sshd.common.session.AbstractSession.messageReceived(AbstractSession.java:277)[28:org.apache.sshd.core:0.12.0]
> 	at org.apache.sshd.common.AbstractSessionIoHandler.messageReceived(AbstractSessionIoHandler.java:54)[28:org.apache.sshd.core:0.12.0]
> 	at org.apache.sshd.common.io.nio2.Nio2Session$1.onCompleted(Nio2Session.java:187)[28:org.apache.sshd.core:0.12.0]
> 	at org.apache.sshd.common.io.nio2.Nio2Session$1.onCompleted(Nio2Session.java:173)[28:org.apache.sshd.core:0.12.0]
> 	at org.apache.sshd.common.io.nio2.Nio2CompletionHandler$1.run(Nio2CompletionHandler.java:32)
> 	at java.security.AccessController.doPrivileged(Native Method)[:1.8.0_45]
> 	at org.apache.sshd.common.io.nio2.Nio2CompletionHandler.completed(Nio2CompletionHandler.java:30)[28:org.apache.sshd.core:0.12.0]
> 	at sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:126)[:1.8.0_45]
> 	at sun.nio.ch.Invoker$2.run(Invoker.java:218)[:1.8.0_45]
> 	at sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:112)[:1.8.0_45]
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_45]
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_45]
> 	at java.lang.Thread.run(Thread.java:745)[:1.8.0_45]
> Caused by: shaded.org.eclipse.aether.transfer.ArtifactTransferException: Could not transfer
artifact ch.bechtle.osgi.springmvc:ch.bechtle.osgi.springmvc.blueprint.adapter:jar:0.0.2-SNAPSHOT
from/to sonatype.snapshots.deploy (https://oss.sonatype.org/content/repositories/snapshots/):
Connect to oss.sonatype.org:443 [oss.sonatype.org/52.1.234.146, oss.sonatype.org/54.85.199.15,
oss.sonatype.org/52.4.249.96, oss.sonatype.org/52.5.218.160] failed: Connection refused
> 	at shaded.org.eclipse.aether.connector.basic.ArtifactTransportListener.transferFailed(ArtifactTransportListener.java:43)
> 	at shaded.org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run(BasicRepositoryConnector.java:355)
> 	at shaded.org.eclipse.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:67)
> 	at shaded.org.eclipse.aether.connector.basic.BasicRepositoryConnector$DirectExecutor.execute(BasicRepositoryConnector.java:581)
> 	at shaded.org.eclipse.aether.connector.basic.BasicRepositoryConnector.get(BasicRepositoryConnector.java:249)
> 	at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads(DefaultArtifactResolver.java:520)
> 	at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:421)
> 	... 62 more
> Caused by: shaded.org.apache.maven.wagon.TransferFailedException: Connect to oss.sonatype.org:443
[oss.sonatype.org/52.1.234.146, oss.sonatype.org/54.85.199.15, oss.sonatype.org/52.4.249.96,
oss.sonatype.org/52.5.218.160] failed: Connection refused
> 	at shaded.org.apache.maven.wagon.providers.http.AbstractHttpClientWagon.fillInputData(AbstractHttpClientWagon.java:1085)
> 	at shaded.org.apache.maven.wagon.providers.http.AbstractHttpClientWagon.fillInputData(AbstractHttpClientWagon.java:977)
> 	at shaded.org.apache.maven.wagon.StreamWagon.getInputStream(StreamWagon.java:116)
> 	at shaded.org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:88)
> 	at shaded.org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:61)
> 	at shaded.org.eclipse.aether.transport.wagon.WagonTransporter$GetTaskRunner.run(WagonTransporter.java:560)
> 	at shaded.org.eclipse.aether.transport.wagon.WagonTransporter.execute(WagonTransporter.java:427)
> 	at shaded.org.eclipse.aether.transport.wagon.WagonTransporter.get(WagonTransporter.java:404)
> 	at shaded.org.eclipse.aether.connector.basic.BasicRepositoryConnector$GetTaskRunner.runTask(BasicRepositoryConnector.java:447)
> 	at shaded.org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run(BasicRepositoryConnector.java:350)
> 	... 67 more
> Caused by: shaded.org.apache.http.conn.HttpHostConnectException: Connect to oss.sonatype.org:443
[oss.sonatype.org/52.1.234.146, oss.sonatype.org/54.85.199.15, oss.sonatype.org/52.4.249.96,
oss.sonatype.org/52.5.218.160] failed: Connection refused
> 	at shaded.org.apache.http.impl.conn.HttpClientConnectionOperator.connect(HttpClientConnectionOperator.java:140)
> 	at shaded.org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:318)
> 	at shaded.org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:363)
> 	at shaded.org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:219)
> 	at shaded.org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:195)
> 	at shaded.org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:86)
> 	at shaded.org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:108)
> 	at shaded.org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
> 	at shaded.org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
> 	at org.ops4j.pax.url.mvn.internal.wagon.ConfigurableHttpWagon.execute(ConfigurableHttpWagon.java:142)
> 	at shaded.org.apache.maven.wagon.providers.http.AbstractHttpClientWagon.fillInputData(AbstractHttpClientWagon.java:1000)
> 	... 76 more
> Caused by: java.net.ConnectException: Connection refused
> 	at java.net.PlainSocketImpl.socketConnect(Native Method)[:1.8.0_45]
> 	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:345)[:1.8.0_45]
> 	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)[:1.8.0_45]
> 	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)[:1.8.0_45]
> 	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)[:1.8.0_45]
> 	at java.net.Socket.connect(Socket.java:589)[:1.8.0_45]
> 	at shaded.org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:239)
> 	at shaded.org.apache.http.impl.conn.HttpClientConnectionOperator.connect(HttpClientConnectionOperator.java:123)
> 	... 86 more
> 2015-06-26 10:19:07,681 | WARN  | 3]-nio2-thread-2 | KarServiceImpl                 
 | 124 - org.apache.karaf.kar.core - 3.0.3 | Unable to install Kar feature com.bechtle.deployment.terra/1.0.0-SNAPSHOT
> java.io.IOException: Error resolving artifact ch.bechtle.osgi.springmvc:ch.bechtle.osgi.springmvc.blueprint.adapter:jar:0.0.2-SNAPSHOT:
Could not transfer artifact ch.bechtle.osgi.springmvc:ch.bechtle.osgi.springmvc.blueprint.adapter:jar:0.0.2-SNAPSHOT
from/to sonatype.snapshots.deploy (https://oss.sonatype.org/content/repositories/snapshots/):
Connect to oss.sonatype.org:443 [oss.sonatype.org/52.1.234.146, oss.sonatype.org/54.85.199.15,
oss.sonatype.org/52.4.249.96, oss.sonatype.org/52.5.218.160] failed: Connection refused
> 	at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:487)
> 	at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:433)
> 	at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:411)
> 	at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:386)
> 	at org.ops4j.pax.url.mvn.internal.Connection.getInputStream(Connection.java:124)
> 	at java.net.URL.openStream(URL.java:1038)[:1.8.0_45]
> 	at org.apache.karaf.features.internal.BundleManager.getInputStreamForBundle(BundleManager.java:185)
> 	at org.apache.karaf.features.internal.BundleManager.doInstallBundleIfNeeded(BundleManager.java:95)
> 	at org.apache.karaf.features.internal.BundleManager.installBundleIfNeeded(BundleManager.java:89)
> 	at org.apache.karaf.features.internal.FeaturesServiceImpl.doInstallFeature(FeaturesServiceImpl.java:556)
> 	at org.apache.karaf.features.internal.FeaturesServiceImpl.installFeatures(FeaturesServiceImpl.java:419)
> 	at org.apache.karaf.features.internal.FeaturesServiceImpl.installFeature(FeaturesServiceImpl.java:400)
> 	at Proxy189bf845_1147_46d3_8c5f_38ac9909d2ec.installFeature(Unknown Source)
> 	at Proxyc18d6bea_4260_42f8_9c5b_0e8a91b6fe8e.installFeature(Unknown Source)
> 	at org.apache.karaf.kar.internal.KarServiceImpl.installFeatures(KarServiceImpl.java:215)
> 	at org.apache.karaf.kar.internal.KarServiceImpl.install(KarServiceImpl.java:96)
> 	at org.apache.karaf.kar.internal.KarServiceImpl.install(KarServiceImpl.java:84)
> 	at Proxyda77f121_8f18_4c1f_ac9b_fe09dc997944.install(Unknown Source)
> 	at Proxyc829a2d3_f131_4404_9698_1bd546109ee0.install(Unknown Source)
> 	at org.apache.karaf.kar.command.InstallKarCommand.doExecute(InstallKarCommand.java:31)
> 	at org.apache.karaf.shell.console.AbstractAction.execute(AbstractAction.java:33)
> 	at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:39)
> 	at org.apache.karaf.shell.commands.basic.AbstractCommand.execute(AbstractCommand.java:33)
> 	at Proxy37851065_0b38_41f4_bbc1_d518be985f9a.execute(Unknown Source)
> 	at Proxy37851065_0b38_41f4_bbc1_d518be985f9a.execute(Unknown Source)
> 	at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)
> 	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)
> 	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)
> 	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
> 	at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:92)
> 	at org.apache.karaf.shell.ssh.ShellCommand$1.run(ShellCommand.java:124)
> 	at java.security.AccessController.doPrivileged(Native Method)[:1.8.0_45]
> 	at org.apache.karaf.jaas.modules.JaasHelper.doAs(JaasHelper.java:77)
> 	at org.apache.karaf.shell.ssh.ShellCommand.start(ShellCommand.java:120)
> 	at org.apache.sshd.server.channel.ChannelSession.handleExec(ChannelSession.java:422)[28:org.apache.sshd.core:0.12.0]
> 	at org.apache.sshd.server.channel.ChannelSession.handleRequest(ChannelSession.java:304)[28:org.apache.sshd.core:0.12.0]
> 	at org.apache.sshd.server.channel.ChannelSession$ChannelSessionRequestHandler.process(ChannelSession.java:576)[28:org.apache.sshd.core:0.12.0]
> 	at org.apache.sshd.server.channel.ChannelSession$ChannelSessionRequestHandler.process(ChannelSession.java:574)[28:org.apache.sshd.core:0.12.0]
> 	at org.apache.sshd.common.channel.AbstractChannel.handleRequest(AbstractChannel.java:96)[28:org.apache.sshd.core:0.12.0]
> 	at org.apache.sshd.common.session.AbstractConnectionService.channelRequest(AbstractConnectionService.java:261)[28:org.apache.sshd.core:0.12.0]
> 	at org.apache.sshd.common.session.AbstractConnectionService.process(AbstractConnectionService.java:139)[28:org.apache.sshd.core:0.12.0]
> 	at org.apache.sshd.common.session.AbstractSession.doHandleMessage(AbstractSession.java:399)[28:org.apache.sshd.core:0.12.0]
> 	at org.apache.sshd.common.session.AbstractSession.handleMessage(AbstractSession.java:295)[28:org.apache.sshd.core:0.12.0]
> 	at org.apache.sshd.common.session.AbstractSession.decode(AbstractSession.java:731)[28:org.apache.sshd.core:0.12.0]
> 	at org.apache.sshd.common.session.AbstractSession.messageReceived(AbstractSession.java:277)[28:org.apache.sshd.core:0.12.0]
> 	at org.apache.sshd.common.AbstractSessionIoHandler.messageReceived(AbstractSessionIoHandler.java:54)[28:org.apache.sshd.core:0.12.0]
> 	at org.apache.sshd.common.io.nio2.Nio2Session$1.onCompleted(Nio2Session.java:187)[28:org.apache.sshd.core:0.12.0]
> 	at org.apache.sshd.common.io.nio2.Nio2Session$1.onCompleted(Nio2Session.java:173)[28:org.apache.sshd.core:0.12.0]
> 	at org.apache.sshd.common.io.nio2.Nio2CompletionHandler$1.run(Nio2CompletionHandler.java:32)
> 	at java.security.AccessController.doPrivileged(Native Method)[:1.8.0_45]
> 	at org.apache.sshd.common.io.nio2.Nio2CompletionHandler.completed(Nio2CompletionHandler.java:30)[28:org.apache.sshd.core:0.12.0]
> 	at sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:126)[:1.8.0_45]
> 	at sun.nio.ch.Invoker$2.run(Invoker.java:218)[:1.8.0_45]
> 	at sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:112)[:1.8.0_45]
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_45]
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_45]
> 	at java.lang.Thread.run(Thread.java:745)[:1.8.0_45]
> When I extract the KAR I see that the bundle which should be resolved is available and
has following path:
> /repository/ch/bechtle/osgi/springmvc/ch.bechtle.osgi.springmvc.blueprint.adapter/0.0.2-SNAPSHOT/ch.bechtle.osgi.springmvc.blueprint.adapter-0.0.2-SNAPSHOT.jar
> The feature file (repository/com/bechtle/build/com.bechtle.deployment.terra/1.0.0-SNAPSHOT/com.bechtle.deployment.terra-1.0.0-SNAPSHOT-features.xml)
looks like this:
> <?xml version="1.0" encoding="UTF-8"?><features xmlns="http://karaf.apache.org/xmlns/features/v1.2.1"
name="com.bechtle.deployment.terra">
>     <feature description="com.bechtle.deployment.terra" name="com.bechtle.deployment.terra"
version="1.0.0-SNAPSHOT">
>         <bundle>mvn:ch.bechtle.osgi.springmvc/ch.bechtle.osgi.springmvc.blueprint.adapter/0.0.2-SNAPSHOT</bundle>
> ....
>     </feature>
> </features>
> Additionally, org.ops4j.pax.url.mvn.cfg has following content:
> ################################################################################
> #
> #    Licensed to the Apache Software Foundation (ASF) under one or more
> #    contributor license agreements.  See the NOTICE file distributed with
> #    this work for additional information regarding copyright ownership.
> #    The ASF licenses this file to You under the Apache License, Version 2.0
> #    (the "License"); you may not use this file except in compliance with
> #    the License.  You may obtain a copy of the License at
> #
> #       http://www.apache.org/licenses/LICENSE-2.0
> #
> #    Unless required by applicable law or agreed to in writing, software
> #    distributed under the License is distributed on an "AS IS" BASIS,
> #    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
> #    See the License for the specific language governing permissions and
> #    limitations under the License.
> #
> ################################################################################
> #
> # If set to true, the following property will not allow any certificate to be used
> # when accessing Maven repositories through SSL
> #
> #org.ops4j.pax.url.mvn.certificateCheck=
> #
> # Path to the local Maven settings file.
> # The repositories defined in this file will be automatically added to the list
> # of default repositories if the 'org.ops4j.pax.url.mvn.repositories' property
> # below is not set.
> # The following locations are checked for the existence of the settings.xml file
> #   * 1. looks for the specified url
> #   * 2. if not found looks for ${user.home}/.m2/settings.xml
> #   * 3. if not found looks for ${maven.home}/conf/settings.xml
> #   * 4. if not found looks for ${M2_HOME}/conf/settings.xml
> #
> #org.ops4j.pax.url.mvn.settings=
> #
> # 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=
> #
> # Default this to false. It's just weird to use undocumented repos
> #
> org.ops4j.pax.url.mvn.useFallbackRepositories=false
> #
> # Uncomment if you don't wanna use the proxy settings
> # from the Maven conf/settings.xml file
> #
> # org.ops4j.pax.url.mvn.proxySupport=false
> #
> # Comma separated list of repositories scanned when resolving an artifact.
> # Those repositories will be checked before iterating through the
> #    below list of repositories and even before the local repository
> # A repository url can be appended with zero or more of the following flags:
> #    @snapshots  : the repository contains snaphots
> #    @noreleases : the repository does not contain any released artifacts
> #
> # The following property value will add the system folder as a repo.
> #
> org.ops4j.pax.url.mvn.defaultRepositories=\
>     file:${karaf.home}/${karaf.default.repository}@id=system.repository@snapshots,\
>     file:${karaf.data}/kar@id=kar.repository@multi@snapshots
> # Use the default local repo (e.g.~/.m2/repository) as a "remote" repo
> #org.ops4j.pax.url.mvn.defaultLocalRepoAsRemote=false
> #
> # Comma separated list of repositories scanned when resolving an artifact.
> # The default list includes the following repositories:
> #    http://repo1.maven.org/maven2@id=central
> #    http://repository.springsource.com/maven/bundles/release@id=spring.ebr
> #    http://repository.springsource.com/maven/bundles/external@id=spring.ebr.external
> #    http://zodiac.springsource.com/maven/bundles/release@id=gemini
> #    http://repository.apache.org/content/groups/snapshots-group@id=apache@snapshots@noreleases
> #    https://oss.sonatype.org/content/repositories/snapshots@id=sonatype.snapshots.deploy@snapshots@noreleases
> #    https://oss.sonatype.org/content/repositories/ops4j-snapshots@id=ops4j.sonatype.snapshots.deploy@snapshots@noreleases
> # To add repositories to the default ones, prepend '+' to the list of repositories
> # to add.
> # A repository url can be appended with zero or more of the following flags:
> #    @snapshots  : the repository contains snapshots
> #    @noreleases : the repository does not contain any released artifacts
> #    @id=repository.id : the id for the repository, just like in the settings.xml this
is optional but recommended
> #
> org.ops4j.pax.url.mvn.repositories= \
>     http://repo1.maven.org/maven2@id=central, \
>     http://repository.springsource.com/maven/bundles/release@id=spring.ebr.release, \
>     http://repository.springsource.com/maven/bundles/external@id=spring.ebr.external,
\
>     http://zodiac.springsource.com/maven/bundles/release@id=gemini, \
>     http://repository.apache.org/content/groups/snapshots-group@id=apache@snapshots@noreleases,
\
>     https://oss.sonatype.org/content/repositories/snapshots@id=sonatype.snapshots.deploy@snapshots@noreleases,
\
>     https://oss.sonatype.org/content/repositories/ops4j-snapshots@id=ops4j.sonatype.snapshots.deploy@snapshots@noreleases



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message