Could not start bundle mvn:com.fasterxml.jackson.module/jackson-module-scala_2.11/2.6.2 - apache-karaf

2016-02-01 15:02:19,152 | ERROR | FelixStartLevel | BootFeaturesInstaller | 20 - org.apache.karaf.features.core - 3.0.5 | Error installing boot features
java.lang.Exception: Could not start bundle mvn:com.fasterxml.jackson.module/jackson-module-scala_2.11/2.6.2 in feature(s) de-support-0.0.0, swagger-2.11-6.1.0: Unresolved constraint in bundle com.fasterxml.jackson.module.jackson.module.scala [274]: Unable to resolve 274.0: missing requirement [274.0] osgi.wiring.package; (&(osgi.wiring.package=com.fasterxml.jackson.module.paranamer)(version>=2.6.0)(!(version>=3.0.0)))
I am getting above exception, while starting karaf even after providing
<bundle>mvn:com.fasterxml.jackson.module/jackson-module-scala_2.11/2.6.2</bundle>
in features.xml file.

You're getting this message because one of your bundles imports the package com.fasterxml.jackson.module.paranamer but you have not included a bundle in your feature which exports this package. A search for com.fasterxml.jackson.module.paranamer brings up the pom for Jackson Paranamer which shows that it exports the package that you need (look at the osgi.export property). So add:
<bundle>mvn:com.fasterxml.jackson.module/jackson-module-paranamer/2.6.2</bundle>
to your feature in your features.xml

Related

Could not resolve module when starting an OSGi bundle

I have developed a OSGi bundle with NetBeans, in the karaf deploy. It is in status installed, I execute the start bundle command, it sends me an error :
karaf#trun()> start 288
Error executing command: Error executing command on bundles:
Error starting bundle 288: Could not resolve module: com.mycompany.mavenproject1 [288]
Unresolved requirement: Import-Package: de.odysseus.staxon.json
Does anyone have a solution for this issue please?
You need to add the dependency for the package de.odysseus.staxon.json in your pom.xml

Karaf: Missing Constraint in bundle

I am trying to wrap dnsjava as a bundle in Karaf. When I try to start the bundle I get a "Missing Constraint" error. I looked in the dnsjava code and found that the only place android is referenced is in a Class.forName. So I am wondering what causes this problem and how can I get around it. I am pretty certain that the class is not referenced in the code anywhere.
Here is the exception:
opendaylight-user#root>bundle:start 288
Error executing command: Error executing command on bundles:
Unable to execute command on bundle 288: The bundle "dnsjava_2.1.8 [288]" could not be resolved. Reason: Missing Constraint: Import-Package: android.os; version="0.0.0"
I believe I found the answer. There is an Import in the MANIFEST.MF that requires android.os.

just install jboss-fuse but management console is not reachable

I have install jboss-fuse on linux centos and runt it. But management console is not reachable.
I have found some relevant documentation on redhat's website and followed the steps.
https://access.redhat.com/documentation/en-US/Red_Hat_JBoss_Fuse/6.0/html/Using_the_Management_Console/files/FMCUGAccess.html
In that document it is said fabric-webui is to be installed. So I have run this command;
"profile-edit --features fabric-webui fabric"
But, An error occured during the installation. I found this exception in 'karaf.log' file.
2015-06-17 20:02:02,255 | ERROR | agent-3-thread-1 | DeploymentAgent
| .fabric8.agent.DeploymentAgent$2 255 | 60 - io.fabric8.fabric-agent
- 1.0.0.redhat-379 | Unable to update agent org.osgi.service.resolver.ResolutionException: Unable to resolve
dummy/0.0.0: missing requirement [dummy/0.0.0] osgi.identity;
osgi.identity=fabric-webui; type=karaf.feature; version=0 at
org.apache.felix.resolver.Candidates.populateResource(Candidates.java:285)[60:io.fabric8.fabric-agent:1.0.0.redhat-379]
at
org.apache.felix.resolver.Candidates.populate(Candidates.java:153)[60:io.fabric8.fabric-agent:1.0.0.redhat-379]
at
org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:148)[60:io.fabric8.fabric-agent:1.0.0.redhat-379]
at
io.fabric8.agent.DeploymentBuilder.resolve(DeploymentBuilder.java:226)[60:io.fabric8.fabric-agent:1.0.0.redhat-379]
at
io.fabric8.agent.DeploymentAgent.doUpdate(DeploymentAgent.java:521)[60:io.fabric8.fabric-agent:1.0.0.redhat-379]
at
io.fabric8.agent.DeploymentAgent$2.run(DeploymentAgent.java:252)[60:io.fabric8.fabric-agent:1.0.0.redhat-379]
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)[:1.7.0_72]
at
java.util.concurrent.FutureTask.run(FutureTask.java:262)[:1.7.0_72]
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[:1.7.0_72]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[:1.7.0_72]
at java.lang.Thread.run(Thread.java:745)[:1.7.0_72]
I have checked the continer list and result is shown below.
[id] [version] [connected] [profiles]
[provision status] root* 1.0 true
fabric, fabric-ensemble-0000-1, jboss-fuse-full error -
org.osgi.service.resolver.ResolutionException: Unable to resolve
dummy/0.0.0: missing requir
Can this problem be caused because maven has not configured yet ? Fuse use maven to collect dependencies but I haven't configured maven yet.
The problem is resolved.
It seems the logs and management console access problems are irrelevant.
The problem was firewall and we are able to access management console after stopping the firewall.
systemctl stop firewalld
Also, It seems maven is not required for accessing to management console after installation.

Karaf 3.0.3 add system.properties --> karaf.lock.level, leads to java.lang.RuntimeException

When i add to apache-karaf-3.0.3\etc\system.properties the property karaf.lock.level=50
the following exception is thrown:
java.lang.RuntimeException: Error installing bundle listed in startup.properties with url: mvn:org.ops4j.pax.url/pax-url-aether/2.3.0 and startlevel: 5
at org.apache.karaf.main.Main.installAndStartBundles(Main.java:392)
at org.apache.karaf.main.Main.launch(Main.java:245)
at org.apache.karaf.main.Main.main(Main.java:167)
Caused by: 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)(version>=1.6.0)(!(version>=2.0.0)))
at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:3974)
at org.apache.felix.framework.Felix.startBundle(Felix.java:2037)
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:955)
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:942)
at org.apache.karaf.main.Main.installAndStartBundles(Main.java:389)
... 2 more
same result when configuring the failover mechanism as described in the documentation. http://karaf.apache.org/manual/latest/users-guide/failover.html
karaf.lock=true
karaf.lock.class=org.apache.karaf.main.lock.DefaultJDBCLock
karaf.lock.level=50
karaf.lock.delay=10
karaf.lock.jdbc.url=jdbc:mysql://localhost/something
karaf.lock.jdbc.driver=com.mysql.jdbc.Driver
karaf.lock.jdbc.user=aUser
karaf.lock.jdbc.password=aUnsecurePassword
karaf.lock.jdbc.table=KARAF_LOCK
karaf.lock.jdbc.clustername=karaf
karaf.lock.jdbc.timeout=30
the driver is dropped to apache-karaf-3.0.3\lib\ext
when karaf.lock.level is removed or set to greater than 0 and lower than 5 it seems to work.
when i set the same lock.level.property to 50 in a 2.3.3 installation of karaf everything seems to work just fine.
does anyone know what changed there from 3.x.x to 2.3.3 or what could cause the problem.
best regards and thank you for your time :D

Missing resource bundle com.adobe.flex.framework:playerglobal:rb.swc:ko_KR:4.5.1.21328

facing a issue while creating locale file with maven build for Korean locale.
rest of language resource bundle get created properly only Korean locale giving problem.
the following error occur.
[ERROR] Failed to execute goal org.sonatype.flexmojos:flexmojos-maven-plugin:4.0-RC2:compile-swf (default-compile-swf) on project
---: Execution default-compile-swf of goal org.sonatype.flexmojos:flexmojos-maven-plugin:4.0-RC2:compile-swf failed: Missing
resource bundle 'com.adobe.flex.framework:flash-integration:rb.swc:ko_KR:4.5.1.21328
For this I have bundled required swc in my package and called same from maven build.

Resources