OnDemand Users Group

Support Forums => ODWEK, Java and REST APIs => Topic started by: Glenn on April 09, 2012, 11:41:32 AM

Title: ODWEK error - java.lang.NoClassDefFoundError: Could not initialize class com.ibm
Post by: Glenn on April 09, 2012, 11:41:32 AM
I just upgraded my 8.3 to version 8.5.0.4.  My Frameworks counterpart is seeing the following error:  java.lang.NoClassDefFoundError: Could not initialize class com.ibm.edms.od.ArsWWWInterface
IBM support is mentioning something about:
Copy the ArsSVTInterface.class file to a directory that is set by the   
CLASSPATH variable for the Web application server. Because this file is
part of a package (com.ibm.edms.od), you must mirror the package       
structure as subdirectories under this directory.                       
                                                                       
For example, if the directory <server_root>/classes is set by the       
CLASSPATH variable, then you must copy the ArsSVTInterface.class file to
the server_root>/classes/com/ibm/edms/od directory.                     

I do not see ArsSVTInterface.class in my ODApi.jar.  Please HELP!
Thanks...
Title: Re: ODWEK error - java.lang.NoClassDefFoundError: Could not initialize class com.ibm
Post by: javed.khan on April 09, 2012, 11:54:33 AM
You can find the said class at the location : ~installation directory~\servlets
Title: Re: ODWEK error - java.lang.NoClassDefFoundError: Could not initialize class com.ibm
Post by: Glenn on April 09, 2012, 12:50:27 PM
So if my CLASSPATH is as follows:
CLASSPATH=/opt/ondemand/www/api/ODApi.jar
All I have to do is copy the /opt/ondemand/www/servlets/ArsSVTInterface.class to /opt/ondemand/www/api directory and that will get everything working?
Title: Re: ODWEK error - java.lang.NoClassDefFoundError: Could not initialize class com.ibm
Post by: javed.khan on April 10, 2012, 06:06:42 AM
Yes it should work this way.....The other way is to append /opt/ondemand/www/servlets directory also to the classpath....