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] [Created] (KARAF-3784) Kar hotdeployment doesn't work
Date Fri, 12 Jun 2015 12:43:00 GMT
Jean-Baptiste Onofré created KARAF-3784:
-------------------------------------------

             Summary: Kar hotdeployment doesn't work
                 Key: KARAF-3784
                 URL: https://issues.apache.org/jira/browse/KARAF-3784
             Project: Karaf
          Issue Type: Bug
          Components: karaf-kar
    Affects Versions: 4.0.0.M3
            Reporter: Jean-Baptiste Onofré
            Assignee: Jean-Baptiste Onofré
            Priority: Blocker
             Fix For: 4.0.0


Dropping a kar file in the deploy folder doesn't work.

For instance, if we try the hotdeployment of the my-kar.kar file provided in the demos, we
can see the kar file considered by the kar deployer and we can see it with the kar:list command:

{code}
karaf@root()> kar:list
KAR Name
---------------------
my-kar-4.0.0-SNAPSHOT
{code}

However, the kar file is not effectively deployed, as Karaf tries the resolve the features
XML on remote Maven repo instead of using the kar content:

{code}
2015-06-12 14:37:41,951 | INFO  | -SNAPSHOT/deploy | KarArtifactInstaller             | 26
- org.apache.karaf.deployer.kar - 4.0.0.SNAPSHOT | Installing KAR file /home/jbonofre/Workspace/karaf/assemblies/apache-karaf/target/apache-karaf-4.0.0-SNAPSHOT/deploy/my-kar-4.0.0-SNAPSHOT.kar
2015-06-12 14:37:44,083 | WARN  | -SNAPSHOT/deploy | AetherBasedResolver              | 1
- org.ops4j.pax.logging.pax-logging-api - 1.8.3 | Error resolving artifactorg.apache.karaf.demos:my-kar:xml:features:4.0.0-SNAPSHOT:Could
not find artifact org.apache.karaf.demos:my-kar:xml:features:4.0.0-SNAPSHOT in apache (http://repository.apache.org/content/groups/snapshots-group/)
shaded.org.eclipse.aether.resolution.ArtifactResolutionException: Could not find artifact
org.apache.karaf.demos:my-kar:xml:features:4.0.0-SNAPSHOT in apache (http://repository.apache.org/content/groups/snapshots-group/)
        at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:444)[6:org.ops4j.pax.url.mvn:2.4.1]
        at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:246)[6:org.ops4j.pax.url.mvn:2.4.1]
        at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:223)[6:org.ops4j.pax.url.mvn:2.4.1]
        at shaded.org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:294)[6:org.ops4j.pax.url.mvn:2.4.1]
        at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:573)[6:org.ops4j.pax.url.mvn:2.4.1]
        at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:528)[6:org.ops4j.pax.url.mvn:2.4.1]
        at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:506)[6:org.ops4j.pax.url.mvn:2.4.1]
        at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:481)[6:org.ops4j.pax.url.mvn:2.4.1]
        at org.ops4j.pax.url.mvn.internal.Connection.getInputStream(Connection.java:123)[6:org.ops4j.pax.url.mvn:2.4.1]
        at java.net.URL.openStream(URL.java:1037)[:1.7.0_67]
        at org.apache.karaf.features.internal.service.RepositoryImpl.load(RepositoryImpl.java:80)[7:org.apache.karaf.features.core:4.0.0.SNAPSHOT]
        at org.apache.karaf.features.internal.service.FeaturesServiceImpl.loadRepository(FeaturesServiceImpl.java:385)[7:org.apache.karaf.features.core:4.0.0.SNAPSHOT]
        at org.apache.karaf.features.internal.service.FeaturesServiceImpl.addRepository(FeaturesServiceImpl.java:405)[7:org.apache.karaf.features.core:4.0.0.SNAPSHOT]
        at org.apache.karaf.features.internal.service.FeaturesServiceImpl.addRepository(FeaturesServiceImpl.java:396)[7:org.apache.karaf.features.core:4.0.0.SNAPSHOT]
        at org.apache.karaf.kar.internal.KarServiceImpl.addToFeaturesRepositories(KarServiceImpl.java:193)[35:org.apache.karaf.kar.core:4.0.0.SNAPSHOT]
        at org.apache.karaf.kar.internal.KarServiceImpl.install(KarServiceImpl.java:94)[35:org.apache.karaf.kar.core:4.0.0.SNAPSHOT]
        at org.apache.karaf.kar.internal.KarServiceImpl.install(KarServiceImpl.java:85)[35:org.apache.karaf.kar.core:4.0.0.SNAPSHOT]
        at org.apache.karaf.deployer.kar.KarArtifactInstaller.install(KarArtifactInstaller.java:50)[26:org.apache.karaf.deployer.kar:4.0.0.SNAPSHOT]
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.install(DirectoryWatcher.java:931)[4:org.apache.felix.fileinstall:3.5.0]
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.install(DirectoryWatcher.java:865)[4:org.apache.felix.fileinstall:3.5.0]
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:482)[4:org.apache.felix.fileinstall:3.5.0]
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:358)[4:org.apache.felix.fileinstall:3.5.0]
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:310)[4:org.apache.felix.fileinstall:3.5.0]
Caused by: shaded.org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact
org.apache.karaf.demos:my-kar:xml:features:4.0.0-SNAPSHOT in apache (http://repository.apache.org/content/groups/snapshots-group/)
        at shaded.org.eclipse.aether.connector.basic.ArtifactTransportListener.transferFailed(ArtifactTransportListener.java:39)[6:org.ops4j.pax.url.mvn:2.4.1]
        at shaded.org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run(BasicRepositoryConnector.java:355)[6:org.ops4j.pax.url.mvn:2.4.1]
        at shaded.org.eclipse.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:67)[6:org.ops4j.pax.url.mvn:2.4.1]
        at shaded.org.eclipse.aether.connector.basic.BasicRepositoryConnector$DirectExecutor.execute(BasicRepositoryConnector.java:581)[6:org.ops4j.pax.url.mvn:2.4.1]
        at shaded.org.eclipse.aether.connector.basic.BasicRepositoryConnector.get(BasicRepositoryConnector.java:249)[6:org.ops4j.pax.url.mvn:2.4.1]
        at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads(DefaultArtifactResolver.java:520)[6:org.ops4j.pax.url.mvn:2.4.1]
        at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:421)[6:org.ops4j.pax.url.mvn:2.4.1]
        ... 22 more
2015-06-12 14:37:44,086 | WARN  | -SNAPSHOT/deploy | KarServiceImpl                   | 35
- org.apache.karaf.kar.core - 4.0.0.SNAPSHOT | Unable to add repository 'mvn:org.apache.karaf.demos/my-kar/4.0.0-SNAPSHOT/xml/features'
java.io.IOException: Error resolving artifact org.apache.karaf.demos:my-kar:xml:features:4.0.0-SNAPSHOT:
Could not find artifact org.apache.karaf.demos:my-kar:xml:features:4.0.0-SNAPSHOT in apache
(http://repository.apache.org/content/groups/snapshots-group/) : mvn:org.apache.karaf.demos/my-kar/4.0.0-SNAPSHOT/xml/features
        at org.apache.karaf.features.internal.service.RepositoryImpl.load(RepositoryImpl.java:85)[7:org.apache.karaf.features.core:4.0.0.SNAPSHOT]
        at org.apache.karaf.features.internal.service.FeaturesServiceImpl.loadRepository(FeaturesServiceImpl.java:385)[7:org.apache.karaf.features.core:4.0.0.SNAPSHOT]
        at org.apache.karaf.features.internal.service.FeaturesServiceImpl.addRepository(FeaturesServiceImpl.java:405)[7:org.apache.karaf.features.core:4.0.0.SNAPSHOT]
        at org.apache.karaf.features.internal.service.FeaturesServiceImpl.addRepository(FeaturesServiceImpl.java:396)[7:org.apache.karaf.features.core:4.0.0.SNAPSHOT]
        at org.apache.karaf.kar.internal.KarServiceImpl.addToFeaturesRepositories(KarServiceImpl.java:193)[35:org.apache.karaf.kar.core:4.0.0.SNAPSHOT]
        at org.apache.karaf.kar.internal.KarServiceImpl.install(KarServiceImpl.java:94)[35:org.apache.karaf.kar.core:4.0.0.SNAPSHOT]
        at org.apache.karaf.kar.internal.KarServiceImpl.install(KarServiceImpl.java:85)[35:org.apache.karaf.kar.core:4.0.0.SNAPSHOT]
        at org.apache.karaf.deployer.kar.KarArtifactInstaller.install(KarArtifactInstaller.java:50)[26:org.apache.karaf.deployer.kar:4.0.0.SNAPSHOT]
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.install(DirectoryWatcher.java:931)[4:org.apache.felix.fileinstall:3.5.0]
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.install(DirectoryWatcher.java:865)[4:org.apache.felix.fileinstall:3.5.0]
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:482)[4:org.apache.felix.fileinstall:3.5.0]
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:358)[4:org.apache.felix.fileinstall:3.5.0]
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:310)[4:org.apache.felix.fileinstall:3.5.0]
Caused by: java.io.IOException: Error resolving artifact org.apache.karaf.demos:my-kar:xml:features:4.0.0-SNAPSHOT:
Could not find artifact org.apache.karaf.demos:my-kar:xml:features:4.0.0-SNAPSHOT in apache
(http://repository.apache.org/content/groups/snapshots-group/)
        at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:584)[6:org.ops4j.pax.url.mvn:2.4.1]
        at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:528)[6:org.ops4j.pax.url.mvn:2.4.1]
        at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:506)[6:org.ops4j.pax.url.mvn:2.4.1]
        at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:481)[6:org.ops4j.pax.url.mvn:2.4.1]
        at org.ops4j.pax.url.mvn.internal.Connection.getInputStream(Connection.java:123)[6:org.ops4j.pax.url.mvn:2.4.1]
        at java.net.URL.openStream(URL.java:1037)[:1.7.0_67]
        at org.apache.karaf.features.internal.service.RepositoryImpl.load(RepositoryImpl.java:80)[7:org.apache.karaf.features.core:4.0.0.SNAPSHOT]
        ... 12 more
{code}



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

Mime
View raw message