How to enable axis logs using log4j2.properties for debugging salesforce plugin in BW 5.15
book
Article ID: KB0071239
calendar_today
Updated On:
Products
TIBCO ActiveMatrix BusinessWorks Plug-in for Salesforce.com
Description
To check which HTTP version the salesforce plugin is using while making SOAP calls. Verify that axis logs can be captured using log4j2.properties for debugging.
Issue/Introduction
How to enable axis logs using log4j2.properties for debugging salesforce plugin in BW 5.15
Resolution
Below are the steps to enable axis logs BW5.15 using log4j2.properties.
1)Copy the client-config.wsdd file at "<TIBCO_HOME>\bw\plugins\lib" location and change the file path for the below line: "<parameter name="LogHandler.fileName" value="file path(C:\Plugin\SFDC\axis_req_res.log)"/>" Note: This log file will get created automatically at the specified location.
2)Open the log4j2.properties file from "<TIBCO_HOME>\bw\5.15\lib" and change all log levels to debug levels from info or warn. If the properties file is not editable then copy the content from that file to .txt and make the required changes and then save it as log4j2.properties.
3) Copy the log4j2.properties to <TIBCO_HOME>\bw\plugins\lib. The 'log4j2.properties' should be present at both locations.
4) Copy the below properties in bwengine.tra java.property.org.apache.commons.logging.LogFactory=org.apache.commons.logging.impl.LogFactoryImpl java.property.org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger java.property.log4j.configuration=file:C:/TIBCO_HOME/bw/plugins/lib/log4j2.properties java.property.org.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog java.property.org.apache.commons.logging.simplelog.showdatetime=true java.property.org.apache.commons.logging.simplelog.log.httpclient.wire=debug java.property.org.apache.commons.logging.simplelog.log.org.apache.commons.httpclient=debug
5) Restart the designer and start the application then it will show the detailed console logs with the HTTP version from the axis jar.
Please find attached client-config.wsdd file
Attachments
How to enable axis logs using log4j2.properties for debugging salesforce plugin in BW 5.15
get_app