Updating WebLogic domain settings in the setDomainEnv script file

Before you can deploy Studio, you need to update some WebLogic settings.

The relevant settings are in the setDomainEnv script file (setDomainEnv.cmd for Windows and setDomainEnv.sh for Linux).

The file is located in the bin subdirectory of the domain directory (<WebLogicInstallDirectory>/user_projects/domains/<DomainName>/bin/) where:

In the file:

  1. Add the JAVA_OPTIONS argument close to the top of the file.

    For setDomainEnv.cmd (Windows):

    set JAVA_OPTIONS=-Djavax.xml.transform.TransformerFactory=com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl -Djavax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl -Djavax.xml.parsers.SAXParserFactory=com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl

    For setDomainEnv.sh (Linux):

    JAVA_OPTIONS="-Djavax.xml.transform.TransformerFactory=com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl -Djavax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl -Djavax.xml.parsers.SAXParserFactory=com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl"
    export JAVA_OPTIONS
  2. If you are using SSL-enabled data sources, then add the following to the JAVA_OPTIONS argument:
    -DUseSunHttpHandler=true
  3. Set the max perm size setting to "-XX:MaxPermSize=512m".
  4. Update the memory arguments setting to "-Xms256m -Xmx1024m".