System property "java.util.logging.manager" does not work when using a vault

Solution Verified - Updated -

Issue

  • Fortify agent does not work following their installation instructions if a vault is also configured in the EAP.
  • Even after following the solution to configure a java agent the same exception "The LogManager was not properly installed" is thrown when using a vault:

    ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) JBAS014612: Operation ("add") failed - address: ([("core-service" => "vault")]): java.lang.ExceptionInInitializerError
        at org.picketbox.plugins.vault.SecurityVaultData.readObject(SecurityVaultData.java:87) [picketbox-4.1.4.Final-redhat-1.jar:4.1.4.Final-redhat-1]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_80]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_80]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_80]
        at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_80]
        at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1017) [rt.jar:1.7.0_80]
        at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1893) [rt.jar:1.7.0_80]
        at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1798) [rt.jar:1.7.0_80]
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350) [rt.jar:1.7.0_80]
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370) [rt.jar:1.7.0_80]
        at org.picketbox.plugins.vault.PicketBoxSecurityVault.readVersionedVaultContent(PicketBoxSecurityVault.java:601) [picketbox-4.1.4.Final-redhat-1.jar:4.1.4.Final-redhat-1]
        at org.picketbox.plugins.vault.PicketBoxSecurityVault.readVaultContent(PicketBoxSecurityVault.java:480) [picketbox-4.1.4.Final-redhat-1.jar:4.1.4.Final-redhat-1]
        at org.picketbox.plugins.vault.PicketBoxSecurityVault.init(PicketBoxSecurityVault.java:214) [picketbox-4.1.4.Final-redhat-1.jar:4.1.4.Final-redhat-1]
        at org.jboss.as.security.vault.RuntimeVaultReader.createVault(RuntimeVaultReader.java:93) [jboss-as-security-7.5.14.Final-redhat-2.jar:7.5.14.Final-redhat-2]
        ...
        at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_80]
    Caused by: java.lang.IllegalStateException: The LogManager was not properly installed (you must set the "java.util.logging.manager" system property to "org.jboss.logmanager.LogManager")
        at org.jboss.logmanager.Logger.getLogger(Logger.java:58) [jboss-logmanager-1.5.6.Final-redhat-1.jar:1.5.6.Final-redhat-1]
        at org.jboss.logging.JBossLogManagerProvider.doGetLogger(JBossLogManagerProvider.java:52) [jboss-logging-3.1.4.GA-redhat-2.jar:3.1.4.GA-redhat-2]
        ...
        at org.jboss.security.PicketBoxLogger.<clinit>(PicketBoxLogger.java:16) [picketbox-4.1.4.Final-redhat-1.jar:4.1.4.Final-redhat-1]
        ... 27 more
    

Environment

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