Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-3824

Cave is not able to deal with the CXF namespace handler bundle

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: cave-4.0.0
    • Fix Version/s: cave-4.2.0
    • Component/s: cave
    • Labels:
      None

      Description

      When proxying or using a local Maven repository (using cave:repository-create -l or cave:repository-proxy commands), Cave is not able to deal with some artifacts.

      It's especially true for one bundle from CXF:

      2015-07-02 11:15:58,297 | ERROR | nsole user karaf | ShellUtil                        | 43 - org.apache.karaf.shell.core - 4.0.0 | Exception caught while executing command
      java.lang.IllegalArgumentException: Duplicate 'osgi.service.blueprint.namespace' in: org.apache.aries.blueprint.NamespaceHandler;osgi.service.blueprint.namespace="http://cxf.apache.org/blueprint/core",org.apache.aries.blueprint.NamespaceHandler;osgi.service.blueprint.namespace="http://cxf.apache.org/configuration/beans",org.apache.aries.blueprint.NamespaceHandler;osgi.service.blueprint.namespace="http://cxf.apache.org/configuration/parameterized-types",org.apache.aries.blueprint.NamespaceHandler;osgi.service.blueprint.namespace="http://cxf.apache.org/configuration/security"org.apache.aries.blueprint.NamespaceHandler;osgi.service.blueprint.namespace="http://schemas.xmlsoap.org/wsdl/",
              at org.apache.karaf.features.internal.resolver.ResourceBuilder.parseStandardHeader(ResourceBuilder.java:1092)[73:org.apache.karaf.cave.server.storage:4.0.0.SNAPSHOT]
              at org.apache.karaf.features.internal.resolver.ResourceBuilder.build(ResourceBuilder.java:213)[73:org.apache.karaf.cave.server.storage:4.0.0.SNAPSHOT]
              at org.apache.karaf.features.internal.resolver.ResourceBuilder.build(ResourceBuilder.java:65)[73:org.apache.karaf.cave.server.storage:4.0.0.SNAPSHOT]
              at org.apache.karaf.cave.server.storage.CaveRepositoryImpl.createResource(CaveRepositoryImpl.java:299)[73:org.apache.karaf.cave.server.storage:4.0.0.SNAPSHOT]
              at org.apache.karaf.cave.server.storage.CaveRepositoryImpl.createResource(CaveRepositoryImpl.java:293)[73:org.apache.karaf.cave.server.storage:4.0.0.SNAPSHOT]
              at org.apache.karaf.cave.server.storage.CaveRepositoryImpl.scan(CaveRepositoryImpl.java:211)[73:org.apache.karaf.cave.server.storage:4.0.0.SNAPSHOT]
              at org.apache.karaf.cave.server.storage.CaveRepositoryImpl.scan(CaveRepositoryImpl.java:203)[73:org.apache.karaf.cave.server.storage:4.0.0.SNAPSHOT]
              at org.apache.karaf.cave.server.storage.CaveRepositoryImpl.scan(CaveRepositoryImpl.java:203)[73:org.apache.karaf.cave.server.storage:4.0.0.SNAPSHOT]
              at org.apache.karaf.cave.server.storage.CaveRepositoryImpl.scan(CaveRepositoryImpl.java:203)[73:org.apache.karaf.cave.server.storage:4.0.0.SNAPSHOT]
              at org.apache.karaf.cave.server.storage.CaveRepositoryImpl.scan(CaveRepositoryImpl.java:203)[73:org.apache.karaf.cave.server.storage:4.0.0.SNAPSHOT]
              at org.apache.karaf.cave.server.storage.CaveRepositoryImpl.scan(CaveRepositoryImpl.java:203)[73:org.apache.karaf.cave.server.storage:4.0.0.SNAPSHOT]
              at org.apache.karaf.cave.server.storage.CaveRepositoryImpl.scan(CaveRepositoryImpl.java:203)[73:org.apache.karaf.cave.server.storage:4.0.0.SNAPSHOT]
              at org.apache.karaf.cave.server.storage.CaveRepositoryImpl.scan(CaveRepositoryImpl.java:168)[73:org.apache.karaf.cave.server.storage:4.0.0.SNAPSHOT]
              at org.apache.karaf.cave.server.command.RepositoryCreateCommand.doExecute(RepositoryCreateCommand.java:56)[68:org.apache.karaf.cave.server.command:4.0.0.SNAPSHOT]
              at org.apache.karaf.cave.server.command.CaveRepositoryCommandSupport.execute(CaveRepositoryCommandSupport.java:37)[68:org.apache.karaf.cave.server.command:4.0.0.SNAPSHOT]
              at org.apache.karaf.shell.impl.action.command.ActionCommand.execute(ActionCommand.java:83)[43:org.apache.karaf.shell.core:4.0.0]
              at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:67)[43:org.apache.karaf.shell.core:4.0.0]
              at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:87)[43:org.apache.karaf.shell.core:4.0.0]
              at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:480)[43:org.apache.karaf.shell.core:4.0.0]
              at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:406)[43:org.apache.karaf.shell.core:4.0.0]
              at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[43:org.apache.karaf.shell.core:4.0.0]
              at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:182)[43:org.apache.karaf.shell.core:4.0.0]
              at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:119)[43:org.apache.karaf.shell.core:4.0.0]
              at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:94)[43:org.apache.karaf.shell.core:4.0.0]
              at org.apache.karaf.shell.impl.console.ConsoleSessionImpl.run(ConsoleSessionImpl.java:267)[43:org.apache.karaf.shell.core:4.0.0]
              at java.lang.Thread.run(Thread.java:745)[:1.8.0_45]
      

        Attachments

          Activity

            People

            • Assignee:
              jbonofre Jean-Baptiste Onofré
              Reporter:
              jbonofre Jean-Baptiste Onofré
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: