3 Replies Latest reply on Jul 1, 2010 9:31 AM by Stan Silvert

    Problem with Bean Validation in JSF 2.0-Application

    Joachim Beer Newbie

      Hello,

       

      i'm new in JSF2.0 and i have a problem with the bean validation.I got the posted error, when i added the validation-api-1.0.0.GA.jar to the classpath of my applicaton. I don't use any annotion from jsr-303, i only added the lib to the classpath. Has anyone an idea?

       

      Best regards,

      Joachim

       

      ERROR [application] Unable to load class:
      java.lang.NoClassDefFoundError: javax/validation/ValidationException
      at java.lang.Class.getDeclaredConstructors0(Native Method)
      at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
      at java.lang.Class.getConstructor0(Class.java:2699)
      at java.lang.Class.newInstance0(Class.java:326)
      at java.lang.Class.newInstance(Class.java:308)
      ....
      Caused by: java.lang.ClassNotFoundException: No ClassLoaders found for: javax.validation.ValidationException
      at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:306)
      at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:521)
      at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:415)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
      ....