OnDemand User Group

Support Forums => OD/WEK & JAVA API => Topic started by: dineshkhanna04 on May 27, 2021, 08:10:31 AM

Title: Installing ODWEK 10.1 on Linux
Post by: dineshkhanna04 on May 27, 2021, 08:10:31 AM
Hi, everyone!!!

We have installed ODWEK 10.1 on Linux VM using the base installation of CMOD 10.1 package. On this server we also have ODWEK 9.5 which is already installed and working without any issues. We developed a webservice and deployed it on Websphere server. On Websphere Application Server, we only have one server (icn_appserver01) where we mapped the path "/opt/ibm/ondemand/V9.5/www" on LD_LIBRARY_PATH environment entry. When using V9.5/www path on environment entry, our webservice is working as expected. But when we change the LD_LIBRARY_PATH and map it to new ODWEK10.1 "/opt/ibm/ondemand/V10.1/www" it is throwing the below error.

java.lang.NoClassDefFoundError: com.ibm.edms.od.ArsWWWInterface (initialization failure)
        at java.lang.J9VMInternals.initializationAlreadyFailed(J9VMInternals.java:97) ~[?:2.9 (07-29-2020)]
Caused by: java.lang.UnsatisfiedLinkError: ars3wapi32 (Not found in java.library.path)
        at java.lang.ClassLoader.loadLibraryWithPath(ClassLoader.java:1462) ~[?:2.9 (07-29-2020)]

CLASSPATH entry is also updated to "/opt/ibm/ondemand/V10.1/www/ODApi.jar"

Is there anything I missed.

Thanks
Title: Re: Installing ODWEK 10.1 on Linux
Post by: jsquizz on May 27, 2021, 10:11:58 AM
Is this happening when you try to add the CMOD repository in ICN?
Title: Re: Installing ODWEK 10.1 on Linux
Post by: dineshkhanna04 on May 27, 2021, 12:06:16 PM
Hi Jsquizz,

No, we are not trying anything related to ICN. We have developed a java API which connects to CMOD server running on a different VM. This API is deployed on Websphere server where we now have 2 versions of ODWEK, 9.5 and 10.1. API is able to connect to CMOD server if we use the paths of V9.5 on WAS environment entries. But when we point the environment entries to V10.1 path we are getting this error.

Thanks
Title: Re: Installing ODWEK 10.1 on Linux
Post by: Darrell Bryant on May 28, 2021, 05:27:18 AM
You said that you are using a base 10.1 install. In case you install the 10.1.0.5 or higher fixpack you should be aware of the following tip published in the 3Q2019 OnDemand newsletter.

ODWEK Java API users need to update CLASSPATH

Beginning with server version 10.1.0.5, customer applications that are using the Content Manager OnDemand Web Enablement Kit (ODWEK) Java APIs will need to include the Gson jar file, with path, in the CLASSPATH for the application. The file name for Gson version 2.8.1 is gson-2.8.1.jar and can be found in the <CMOD install directory>/jars directory, where CMOD install directory is your Content Manager OnDemand installation directory.
For example, the file name for Gson version 2.8.1 is gson-2.8.1.jar.  If this is the name of your most current Gson file, the CLASSPATH statement must be updated to include:

AIX:
CLASSPATH=/opt/IBM/ondemand/V10.1/jars/gson-2.8.1.jar
Linux:
CLASSPATH=/opt/ibm/ondemand/V10.1/jars/gson-2.8.1.jar
Windows:
CLASSPATH=C:\Program Files\IBM\OnDemand\V10.1\jars\gson-2.8.1.jar
IBM i
CLASSPATH=/QIBM/ProdData/OnDemand/jars/gson-2.8.1.jar.
Title: Re: Installing ODWEK 10.1 on Linux
Post by: dmalvi19 on June 01, 2021, 12:09:39 AM
I kind of faced similar issue where there was same error when I was using V10.1 but things were running fine on V9.5.
the issue was with the "Linux version".
for CMOD v10.1 minimum need is RHEL 7.2 and for v9.5 minimum need is RHEL  6.4, and I was lower then 7.2, once we upgraded it started working.

check your RHEL version, may be this is causing some conflict.

https://www.ibm.com/software/reports/compatibility/clarity-reports/report/html/softwareReqsForProduct?deliverableId=E877A7C04AB511E5BB33E7199C786195

All the best.