cschneider / Karaf-Tutorial

http://cschneider.github.io/Karaf-Tutorial/
Apache License 2.0
273 stars 303 forks source link

Unresolved constraint in bundle org.ops4j.pax.url.mvn [1]: #49

Closed Yang31415926 closed 6 years ago

Yang31415926 commented 6 years ago

i run karaf in spring on inteiilj idea. and it throws this exception: i try many ways to resolve this problem. but no one is effective. can you tell me how to resolve it.thanks a lot!!!


*******************************************************************************
*** Karaf Instance Number: 1 at D:\kettle\.\system\kar ***
***   af\caches\kettleenvironment\data-1                                    ***
*** FastBin Provider Port:52901                                             ***
*** Karaf Port:8802                                                         ***
*** OSGI Service Port:9051                                                  ***
*******************************************************************************
Apache Karaf starting up. Press Enter to open the shell now...
2018-08-29 19:04:18.428  INFO 200 --- [  restartedMain] org.apache.karaf.main.Main               : Installing and starting initial bundles
2018-08-29 19:04:21.450  INFO 200 --- [  restartedMain] org.apache.karaf.main.Main               : All initial bundles installed and set to start
2018-08-29 19:04:21.588  INFO 200 --- [      Thread-41] org.apache.karaf.main.Main               : Lock acquired. Setting startlevel to 100
org.osgi.framework.BundleException: Unresolved constraint in bundle org.ops4j.pax.url.mvn [1]: Unable to resolve 1.0: missing requirement [1.0] osgi.wiring.package; (&(osgi.wiring.package=org.slf4j.spi)(version>=1.6.0)(!(version>=2.0.0)))
    at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4002)
    at org.apache.felix.framework.Felix.startBundle(Felix.java:2045)
    at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1299)
    at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:304)
    at java.lang.Thread.run(Thread.java:748)
ERROR: Bundle org.ops4j.pax.url.mvn [1] Error starting mvn:org.ops4j.pax.url/pax-url-aether/2.3.0 (org.osgi.framework.BundleException: Unresolved constraint in bundle org.ops4j.pax.url.mvn [1]: Unable to resolve 1.0: missing requirement [1.0] osgi.wiring.package; (&(osgi.wiring.package=org.slf4j.spi)(version>=1.6.0)(!(version>=2.0.0))))
 22% [===============>                                                        ]2018-08-29 19:04:21.703  INFO 200 --- [FelixStartLevel] o.a.karaf.service.guard.impl.Activator   : No role-based security for services as its system property is not set: karaf.secured.services
 27% [===================>                                                    ]Creating configuration from org.apache.aries.rsa.provider.fastbin.cfg
Creating configuration from org.apache.karaf.command.acl.bundle.cfg
Creating configuration from org.apache.karaf.command.acl.shell.cfg
Creating configuration from mondrian.cfg
Creating configuration from org.pentaho.caching-default.cfg
Creating configuration from pentaho.marketplace.di.cfg
Creating configuration from jmx.acl.java.lang.Memory.cfg
Creating configuration from org.apache.felix.fileinstall-deploy.cfg
Creating configuration from org.apache.karaf.webconsole.cfg
Creating configuration from org.apache.karaf.kar.cfg
Creating configuration from jmx.acl.org.apache.karaf.config.cfg
Creating configuration from pentaho.metaverse.cfg
Creating configuration from jmx.acl.org.apache.karaf.security.jmx.cfg
Creating configuration from org.apache.karaf.command.acl.kar.cfg
Creating configuration from org.apache.karaf.shell.cfg
Creating configuration from jmx.acl.org.apache.karaf.bundle.cfg
Creating configuration from org.apache.karaf.features.obr.cfg
Creating configuration from org.pentaho.pdi.engine.spark.cfg
Creating configuration from org.ops4j.pax.url.mvn.cfg
Creating configuration from jmx.acl.cfg
Creating configuration from org.ops4j.pax.web.cfg
Creating configuration from jmx.acl.osgi.compendium.cm.cfg
Creating configuration from org.apache.karaf.features.cfg
Creating configuration from org.apache.activemq.webconsole.cfg
Creating configuration from org.apache.karaf.features.repos.cfg
Creating configuration from org.apache.karaf.management.cfg
Creating configuration from org.apache.karaf.command.acl.scope_bundle.cfg
Creating configuration from org.ops4j.pax.logging.cfg
Creating configuration from org.apache.karaf.jaas.cfg
Creating configuration from pentaho.geo.roles.cfg
Creating configuration from org.apache.karaf.command.acl.feature.cfg
Creating configuration from org.apache.karaf.command.acl.system.cfg
Creating configuration from org.apache.karaf.log.cfg
Creating configuration from org.apache.karaf.command.acl.config.cfg
Creating configuration from org.apache.karaf.command.acl.jaas.cfg
Creating configuration from org.apache.activemq.server-default.cfg
Creating configuration from pentaho.big.data.impl.cluster.cfg
Creating configuration from org.pentaho.features.cfg
 43% [==============================>                                         ]2018-08-29 19:04:22.791  INFO 200 --- [FelixStartLevel] o.a.a.b.c.BlueprintContainerImpl         : Bundle pentaho-webjars-deployer is waiting for namespace handlers [http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0]
 54% [======================================>                                 ]2018-08-29 19:04:22.884  INFO 200 --- [FelixStartLevel] o.a.a.b.c.BlueprintContainerImpl         : Bundle org.apache.karaf.features.core is waiting for dependencies [(&(url.handler.protocol=mvn)(objectClass=org.osgi.service.url.URLStreamHandlerService))]
 63% [=============================================>                          ]2018-08-29 19:04:22.907  INFO 200 --- [FelixStartLevel] o.a.a.b.c.BlueprintContainerImpl         : Bundle org.apache.karaf.features.command is waiting for namespace handlers [http://karaf.apache.org/xmlns/shell/v1.1.0]
 65% [==============================================>                         ]2018-08-29 19:04:22.926  INFO 200 --- [FelixStartLevel] .k.s.s.i.SecuredCommandConfigTransformer : Generating command ACL config org.apache.karaf.command.acl.kar into service ACL configs [org.apache.karaf.service.acl.command.kar.uninstall, org.apache.karaf.service.acl.command.kar.install]
2018-08-29 19:04:22.959  INFO 200 --- [FelixStartLevel] .k.s.s.i.SecuredCommandConfigTransformer : Generating command ACL config org.apache.karaf.command.acl.config into service ACL configs [org.apache.karaf.service.acl.command.config.property-append, org.apache.karaf.service.acl.command.config.property-delete, org.apache.karaf.service.acl.command.config.property-set, org.apache.karaf.service.acl.command.config.edit, org.apache.karaf.service.acl.command.config.update, org.apache.karaf.service.acl.command.config.cancel, org.apache.karaf.service.acl.command.config.delete]
2018-08-29 19:04:23.070  INFO 200 --- [FelixStartLevel] .k.s.s.i.SecuredCommandConfigTransformer : Generating command ACL config org.apache.karaf.command.acl.feature into service ACL configs [org.apache.karaf.service.acl.command.feature.uninstall, org.apache.karaf.service.acl.command.feature.install]
2018-08-29 19:04:23.097  INFO 200 --- [FelixStartLevel] .k.s.s.i.SecuredCommandConfigTransformer : Generating command ACL config org.apache.karaf.command.acl.bundle into service ACL configs [org.apache.karaf.service.acl.command.bundle.watch, org.apache.karaf.service.acl.command.bundle.update, org.apache.karaf.service.acl.command.bundle.install, org.apache.karaf.service.acl.command.bundle.uninstall, org.apache.karaf.service.acl.command.bundle.refresh, org.apache.karaf.service.acl.command.bundle.restart, org.apache.karaf.service.acl.command.bundle.stop, org.apache.karaf.service.acl.command.bundle.start]
2018-08-29 19:04:23.201  INFO 200 --- [FelixStartLevel] .k.s.s.i.SecuredCommandConfigTransformer : Generating command ACL config org.apache.karaf.command.acl.shell into service ACL configs [org.apache.karaf.service.acl.command.shell.java, org.apache.karaf.service.acl.command.shell.new, org.apache.karaf.service.acl.command.shell.edit, org.apache.karaf.service.acl.command.shell.exec]
2018-08-29 19:04:23.255  INFO 200 --- [FelixStartLevel] .k.s.s.i.SecuredCommandConfigTransformer : Generating command ACL config org.apache.karaf.command.acl.system into service ACL configs [org.apache.karaf.service.acl.command.system.property, org.apache.karaf.service.acl.command.system.shutdown, org.apache.karaf.service.acl.command.system.start-level]
2018-08-29 19:04:23.298  INFO 200 --- [FelixStartLevel] .k.s.s.i.SecuredCommandConfigTransformer : Generating command ACL config org.apache.karaf.command.acl.jaas into service ACL configs [org.apache.karaf.service.acl.command.jaas.update]
2018-08-29 19:04:23.312  INFO 200 --- [FelixStartLevel] .k.s.s.i.SecuredCommandConfigTransformer : Generating command ACL config org.apache.karaf.command.acl.scope_bundle into service ACL configs [org.apache.karaf.service.acl.command.scope_bundle.shell, org.apache.karaf.service.acl.command.scope_bundle.packages, org.apache.karaf.service.acl.command.scope_bundle.admin, org.apache.karaf.service.acl.command.scope_bundle.ssh, org.apache.karaf.service.acl.command.scope_bundle.osgi, org.apache.karaf.service.acl.command.scope_bundle.config, org.apache.karaf.service.acl.command.scope_bundle.jaas, org.apache.karaf.service.acl.command.scope_bundle.features, org.apache.karaf.service.acl.command.scope_bundle.log]
 68% [================================================>                       ]2018-08-29 19:04:23.451  INFO 200 --- [FelixStartLevel] o.a.a.b.c.BlueprintContainerImpl         : Bundle org.apache.karaf.jaas.modules is waiting for namespace handlers [http://karaf.apache.org/xmlns/jaas/v1.0.0]
 70% [==================================================>                     ]2018-08-29 19:04:23.462  INFO 200 --- [int Extender: 2] o.a.a.b.c.BlueprintContainerImpl         : Bundle org.apache.karaf.features.command is waiting for dependencies [(objectClass=org.apache.karaf.features.FeaturesService)]
 97% [=====================================================================>  ]2018-08-29 19:04:23.623  INFO 200 --- [ixDispatchQueue] org.apache.karaf.main.Main               : Karaf started in 2s. Bundle stats: 43 active, 44 total
100% [========================================================================]
Karaf started in 2s. Bundle stats: 43 active, 44 total
jake-wx commented 4 years ago

hi,brother I have got this question too,can you tell me how to resolve It? 老哥,我也遇到了这个一样的问题,能告诉我你当时咋解决的么?

shagerous commented 4 years ago

the same,have you ever resolve it bro?

cschneider commented 4 years ago

You guys run karaf in spring?

jake-wx commented 4 years ago

You guys run karaf in spring?

yes,I was run my application with springboot, when i init kettle ,i got this error

cschneider commented 4 years ago

Uhh .. that might be difficult. Karaf was never designed to run inside spring. I see that you use kettle. Maybe the maintainers there can help.