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

The container fails to start correctly with IBM Java 6

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.3.1
    • Fix Version/s: 2.3.2, 2.4.0, 3.0.0
    • Component/s: karaf-core
    • Labels:
      None
    • Environment:

      Description

      The instance seem to hang on start-up with the following exception:

      1. ./karaf
        MAXDATA=0xB0000000@DSA
        IBM J9 VM (build 2.4, JRE 1.6.0 IBM J9 2.4 AIX ppc64-64 jvmap6460sr12-20121024_126067 (JIT enabled, AOT enabled)
        ERROR: Bundle org.apache.aries.blueprint.core [7] Error starting mvn:org.apache.aries.blueprint/org.apache.aries.blueprint.core/1.1.0 (org.osgi.framework.BundleException: Activator start error in bundle org.apache.aries.blueprint.core [7].)
        java.lang.IllegalArgumentException: http://www.w3.org/2001/XMLSchema
        at javax.xml.validation.SchemaFactory.newInstance(Unknown Source)
        at org.apache.aries.blueprint.namespace.NamespaceHandlerRegistryImpl.<init>(NamespaceHandlerRegistryImpl.java:98)
        at org.apache.aries.blueprint.container.BlueprintExtender.start(BlueprintExtender.java:87)
        at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:645)
        at org.apache.felix.framework.Felix.activateBundle(Felix.java:1977)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:1895)
        at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1191)
        at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:295)
        at java.lang.Thread.run(Thread.java:738)

      In the Karaf log file, we find:

      Feb 20, 2013 6:08:04 AM org.apache.karaf.main.SimpleFileLock lock
      INFO: locking
      2013-02-20 06:08:04,766 | INFO | FelixStartLevel | fileinstall | ? ? | 6 - org.apache.felix.fileinstall - 3.2.6 | Installed /opt/apache-karaf-2.3.1-SNAPSHOT/etc/org.apache.karaf.log.cfg
      2013-02-20 06:08:04,783 | INFO | FelixStartLevel | fileinstall | ? ? | 6 - org.apache.felix.fileinstall - 3.2.6 | Installed /opt/apache-karaf-2.3.1-SNAPSHOT/etc/org.apache.karaf.jaas.cfg
      2013-02-20 06:08:05,120 | INFO | FelixStartLevel | core | ? ? | 22 - org.apache.aries.jmx.core - 1.1.1 | Starting JMX OSGi agent
      2013-02-20 06:08:05,186 | INFO | FelixStartLevel | core | ? ? | 22 - org.apache.aries.jmx.core - 1.1.1 | Registering MBean with ObjectName [osgi.compendium:service=cm,version=1.3,framework=org.apache.felix.framework,uuid=bb0a67f0-ed5b-4b18-b071-160cdb75b12f] for service with service.id [10]
      Feb 20, 2013 6:22:47 AM org.apache.karaf.main.SimpleFileLock lock
      INFO: locking
      2013-02-20 06:22:48,463 | INFO | FelixStartLevel | fileinstall | ? ? | 6 - org.apache.felix.fileinstall - 3.2.6 | Installed /opt/apache-karaf-2.3.1-SNAPSHOT/etc/org.apache.felix.fileinstall-deploy.cfg
      2013-02-20 06:22:48,477 | INFO | FelixStartLevel | fileinstall | ? ? | 6 - org.apache.felix.fileinstall - 3.2.6 | Installed /opt/apache-karaf-2.3.1-SNAPSHOT/etc/org.apache.karaf.features.cfg
      2013-02-20 06:22:48,483 | INFO | FelixStartLevel | fileinstall | ? ? | 6 - org.apache.felix.fileinstall - 3.2.6 | Installed /opt/apache-karaf-2.3.1-SNAPSHOT/etc/org.ops4j.pax.url.mvn.cfg
      2013-02-20 06:22:48,496 | INFO | FelixStartLevel | fileinstall | ? ? | 6 - org.apache.felix.fileinstall - 3.2.6 | Installed /opt/apache-karaf-2.3.1-SNAPSHOT/etc/org.apache.karaf.features.obr.cfg
      2013-02-20 06:22:48,501 | INFO | FelixStartLevel | fileinstall | ? ? | 6 - org.apache.felix.fileinstall - 3.2.6 | Installed /opt/apache-karaf-2.3.1-SNAPSHOT/etc/org.apache.karaf.shell.cfg
      2013-02-20 06:22:48,506 | INFO | FelixStartLevel | fileinstall | ? ? | 6 - org.apache.felix.fileinstall - 3.2.6 | Installed /opt/apache-karaf-2.3.1-SNAPSHOT/etc/org.apache.karaf.features.repos.cfg
      2013-02-20 06:22:48,511 | INFO | FelixStartLevel | fileinstall | ? ? | 6 - org.apache.felix.fileinstall - 3.2.6 | Installed /opt/apache-karaf-2.3.1-SNAPSHOT/etc/org.apache.karaf.management.cfg
      2013-02-20 06:22:48,517 | INFO | FelixStartLevel | fileinstall | ? ? | 6 - org.apache.felix.fileinstall - 3.2.6 | Installed /opt/apache-karaf-2.3.1-SNAPSHOT/etc/org.ops4j.pax.logging.cfg
      2013-02-20 06:22:48,522 | INFO | FelixStartLevel | fileinstall | ? ? | 6 - org.apache.felix.fileinstall - 3.2.6 | Installed /opt/apache-karaf-2.3.1-SNAPSHOT/etc/org.apache.karaf.log.cfg
      2013-02-20 06:22:48,527 | INFO | FelixStartLevel | fileinstall | ? ? | 6 - org.apache.felix.fileinstall - 3.2.6 | Installed /opt/apache-karaf-2.3.1-SNAPSHOT/etc/org.apache.karaf.jaas.cfg
      2013-02-20 06:22:48,866 | INFO | FelixStartLevel | core | ? ? | 22 - org.apache.aries.jmx.core - 1.1.1 | Starting JMX OSGi agent
      2013-02-20 06:22:48,931 | INFO | FelixStartLevel | core | ? ? | 22 - org.apache.aries.jmx.core - 1.1.1 | Registering MBean with ObjectName [osgi.compendium:service=cm,version=1.3,framework=org.apache.felix.framework,uuid=f4bc1ef1-6c20-48e6-9aba-513c686a01b9] for service with service.id [10])

        Activity

        Hide
        jbonofre Jean-Baptiste Onofré added a comment -

        The simple fix is to add a xercesImpl jar into lib/endorsed, I guess.

        I gonna test that and evaluate the impacts with Oracle JDK.

        Show
        jbonofre Jean-Baptiste Onofré added a comment - The simple fix is to add a xercesImpl jar into lib/endorsed, I guess. I gonna test that and evaluate the impacts with Oracle JDK.
        Hide
        jbonofre Jean-Baptiste Onofré added a comment -

        NB: if we put xercesImpl in lib/endorsed, it means that we shouldn't install (Karaf itself or other projects like Camel or CXF) a xerces bundle.

        Show
        jbonofre Jean-Baptiste Onofré added a comment - NB: if we put xercesImpl in lib/endorsed, it means that we shouldn't install (Karaf itself or other projects like Camel or CXF) a xerces bundle.
        Hide
        jbonofre Jean-Baptiste Onofré added a comment -

        Issue is present on Linux using IBM JDK as well.

        Show
        jbonofre Jean-Baptiste Onofré added a comment - Issue is present on Linux using IBM JDK as well.
        Hide
        abespaly Alexey Bespaly added a comment - - edited

        With xercesImpl.jar in lib/endorsed and xercesImpl bundle uninstalled, we were able to start tests

        Show
        abespaly Alexey Bespaly added a comment - - edited With xercesImpl.jar in lib/endorsed and xercesImpl bundle uninstalled, we were able to start tests
        Hide
        abespaly Alexey Bespaly added a comment -

        NOTE: with the changes mentioned above, Oracle JDK deployment does not seem to be affected.

        Show
        abespaly Alexey Bespaly added a comment - NOTE: with the changes mentioned above, Oracle JDK deployment does not seem to be affected.
        Show
        jbonofre Jean-Baptiste Onofré added a comment - Fixed on karaf-2.3.x: http://svn.apache.org/viewvc?view=revision&revision=1497676
        Show
        jbonofre Jean-Baptiste Onofré added a comment - Fixed on trunk: http://svn.apache.org/viewvc?view=revision&revision=1498465
        Show
        jbonofre Jean-Baptiste Onofré added a comment - Fixed on karaf-2.x: http://svn.apache.org/viewvc?view=revision&revision=1498552

          People

          • Assignee:
            jbonofre Jean-Baptiste Onofré
            Reporter:
            abespaly Alexey Bespaly
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development