IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

Service failing with 'java.lang.NoClassDefFoundError: org/apache/commons/lang3/StringUtils' error

  • 1.  Service failing with 'java.lang.NoClassDefFoundError: org/apache/commons/lang3/StringUtils' error

    Posted Wed June 14, 2017 02:28 AM

    Hi Team

    There is a flow service which has a custom java service in it. The service has been working fine but has stopped working and is throwing below exception on running it:

    Exception in thread “EventReportRunner_0” java.lang.NoClassDefFoundError: org/apache/commons/lang3/StringUtils
    at com.amway.integration.wm.logging.report.EventReportHTMLFormatter.formatReport(EventReportHTMLFormatter.java:21)
    at com.amway.integration.wm.logging.batch.EventReporter$EventReportRunner.run(EventReporter.java:280)
    Caused by: java.lang.ClassNotFoundException: org.apache.commons.lang3.StringUtils
    at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    … 2 more

    Upon reloading the package, the service is returning output for a while and is again throwing the above exception after a while. Restart did not help too. commons-lang.jar and commons-lang-2.6.0.jar are the jars present. The same service is working fine on other servers with same configuration… Could you please let me know what could be the issue and why is it working for a while on reloading the package


    #Integration-Server-and-ESB
    #webMethods
    #webMethods-General


  • 2.  RE: Service failing with 'java.lang.NoClassDefFoundError: org/apache/commons/lang3/StringUtils' error

    Posted Fri June 23, 2017 12:17 AM

    Hi Experts

    Any help on the query please? The issue is still happening.


    #Integration-Server-and-ESB
    #webMethods-General
    #webMethods


  • 3.  RE: Service failing with 'java.lang.NoClassDefFoundError: org/apache/commons/lang3/StringUtils' error

    Posted Mon June 26, 2017 01:23 PM

    Hi,

    Where have you place the apache commons jar?
    Is it corrupt?
    Do you see it listed in the About section of the IS.

    If you moved it without restarting the IS, the classpath was not updated.

    Best Regards,


    #webMethods-General
    #webMethods
    #Integration-Server-and-ESB


  • 4.  RE: Service failing with 'java.lang.NoClassDefFoundError: org/apache/commons/lang3/StringUtils' error

    Posted Thu July 13, 2017 04:06 AM

    Thank you for the reply. The issue is now resolved. commons-lang3-3.4.jar was placed after which we do not see the error.


    #webMethods
    #webMethods-General
    #Integration-Server-and-ESB