[DOCU-523] Conflicting libraries issues with Weblogic 12c Created: 11/Jun/14  Updated: 07/May/15  Resolved: 12/Jun/14

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Critical
Reporter: Milan Divilek Assignee: Antti Hietala
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
relation
is related to MGNLWORKFLOW-267 Library conflict between Workflow wit... Closed
Template:
Acceptance criteria:
Empty
Task DoR:
Empty
Date of First Response:

 Description   

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


 Comments   
Comment by Antti Hietala [ 12/Jun/14 ]

5.x documentation changes:

4.5 documentation changes:

Generated at Mon Feb 12 01:09:54 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.