Hi Eric,
I am using CPE 5.5.8. I think it doesn't have specific variant of log4j. Noted your valuable inputs. Thank you very much.
------------------------------
RAVI KUMAR
------------------------------
Original Message:
Sent: Wed May 17, 2023 08:51 AM
From: Eric Walk
Subject: FileNet Workflow Custom Component - Log4j Compatibility
So a couple additional notes here...
- FileNet used to come bundled with a completely custom version of log4j 1.x, but that's been dropped recently in favor of Java Utility Logging (JUL). If your version of FileNet has the log4j 1.x jar bundled with Jace.jar, etc. I'd recommend using that specific variant of log4j as otherwise you'll have annoying class loading conflicts that just aren't worth anyone's time to troubleshoot.
- If you're using a newer version of FileNet that has moved away from log4j, I'd still advise against using it. That library has several unfixable security issues, alternatives like JUL or others with compatible interfaces are available.
- When you create the code module object in the repository, you can add as many jars to it as individual content elements. All of the jars will be loaded by the code module class loader. Just, again, keep in mind that you don't want to upload things that are a native part of FileNet as you might have conflicts.
Best,
Eric
------------------------------
Eric Walk
Director
O: 617-453-9983 | NASDAQ: PRFT | Perficient.com
Original Message:
Sent: Tue May 16, 2023 04:05 PM
From: Ravi teja
Subject: FileNet Workflow Custom Component - Log4j Compatibility
Hi,
1.Does Filenet supports Log4j2/Log4j1 in custom workflow components?
<<yes it compont support both versions.
2.I have a dependent jar for this workflow component. May I know how can I add dependent jar to this Code Module?
<<Add dependency jar along with your compont jar as content list if code module.
Thanks,
Ravi
-- Best Regards,
Ravi Teja M.
+91 9030529333.
Original Message:
Sent: 5/16/2023 11:23:00 AM
From: RAVI KUMAR
Subject: FileNet Workflow Custom Component - Log4j Compatibility
Hi All,
Requirement: I need to implement a workflow custom component. Need to use Logj2 or Logj1 for this component.
Notes: I have already implemented workflow custom components in the past. I have created Code Module in Object Store and configured the same in the Process Configuration Console for the new workflow custom component.
Queries:
1.Does Filenet supports Log4j2/Log4j1 in custom workflow components?
2.I have a dependent jar for this workflow component. May I know how can I add dependent jar to this Code Module?
------------------------------
RAVI KUMAR
------------------------------