Failed to publish a webservice in Mendix 3.0

3
Hi all, I'll tried to publish a simple webservice with Mendix, but the following critical error appears in the log as soon as I try to invoke it: An unhandled error occurred in the MxRuntime. -------- java.lang.NoSuchMethodError: javax.xml.stream.XMLInputFactory.newFactory(Ljava/lang/String;Ljava/lang/ClassLoader;)Ljavax/xml/stream/XMLInputFactory; at nK.b(SourceFile:113) at nK.a(SourceFile:87) at com.mendix.modules.webservices.WebserviceModule.handleWebserviceCall(SourceFile:274) at iE.processRequest(SourceFile:27) at iB.a(SourceFile:71) at com.mendix.core.MxRuntime.processRequest(SourceFile:840) at com.mendix.m2ee.server.handler.RuntimeHandler.handle(RuntimeHandler.java:43) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:113) at org.eclipse.jetty.server.Server.handle(Server.java:334) at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:559) at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1007) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:747) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:209) at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:406) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:462) at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:436) at java.lang.Thread.run(Thread.java:619) Anybody knows what is happening or how to circumvent?
asked
1 answers
5

The version of the JDK that you are using is too old. The Mendix Runtime requires at least update 22 of JDK 1.6. Note that JDK 1.7 is not yet supported because it is not stable yet.

The Mendix installer installs a recent version of the JDK if there is none. However, it does not upgrade an old JDK installation and I've submitted a ticket to get this fixed.

See also https://world.mendix.com/display/refguide3/System+Requirements

Also take care that any server you deploy Mendix on runs a recent JDK 1.6.

answered