Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCU-523

Conflicting libraries issues with Weblogic 12c

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Critical Critical
    • None
    • None
    • None
    • None

      1. Bouncy Castle library

      • WebLogic 12c is distributed with bcprov-jdk16-1.45.jar, but Magnolia is distributed with bcprov-jdk16-1.46.jar
      • Symptoms:
        • M4.5.x - There is no error shown on "Magnolia license" form, but license is not registered. And in log there is this stack trace
          SEVERE: Can't read license for module enterprise
          org.bouncycastle.openpgp.PGPException: can't set up signature object.
          	at org.bouncycastle.openpgp.PGPOnePassSignature.initVerify(Unknown Source)
          	at org.bouncycastle.openpgp.PGPOnePassSignature.initVerify(Unknown Source)
          	at info.magnolia.license.LicenseProcessor.extractLicense(LicenseProcessor.java:176)
          	at info.magnolia.license.LicenseProcessor.extractLicense(LicenseProcessor.java:202)
          	at info.magnolia.license.LicenseManager.onRegister(LicenseManager.java:229)
          	at info.magnolia.cms.beans.config.ObservedManager.reload(ObservedManager.java:135)
          	at info.magnolia.cms.beans.config.ObservedManager.reload(ObservedManager.java:120)
          	at info.magnolia.cms.beans.config.ObservedManager$1.onEvent(ObservedManager.java:86)
          	at info.magnolia.cms.util.ObservationUtil$ObservationBasedDelayedExecutor$1.run(ObservationUtil.java:256)
          	at info.magnolia.cms.util.DelayedExecutor$RunnableWrapper.run(DelayedExecutor.java:105)
          	at EDU.oswego.cs.dl.util.concurrent.ClockDaemon$RunLoop.run(Unknown Source)
          	at java.lang.Thread.run(Thread.java:695)
          Caused by: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: SHA1WithRSAEncryption, provider: BC, class: org.bouncycastle.jce.provider.JDKDigestSignature$SHA1WithRSAEncryption)
          	at java.security.Provider$Service.newInstance(Provider.java:1245)
          	at sun.security.jca.GetInstance.getInstance(GetInstance.java:220)
          	at sun.security.jca.GetInstance.getInstance(GetInstance.java:202)
          	at java.security.Signature.getInstance(Signature.java:367)
          	... 12 more
          
        • M5.2.x - after insterting valid license key into "Magnolia license" form. Error message "License is empty." appears on.
      • Solution:
        • Edit setDomainEnv.sh in WebLogic and add bcprov-jdk16-1.46.jar to PRE_CLASSPATH.
        • Remove bcprov-jdk16-1.45.jar from WebLogic 12c common libraries

      2. Magnolia Workflow with JBPM 6

      • Deploying Magnolia with JBPM 6 affects deployment feature of Weblogic AS. It does't care if Administration Console, weblogic.Deployer, wldeploy Ant task or auto deploy directory is used all are affected.
      • Symptoms:
        • Magnolia can't be deployed to Weblogic. "weblogic.application.ModuleException: java.lang.ClassNotFoundException: org.jbpm.services.task.lifecycle.listeners.TaskLifeCycleEventListener". Full stacktrace http://pastebin.com/gsUy28DU
      • Workaround:
        • First deploy application which doesn't contain Magnolia Workflow with jbpm6 (etc. M5.2.2, M5.3 without workflow, etc.). And then in deployment target location replace deployed webapp by new webapp which contains workflow with jbpm6
      • We are still analyzing the problem and looking for better solution

        Acceptance criteria

              ahietala Antti Hietala
              mdivilek Milan Divilek
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Task DoR