Magnolia 4.5 reached end of life on June 30, 2016. This branch is no longer supported, see End-of-life policy.
...
See How do I use log4j.properties or log4j.xml instead of using the logging subsystem configuration?
...
When deploying on Weblogic 10, there is a version conflict while using commons-lang
. While Weblogic-10 is distributed with commons-lang-2.3.jar
, JackRabbit and Magnolia CMS need at least commons-lang-2.4.jar
. To resolve this issue, modify setDomainEnv.sh
of Weblogic and add commons-lang-2.4.jar
to the PRE_CLASSPATH
. Since version 2.4 commons-lang
doesn't remove any methods, but only adds new API and fixes known bugs, there is no adverse effect from this change to the Weblogic installation.
Magnolia uses the Bouncy Castle cryptography package to decode the license key and to secure the activation process. WebLogic 12c is distributed with bcprov-jdk16-1.45.jar
but Magnolia is distributed with bcprov-jdk16-1.46.jar
. This leads to a library version conflict.
Symptom: There is no error shown on the Magnolia license form but the license is not registered. In the log you can find this stack trace:
Code Block | ||
---|---|---|
| ||
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 |
To resolve:
setDomainEnv.sh
in WebLogic and add bcprov-jdk16-1.46.jar
to PRE_CLASSPATH
.bcprov-jdk16-1.45.jar
from WebLogic 12c common libraries.If you use Mac OS X 10.5 or 10.6, you should update to at least 10.5.8 or 10.6.2. Earlier versions cause issues where, when two or more instances are started in the same container, some or all connections are dropped.
...