Question

2
Replies
514
Views
BARBOURC Member since 2006 3 posts
CareFirst BlueCross BlueShield
Posted: 1 year ago
Last activity: 1 year 7 months ago
Closed

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.

Can entry be made within the context.xml file to support the externalization of prlog4j2.xml file ?
,Thanks

Low-Code App Development Low-Code App Development Installation and Deployment
Moderation Team has archived post
Share this page LinkedIn