java.lang.NoClassDefFoundError: Could not initialize class org.apache.aries.transaction.internal.NLS in Fabric

Solution Verified - Updated -

Issue

  • Aries transaction manager produces the following error when our feature is installed inside a fabric.
2014-10-09 14:57:57,903 | INFO  | agent-1-thread-1 | DeploymentAgent                  | io.fabric8.agent.DeploymentAgent  741 | 60 - io.fabric8.fabric-agent - 1.0.0.redhat-379 |   org.apache.aries.transaction.blueprint / 1.0.1.redhat-610379
2014-10-09 14:57:57,908 | INFO  | agent-1-thread-1 | BlueprintContainerImpl           | container.BlueprintContainerImpl  348 | 9 - org.apache.aries.blueprint.core - 1.0.1.redhat-610379 | Bundle org.apache.aries.transaction.blueprint is waiting for dependencies [(objectClass=javax.transaction.TransactionManager)]
2014-10-09 14:57:57,910 | INFO  | agent-1-thread-1 | DeploymentAgent                  | io.fabric8.agent.DeploymentAgent  753 | 60 - io.fabric8.fabric-agent - 1.0.0.redhat-379 | Done.
2014-10-09 14:57:57,946 | ERROR | ies.transaction) | configadmin                      | ?                                   ? | 6 - org.apache.felix.configadmin - 1.4.0.redhat-610379 | [org.osgi.service.cm.ManagedService, id=566, bundle=448/mvn:org.apache.aries.transaction/org.apache.aries.transaction.manager/1.0.1.redhat-610379]: Unexpected problem updating configuration org.apache.aries.transaction
java.lang.NoClassDefFoundError: Could not initialize class org.apache.aries.transaction.internal.NLS
    at org.apache.aries.transaction.internal.TransactionManagerService.<init>(TransactionManagerService.java:114)
    at org.apache.aries.transaction.internal.Activator.updated(Activator.java:63)
    at org.apache.felix.cm.impl.helper.ManagedServiceTracker.updateService(ManagedServiceTracker.java:148)[6:org.apache.felix.configadmin:1.4.0.redhat-610379]
    at org.apache.felix.cm.impl.helper.ManagedServiceTracker.provideConfiguration(ManagedServiceTracker.java:81)[6:org.apache.felix.configadmin:1.4.0.redhat-610379]
    at org.apache.felix.cm.impl.ConfigurationManager$UpdateConfiguration.run(ConfigurationManager.java:1789)[6:org.apache.felix.configadmin:1.4.0.redhat-610379]
    at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:103)[6:org.apache.felix.configadmin:1.4.0.redhat-610379]
    at java.lang.Thread.run(Thread.java:724)[:1.7.0_25]

  • When the feature is in a standalone fuse container, it works good.

Environment

  • Red Hat JBoss Fuse
    • 6.x
  • Apache Aries Blueprint

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content