REST Services - java.lang.NoClassDefFoundError

3
Hi, Using the REST Service from the App Store we were able to consume a third-party RESTful webservice from a local deployment (Cloud Security Emulation disabled, as suggested in another thread). However, when we deploy the application to the acceptance cloud, a critical error is raised the moment we call the webservice. The relevant part of the exception stacktrace is as follows: 2014-09-22 18:25:09.148 CRITICAL - M2EE: An unhandled error occurred in the MxRuntime. 2014-09-22 18:25:09.148 CRITICAL - M2EE: java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.<clinit>(MultiThreadedHttpConnectionManager.java:70) at restservices.consume.RestConsumer.<clinit>(RestConsumer.java:70) We have added the commons-logging library that contains this specific class (LogFactory) to the userlib directory to ensure classpath visibility, this gave the same error. Anyone have a suggestion on how to solve this?
asked
1 answers
1

This was fixed for some applications that experienced the issue in the past months, and last week we released it for all Mendix Cloud applications. It should take effect after a restart.

Note that this problem only applied to Mendix 4.

answered