Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-826

RESTEasy 3 throws NoClassDefFoundError with Hibernate Validator 5

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.0.1.Final
    • 3.0-beta-5
    • None
    • None

      In a GAE app I'm using RESTEasy 2.3.5.Final and Hibernate Validator 5.0.0.Alpha2.
      Now I tried to upgrade RESTEasy to 3.0-beta-2, but got the stacktrace below.
      The missing class org.hibernate.validator.method.MethodValidator is available in HV 4, but not in HV 5.

      java.lang.NoClassDefFoundError: org/hibernate/validator/method/MethodValidator
      at java.lang.ClassLoader.defineClass1(Native Method)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:791)
      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
      at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
      at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
      at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
      at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
      at com.google.appengine.tools.development.IsolatedAppClassLoader.loadClass(IsolatedAppClassLoader.java:213)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
      at org.jboss.resteasy.core.ResourceMethod.<init>(ResourceMethod.java:161)
      at org.jboss.resteasy.core.ResourceMethodRegistry.processMethod(ResourceMethodRegistry.java:280)
      at org.jboss.resteasy.core.ResourceMethodRegistry.addResourceFactory(ResourceMethodRegistry.java:129)
      at org.jboss.resteasy.core.ResourceMethodRegistry.addResourceFactory(ResourceMethodRegistry.java:111)
      at org.jboss.resteasy.core.ResourceMethodRegistry.addResourceFactory(ResourceMethodRegistry.java:88)
      at org.jboss.resteasy.core.ResourceMethodRegistry.addPerRequestResource(ResourceMethodRegistry.java:77)
      at org.jboss.resteasy.spi.ResteasyDeployment.registration(ResteasyDeployment.java:400)
      at org.jboss.resteasy.spi.ResteasyDeployment.start(ResteasyDeployment.java:226)
      at org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap.contextInitialized(ResteasyBootstrap.java:28)
      at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:548)
      at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
      at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
      at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
      at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
      at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
      at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
      at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
      at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
      at org.mortbay.jetty.Server.doStart(Server.java:224)
      at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
      at com.google.appengine.tools.development.JettyContainerService.startContainer(JettyContainerService.java:205)
      at com.google.appengine.tools.development.AbstractContainerService.startup(AbstractContainerService.java:232)
      at com.google.appengine.tools.development.DevAppServerImpl.start(DevAppServerImpl.java:157)
      at com.google.appengine.tools.development.DevAppServerMain$StartAction.apply(DevAppServerMain.java:333)
      at com.google.appengine.tools.util.Parser$ParseResult.applyArgs(Parser.java:48)
      at com.google.appengine.tools.development.DevAppServerMain.<init>(DevAppServerMain.java:269)
      at com.google.appengine.tools.development.DevAppServerMain.main(DevAppServerMain.java:245)
      Caused by: java.lang.ClassNotFoundException: org.hibernate.validator.method.MethodValidator
      at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
      at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
      at com.google.appengine.tools.development.IsolatedAppClassLoader.loadClass(IsolatedAppClassLoader.java:213)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
      ... 39 more

              patriot1burke@gmail.com Bill Burke (Inactive)
              juergen.zimmermann Juergen Zimmermann (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: