Skip to content

Latest commit

 

History

History
54 lines (40 loc) · 1.94 KB

oracle-weblogic.md

File metadata and controls

54 lines (40 loc) · 1.94 KB

Oracle WebLogic tips

All tips are for a Linux environment.

 

🚧 Activate the debug mode permanently on a local domain:

  • open the setDomainEnv.sh file for the domain
  • locate and uncomment the following lines:
debugFlag="true"
export debugFlag

 

📜 Configure a WAR to be able to use SLF4J without conflicting with WebLogic's version of SLF4J :

  • if not already done, create a weblogic.xml file in WEB-INF directory
  • add the two following prefer-application-* blocks to your weblogic.xml:
<?xml version="1.0" encoding="UTF-8"?>
<weblogic-web-app xmlns="http://xmlns.oracle.com/weblogic/weblogic-web-app"
                  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                  xsi:schemaLocation="http://xmlns.oracle.com/weblogic/weblogic-web-app http://xmlns.oracle.com/weblogic/weblogic-web-app/1.4/weblogic-web-app.xsd">

    <container-descriptor>
        
        <!-- make it possible to use SLF4J without conflicting with WebLogic's version of SLF4J -->
        <prefer-application-packages>
            <package-name>org.slf4j.*</package-name>
        </prefer-application-packages>
        
        <!-- prevent SLF4J from displaying a warning about multiple bindings -->
        <prefer-application-resources>
            <resource-name>org/slf4j/impl/StaticLoggerBinder.class</resource-name>
        </prefer-application-resources>
        
    </container-descriptor>

</weblogic-web-app>

 

🔑 Default KeyStore and TrustStore present in a WebLogic 12 instance:

  • KeyStore : private key and identity certificates

    • JKS file location: ${DOMAIN_HOME}/security/DemoIdentity.jks
    • store password: DemoIdentityKeyStorePassPhrase
    • private key password: DemoIdentityPassPhrase
  • TrustStore : certificates from Certified Authorities (CA)

    • JKS file location: ${WEBLOGIC_HOME}/wlserver/server/lib/DemoTrust.jks
    • store password: DemoTrustKeyStorePassPhrase