Also, I am getting
java.lang.ClassNotFoundException while loading plugins which has log4j dependency? log4j is not included in the navigator.war for cloud deployment?
Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Logger
at com.ibm.ws.classloading.internal.AppClassLoader.findClassCommonLibraryClassLoaders(AppClassLoader.java:569)
at com.ibm.ws.classloading.internal.AppClassLoader.findClass(AppClassLoader.java:291)
at java.lang.ClassLoader.loadClassHelper(ClassLoader.java:945)
at java.lang.ClassLoader.loadClass(ClassLoader.java:890)
at com.ibm.ws.classloading.internal.AppClassLoader.findOrDelegateLoadClass(AppClassLoader.java:547)
at com.ibm.ws.classloading.internal.AppClassLoader.loadClass(AppClassLoader.java:505)
at java.lang.ClassLoader.loadClass(ClassLoader.java:873)
------------------------------
Mohan Chandran
------------------------------
Original Message:
Sent: Tue November 08, 2022 06:17 PM
From: Mohan Chandran
Subject: Content Navigator Plugins (NoClassDefFoundError)
<folder dir="<path/to/properties/file>" />. - can I use the folder location where I have multiple properties file that should be kept in class path ?
------------------------------
Mohan Chandran
Original Message:
Sent: Mon October 31, 2022 10:41 AM
From: ANDY Choi
Subject: Content Navigator Plugins (NoClassDefFoundError)
jvm_customize_options is used to add additional JVM option. You can try adding a folder to the FileNetLib library if you need to have some properties file in the class path.
<server>
<library id="FileNetLib">
<fileset dir="${server.config.dir}/configDropins/overrides/external-jars" includes="*.jar" scanInterval="5s" />
<folder dir="<path/to/properties/file>" />
</library>
</server>
------------------------------
ANDY Choi
Original Message:
Sent: Fri October 28, 2022 03:34 PM
From: Mohan Chandran
Subject: Content Navigator Plugins (NoClassDefFoundError)
Will I able to use jvm_customize_options in CR Yaml to add the property file location as class path?
------------------------------
Mohan Chandran
Original Message:
Sent: Thu October 27, 2022 06:57 PM
From: ANDY Choi
Subject: Content Navigator Plugins (NoClassDefFoundError)
That would be a question for the WebSphere team but you might be able to find info you need from WebSphere Liberty documentation.
------------------------------
ANDY Choi
Original Message:
Sent: Thu October 27, 2022 05:07 PM
From: Mohan Chandran
Subject: Content Navigator Plugins (NoClassDefFoundError)
Thanks. I will try this and let you know. Also, there are custom properties that are kept in WebSphere profiles/properties directory and these properties are used by custom plugin. Can you please let me know if there is a similar option available in Liberty container.?
------------------------------
Mohan Chandran
Original Message:
Sent: Thu October 27, 2022 03:59 PM
From: ANDY Choi
Subject: Content Navigator Plugins (NoClassDefFoundError)
You can use any name, e.g., library-FileNetLib.xml.
------------------------------
ANDY Choi
Original Message:
Sent: Thu October 27, 2022 02:46 PM
From: Mohan Chandran
Subject: Content Navigator Plugins (NoClassDefFoundError)
Thanks Andy. Can you please confirm the file name that I should keep for the XML file.
------------------------------
Mohan Chandran
Original Message:
Sent: Thu October 27, 2022 01:02 PM
From: ANDY Choi
Subject: Content Navigator Plugins (NoClassDefFoundError)
Hi Mohan,
ICN doesn't read from the directory mentioned in the documentation but you can follow the documentation and additionally add a new XML file to configDropins/overrides/ with the following content to add extra JAR files to the class path. You'll need to restart ICN pods after making the changes.
<server>
<library id="FileNetLib">
<fileset dir="${server.config.dir}/configDropins/overrides/external-jars" includes="*.jar" scanInterval="5s" />
</library>
</server>
Thanks,
Andy
------------------------------
ANDY Choi
Original Message:
Sent: Thu October 27, 2022 12:16 PM
From: Mark Jordan
Subject: Content Navigator Plugins (NoClassDefFoundError)
Message From: Mohan Chandran
Hi Mark,
This issue is happening in 3.0.11. Currently, we have plugins that are dependent on 2 external libraries so in on premise environment these 2 libraries are deployed into navigator.war/WEB-INF/lib folder so these libraries are available in class path.
We are now trying to move this set up to container but navigator.war is not expanded in EKS Pod, I am trying to find an option to keep these libraries in class path so plugins works fine.
Does ICN have similar to below
https://www.ibm.com/docs/en/filenet-p8-platform/5.5.x?topic=acice-v558-later-adding-libraries-content-platform-engine-classpath-in-container-environment
Thanks
Mohan Chandran
------------------------------
Mark Jordan
Original Message:
Sent: Thu October 27, 2022 08:26 AM
From: Mark Jordan
Subject: Content Navigator Plugins (NoClassDefFoundError)
Hi Mohan -
On what build of ICN is this occurring?
------------------------------
Mark Jordan
Original Message:
Sent: Mon October 17, 2022 07:36 PM
From: Mohan Chandran
Subject: Content Navigator Plugins (NoClassDefFoundError)
I have more than one custom plugins in my ICN app and there is a plugin which is dependent on the java class from another common plugin. Kept the ordering of the common plugin at the top thinking the java classes in the common plugins will be loaded and available in the class path so it will be available for other plugins to use them. But getting NoClassDefFoundError while loading the plugin.
------------------------------
Mohan Chandran
------------------------------