Why fuse hangs during startup after patching ?
Issue
- We applied patch R1, R1P1, R1P2, and R1P3. Once the patches were complete Fuse started throwing the following errors during startup.
Please wait while JBoss Fuse is loading...
ERROR: Bundle org.springframework.osgi.extensions.annotations [144] Error starting mvn:org.springframework.osgi/spring-osgi-annotation/1.2.1 (org.osgi.framework.BundleException: Unresolved constraint in bundle org.springframework.osgi.extensions.annotations [144]: Unable to resolve 144.0: missing requirement [144.0] osgi.wiring.package; (&(osgi.wiring.package=org.springframework.osgi.context)(version>=1.2.1)(version<=1.2.1)) [caused by: Unable to resolve 146.0: missing requirement [146.0] osgi.wiring.package; (&(osgi.wiring.package=org.springframework.context)(version>=2.5.6)(!(version>=4.0.0))) [caused by: Unable to resolve 121.1: missing requirement [121.1] osgi.wiring.package; (&(osgi.wiring.package=org.springframework.beans)(version>=3.2.9.RELEASE)(!(version>=3.3.0)))]])
org.osgi.framework.BundleException: Unresolved constraint in bundle org.springframework.osgi.extensions.annotations [144]: Unable to resolve 144.0: missing requirement [144.0] osgi.wiring.package; (&(osgi.wiring.package=org.springframework.osgi.context)(version>=1.2.1)(version<=1.2.1)) [caused by: Unable to resolve 146.0: missing requirement [146.0] osgi.wiring.package; (&(osgi.wiring.package=org.springframework.context)(version>=2.5.6)(!(version>=4.0.0))) [caused by: Unable to resolve 121.1: missing requirement [121.1] osgi.wiring.package; (&(osgi.wiring.package=org.springframework.beans)(version>=3.2.9.RELEASE)(!(version>=3.3.0)))]]
at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4225)
at org.apache.felix.framework.Felix.startBundle(Felix.java:2063)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1317)
at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:304)
at java.lang.Thread.run(Unknown Source)
ERROR: Bundle org.springframework.osgi.extender [145] Error starting mvn:org.springframework.osgi/spring-osgi-extender/1.2.1 (org.osgi.framework.BundleException: Unresolved constraint in bundle org.springframework.osgi.extender [145]: Unable to resolve 145.0: missing requirement [145.0] osgi.wiring.package; (&(osgi.wiring.package=org.springframework.context)(version>=2.5.6)(!(version>=4.0.0))) [caused by: Unable to resolve 121.1: missing requirement [121.1] osgi.wiring.package; (&(osgi.wiring.package=org.springframework.beans)(version>=3.2.9.RELEASE)(!(version>=3.3.0)))])
org.osgi.framework.BundleException: Unresolved constraint in bundle org.springframework.osgi.extender [145]: Unable to resolve 145.0: missing requirement [145.0] osgi.wiring.package; (&(osgi.wiring.package=org.springframework.context)(version>=2.5.6)(!(version>=4.0.0))) [caused by: Unable to resolve 121.1: missing requirement [121.1] osgi.wiring.package; (&(osgi.wiring.package=org.springframework.beans)(version>=3.2.9.RELEASE)(!(version>=3.3.0)))]
at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4225)
at org.apache.felix.framework.Felix.startBundle(Felix.java:2063)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1317)
at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:304)
at java.lang.Thread.run(Unknown Source)
ERROR: Bundle org.springframework.osgi.core [146] Error starting mvn:org.springframework.osgi/spring-osgi-core/1.2.1 (org.osgi.framework.BundleException: Unresolved constraint in bundle org.springframework.osgi.core [146]: Unable to resolve 146.0: missing requirement [146.0] osgi.wiring.package; (&(osgi.wiring.package=org.springframework.context)(version>=2.5.6)(!(version>=4.0.0))) [caused by: Unable to resolve 121.1: missing requirement [121.1] osgi.wiring.package; (&(osgi.wiring.package=org.springframework.beans)(version>=3.2.9.RELEASE)(!(version>=3.3.0)))])
org.osgi.framework.BundleException: Unresolved constraint in bundle org.springframework.osgi.core [146]: Unable to resolve 146.0: missing requirement [146.0] osgi.wiring.package; (&(osgi.wiring.package=org.springframework.context)(version>=2.5.6)(!(version>=4.0.0))) [caused by: Unable to resolve 121.1: missing requirement [121.1] osgi.wiring.package; (&(osgi.wiring.package=org.springframework.beans)(version>=3.2.9.RELEASE)(!(version>=3.3.0)))]
at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4225)
at org.apache.felix.framework.Felix.startBundle(Felix.java:2063)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1317)
at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:304)
at java.lang.Thread.run(Unknown Source)
ERROR: Bundle org.apache.xbean.spring [133] Error starting mvn:org.apache.xbean/xbean-spring/3.15 (org.osgi.framework.BundleException: Unresolved constraint in bundle org.apache.xbean.spring [133]: Unable to resolve 133.0: missing requirement [133.0] osgi.wiring.package; (&(osgi.wiring.package=org.springframework.context)(version>=2.5.0)(!(version>=4.0.0))) [caused by: Unable to resolve 121.1: missing requirement [121.1] osgi.wiring.package; (&(osgi.wiring.package=org.springframework.beans)(version>=3.2.9.RELEASE)(!(version>=3.3.0)))])
org.osgi.framework.BundleException: Unresolved constraint in bundle org.apache.xbean.spring [133]: Unable to resolve 133.0: missing requirement [133.0] osgi.wiring.package; (&(osgi.wiring.package=org.springframework.context)(version>=2.5.0)(!(version>=4.0.0))) [caused by: Unable to resolve 121.1: missing requirement [121.1] osgi.wiring.package; (&(osgi.wiring.package=org.springframework.beans)(version>=3.2.9.RELEASE)(!(version>=3.3.0)))]
at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4225)
at org.apache.felix.framework.Felix.startBundle(Felix.java:2063)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1317)
at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:304)
at java.lang.Thread.run(Unknown Source)
- Why the container hangs with the above error messages. How to find out the root cause of the hang?
- patching 1 fuse container from r2p4 to r2 p6 is taking 50 minutes. The actual patch install command takes only 30 seconds. However it is taking about 60 minutes before the karaf console is available.
Environment
- Red Hat JBoss Fuse
- 6.1.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.