java.lang.NoClassDefFoundError

org/apache/predictionio/controller/EngineFactory


Samebug tips5

A few things cause this exception: 1) Check if you have all jars and if they're in the correct path when running. 2) Your classpath might be broken, you can define it in the command line with "java -cp yourClassPath" or at your IDE if you're using one.

Needs to add netty-transport-native-epoll with a OS classifier to the classpath, it's not included in netty-all

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.


Solutions on the web19402

Solution icon of googlegroups
via Google Groups by Vaulstein, 6 months ago
org/apache/predictionio/controller/EngineFactory

Solution icon of googlegroups
via Google Groups by Iryna Saturina, 3 weeks ago
org/jboss/as/controller/ResourceBuilder$Factory

Solution icon of youtrack
org/jboss/as/controller/client/ModelControllerClient$Factory

Solution icon of googlegroups
org/jboss/as/controller/ResourceBuilder$Factory

Solution icon of spring
via Spring JIRA by Rob Murray, 1 year ago
org/springframework/roo/addon/web/mvc/controller/detail s/WebMetadataUtils

Solution icon of spring
via Spring JIRA by Rob Murray, 1 year ago
org/springframework/roo/addon/web/mvc/controller/detail s/WebMetadataUtils

Solution icon of coderanch
via Coderanch by shelly sharma, 8 months ago
org/apache/axis/AxisFault

Solution icon of coderanch
via Coderanch by Dominic Steng�rd, 10 months ago
org/apache/log4j/Logger

Solution icon of coderanch
via Coderanch by Somnath Mallick, 8 months ago
org/apache/http/HttpResponseFactory

Solution icon of coderanch
via Coderanch by Rodine Villar, 8 months ago
org/apache/log4j/Level

Stack trace

  • java.lang.NoClassDefFoundError: org/apache/predictionio/controller/EngineFactory at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:763) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:467) at java.net.URLClassLoader.access$100(URLClassLoader.java:73) at java.net.URLClassLoader$1.run(URLClassLoader.java:368) at java.net.URLClassLoader$1.run(URLClassLoader.java:362) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:361) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:348) at scala.reflect.runtime.ReflectionUtils$.staticSingletonInstance(ReflectionUtils.scala:60) at scala.reflect.runtime.JavaMirrors$JavaMirror$JavaModuleMirror.instance(JavaMirrors.scala:473) at io.prediction.workflow.WorkflowUtils$.getEngine(WorkflowUtils.scala:69) at io.prediction.workflow.CreateWorkflow$.liftedTree1$1(CreateWorkflow.scala:193) at io.prediction.workflow.CreateWorkflow$.main(CreateWorkflow.scala:192) at io.prediction.workflow.CreateWorkflow.main(CreateWorkflow.scala) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.spark.deploy.SparkSubmit$.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:672) at org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:180) at org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:205) at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:120) at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala) Caused by: java.lang.ClassNotFoundException: org.apache.predictionio.controller.EngineFactory at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 28 more

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

11 times, 2 months ago
Samebug visitor profile picture
Unknown user
2 times, 3 months ago
3 times, 4 months ago
Once, 5 months ago
Samebug visitor profile picture
Unknown user
Once, 5 months ago
1544 more bugmates