Question
CareFirst BlueCross BlueShield
US
Last activity: 30 Jan 2019 11:28 EST
Looking for the correct procedure to externalize prlog4j2.xml file within Tomcat-8.5 serverfor version-8.1.1
We follow the instructions from PDN article- "Tomcat and prconfig.xml"
URL> https://community1.pega.com/community/pega-support/question/tomcat-and-prconfigxml
"prlogging.xml can be externalized by placing this file in the directory that is defined by the JVM System property "user.home" .
*Just define JVM system properties as mentioned below:
-prlogging.xml
-Dpegarules.logging.configuration=<path>/prlogging.xml
**As per the installation guide, you are advised (by Apache Tomcat) to create a custom script setEnv.sh where you can append the above mentioned
JVM system properties to the JAVA_OPTS environment variable. Also ensure that the user under which Tomcat server runs has read/write/execute
permission to the server filesystem <path> above.
** Our steps, -we created script- setenv.sh and updated has our JAVA_OPTS
- append the abovementioned JVM system properties(-Dpegarules.logging.configuration=<path>/prlog4j2.xml) to the JAVA_OPTS environment variable
within setenv.sh
-Checked that the User of which Tomcat server runs under has read/write/execute permission to the server filesystem <path> above.
-Restarted the JVM via catalina.sh which calls/loads setenv.sh
-Failed to write logs into new log file location.
We follow the instructions from PDN article- "Tomcat and prconfig.xml"
URL> https://community1.pega.com/community/pega-support/question/tomcat-and-prconfigxml
"prlogging.xml can be externalized by placing this file in the directory that is defined by the JVM System property "user.home" .
*Just define JVM system properties as mentioned below:
-prlogging.xml
-Dpegarules.logging.configuration=<path>/prlogging.xml
**As per the installation guide, you are advised (by Apache Tomcat) to create a custom script setEnv.sh where you can append the above mentioned
JVM system properties to the JAVA_OPTS environment variable. Also ensure that the user under which Tomcat server runs has read/write/execute
permission to the server filesystem <path> above.
** Our steps, -we created script- setenv.sh and updated has our JAVA_OPTS
- append the abovementioned JVM system properties(-Dpegarules.logging.configuration=<path>/prlog4j2.xml) to the JAVA_OPTS environment variable
within setenv.sh
-Checked that the User of which Tomcat server runs under has read/write/execute permission to the server filesystem <path> above.
-Restarted the JVM via catalina.sh which calls/loads setenv.sh
-Failed to write logs into new log file location.
Can entry be made within the context.xml file to support the externalization of prlog4j2.xml file ?
,Thanks