Despite the name, the error doesn't mean the class isn't found but could
not be initialized. What's the rest of the error?
I don't believe any testing has ever encountered this error, so it's likely
something to do with your environment, but I don't know what.

On Thu, May 27, 2021 at 7:32 AM Kanchan Kauthale <
kanchankauthal...@gmail.com> wrote:

> Hello,
>
> We have an existing project which works fine with Spark 2.4.7. We want to
> upgrade the spark version to 2.4.8. Scala version we are using is- 2.11
> After building with upgraded pom, we are getting error below for test cases-
>
> java.lang.NoClassDefFoundError: Could not initialize class
> org.spark_object.jetty.servlet.ServletContextHandler
> at
> org.apache.spark.ui.JettyUtils$.createServletHandler(JettyUtils.scala:143)
>
> When I checked in Maven dependencies, I could find the
> ServletContextHandlerclass under spark-core_2.11-2.4.8.jar in given package
> hierarchy. I have compiled code, dependencies have been resolved, classpath
> is updated.
>
> Any hint regarding this error would help.
>
>
> Thank you
>
> Kanchan
>

Reply via email to