Problem starting karaf 2.4.1, can't find artifact

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Problem starting karaf 2.4.1, can't find artifact

hannez82
Hi,

We are upgrading from 2.3.0 to 2.4.1 but get strange problems while starting the karaf. For some reason the org.ops4j.pax.logging.pax-logging-api throws an error very early and after that all kinds of things goes wrong. This happen often one some computers and never on other computers. I've done some debugging and it seems like the logging-api(?!?!) starts something that tries to verify a feature. However, the property org.ops4j.pax.url.mvn.repositories inside etc/org.ops4j.pax.url.mvn.cfg is not read yet so the listsize of the default repositories is 0. The stack:


2015-04-27 08:18:30,446 | WARN  | pool-3-thread-1  |  |  | mvn.internal.AetherBasedResolver  486 | 4 - org.ops4j.pax.logging.pax-logging-api - 1.8.1 | Error resolving artifactorg.apache.karaf.service:org.apache.karaf.service.guard:jar:2.4.1:Could not find artifact org.apache.karaf.service:org.apache.karaf.service.guard:jar:2.4.1 in repo_-422833969 (file:<feature-file>)
shaded.org.eclipse.aether.resolution.ArtifactResolutionException: Could not find artifact org.apache.karaf.service:org.apache.karaf.service.guard:jar:2.4.1 in repo_-422833969 (file:<Repo>)
at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:444)[1:org.ops4j.pax.url.mvn:2.3.0]
at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:246)[1:org.ops4j.pax.url.mvn:2.3.0]
at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:223)[1:org.ops4j.pax.url.mvn:2.3.0]
at shaded.org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:294)[1:org.ops4j.pax.url.mvn:2.3.0]
at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:476)[1:org.ops4j.pax.url.mvn:2.3.0]
at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:433)[1:org.ops4j.pax.url.mvn:2.3.0]
at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:411)[1:org.ops4j.pax.url.mvn:2.3.0]
at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:386)[1:org.ops4j.pax.url.mvn:2.3.0]
at org.ops4j.pax.url.mvn.internal.Connection.getInputStream(Connection.java:124)[1:org.ops4j.pax.url.mvn:2.3.0]
at java.net.URL.openStream(Unknown Source)[:1.6.0_37]
at org.apache.karaf.features.internal.FeaturesServiceImpl.installBundleIfNeeded(FeaturesServiceImpl.java:923)[7:org.apache.karaf.features.core:2.4.1]
at org.apache.karaf.features.internal.FeaturesServiceImpl.doInstallFeature(FeaturesServiceImpl.java:732)[7:org.apache.karaf.features.core:2.4.1]
at org.apache.karaf.features.internal.FeaturesServiceImpl.doInstallFeatures(FeaturesServiceImpl.java:491)[7:org.apache.karaf.features.core:2.4.1]
at org.apache.karaf.features.internal.FeaturesServiceImpl$1.call(FeaturesServiceImpl.java:461)[7:org.apache.karaf.features.core:2.4.1]
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)[:1.6.0_37]
at java.util.concurrent.FutureTask.run(Unknown Source)[:1.6.0_37]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)[:1.6.0_37]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)[:1.6.0_37]
at java.lang.Thread.run(Unknown Source)[:1.6.0_37]
Caused by: shaded.org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact org.apache.karaf.service:org.apache.karaf.service.guard:jar:2.4.1 in repo_-422833969 (file:<Repo>)
at shaded.org.eclipse.aether.connector.basic.ArtifactTransportListener.transferFailed(ArtifactTransportListener.java:39)[1:org.ops4j.pax.url.mvn:2.3.0]
at shaded.org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run(BasicRepositoryConnector.java:355)[1:org.ops4j.pax.url.mvn:2.3.0]
at shaded.org.eclipse.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:67)[1:org.ops4j.pax.url.mvn:2.3.0]
at shaded.org.eclipse.aether.connector.basic.BasicRepositoryConnector$DirectExecutor.execute(BasicRepositoryConnector.java:581)[1:org.ops4j.pax.url.mvn:2.3.0]
at shaded.org.eclipse.aether.connector.basic.BasicRepositoryConnector.get(BasicRepositoryConnector.java:249)[1:org.ops4j.pax.url.mvn:2.3.0]
at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads(DefaultArtifactResolver.java:520)[1:org.ops4j.pax.url.mvn:2.3.0]
at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:421)[1:org.ops4j.pax.url.mvn:2.3.0]
... 18 more

Does any one know why this happen? We are kind of stuck...

Best regards, Hannes
Loading...