java.lang.NoClassDefFoundError

scala/collection/GenTraversableOnce$class]]

Samebug tips9

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.

If you're using Hibernate, this indicates you're missing FasterXML Classmate dependency, which you can add to your dependencies. To add it, the groupId is com.fasterxml and artifactId is Classmate.

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

Solutions on the web5840

  • scala/collection/GenTraversableOnce$class
  • scala/collection/GenTraversableOnce$class
  • scala/collection/GenTraversableOnce$class
  • Stack trace

    • java.lang.NoClassDefFoundError: scala/collection/GenTraversableOnce$class]] at play.api.Application$class.handleError(Application.scala:296)[play_2.11-2.3.0.jar:2.3.0] at play.api.DefaultApplication.handleError(Application.scala:402)[play_2.11-2.3.0.jar:2.3.0] at play.core.server.netty.PlayDefaultUpstreamHandler$$anonfun$14$$anonfun$apply$1.applyOrElse(PlayDefaultUpstreamHandler.scala:205)[play_2.11-2.3.0.jar:2.3.0] at play.core.server.netty.PlayDefaultUpstreamHandler$$anonfun$14$$anonfun$apply$1.applyOrElse(PlayDefaultUpstreamHandler.scala:202)[play_2.11-2.3.0.jar:2.3.0] at scala.runtime.AbstractPartialFunction.apply(AbstractPartialFunction.scala:36)[scala-library-2.11.1.jar:na] Caused by: java.lang.RuntimeException: java.lang.NoClassDefFoundError: scala/collection/GenTraversableOnce$class at play.api.mvc.ActionBuilder$$anon$1.apply(Action.scala:523)[play_2.11-2.3.0.jar:2.3.0] at play.api.mvc.Action$$anonfun$apply$1$$anonfun$apply$4$$anonfun$apply$5.apply(Action.scala:130)[play_2.11-2.3.0.jar:2.3.0] at play.api.mvc.Action$$anonfun$apply$1$$anonfun$apply$4$$anonfun$apply$5.apply(Action.scala:130)[play_2.11-2.3.0.jar:2.3.0] at play.utils.Threads$.withContextClassLoader(Threads.scala:21)[play_2.11-2.3.0.jar:2.3.0] at play.api.mvc.Action$$anonfun$apply$1$$anonfun$apply$4.apply(Action.scala:129)[play_2.11-2.3.0.jar:2.3.0] Caused by: java.lang.NoClassDefFoundError: scala/collection/GenTraversableOnce$class at org.squeryl.dsl.AbstractQuery.<init>(AbstractQuery.scala:27)[squeryl_2.10-0.9.5-6.jar:0.9.5-6] at org.squeryl.dsl.boilerplate.Query1.<init>(Query1.scala:24)[squeryl_2.10-0.9.5-6.jar:0.9.5-6] at org.squeryl.internals.Utils$DummyQuery.<init>(Utils.scala:64)[squeryl_2.10-0.9.5-6.jar:0.9.5-6] at org.squeryl.internals.Utils$$anonfun$mapSampleObject$1.apply(Utils.scala:90)[squeryl_2.10-0.9.5-6.jar:0.9.5-6] at org.squeryl.internals.FieldReferenceLinker$.executeAndRestoreLastAccessedFieldReference(FieldReferenceLinker.scala:93)[squeryl_2.10-0.9.5-6.jar:0.9.5-6] Caused by: java.lang.ClassNotFoundException: scala.collection.GenTraversableOnce$class at java.net.URLClassLoader$1.run(URLClassLoader.java:366)[na:1.7.0_21] at java.net.URLClassLoader$1.run(URLClassLoader.java:355)[na:1.7.0_21] at java.security.AccessController.doPrivileged(Native Method)[na:1.7.0_21] at java.net.URLClassLoader.findClass(URLClassLoader.java:354)[na:1.7.0_21] at java.lang.ClassLoader.loadClass(ClassLoader.java:423)[na:1.7.0_21]

    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

    3 times, 2 months ago
    Unknown user
    Once, 10 months ago
    Unknown user
    Once, 11 months ago
    Unknown user
    Once, 11 months ago
    Unknown user
    Once, 11 months ago
    2363 more bugmates