0 Replies Latest reply on May 21, 2015 7:15 AM by Siva P

    Failed to define class org/hibernate/validator/ValidationMessages

    Siva P Master

      Hello ,

       

      I am getting the below error while accessing my application home page.

      Previously I used to get some different errors before,now most of them resolved.i am getting the below error.

      I am in migration of Richfaces 3.3.1 to 4Xversion.

      Jar File:hibernate-validator-4.3.0.Final.jar

      Thank You.

       

      Log File:

      12:42:41,422 INFO  [org.jboss.seam.Component] (ServerService Thread Pool -- 60) Component: org.jboss.seam.web.session, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.web.Session 12:42:41,423 INFO  [org.jboss.seam.Component] (ServerService Thread Pool -- 60) Component: org.jboss.seam.web.userPrincipal, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.faces.UserPrincipal 12:42:41,425 INFO  [org.jboss.seam.Component] (ServerService Thread Pool -- 60) Component: reporting, scope: CONVERSATION, type: JAVA_BEAN, class: com.bosch.wcms.simplereporting.session.Reporting 12:42:41,432 INFO  [org.jboss.seam.Component] (ServerService Thread Pool -- 60) Component: securityRules, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.drools.RuleBase 12:42:41,435 INFO  [org.jboss.seam.Component] (ServerService Thread Pool -- 60) Component: sharedComponent, scope: APPLICATION, type: JAVA_BEAN, class: com.bosch.wcms.simplereporting.common.SharedComponent 12:42:41,444 WARN  [org.jboss.seam.security.permission.PersistentPermissionResolver] (ServerService Thread Pool -- 60) no permission store available - please install a PermissionStore with the name 'org.jboss.seam.security.jpaPermissionStore' if persistent permissions are required. 12:42:41,525 INFO  [javax.enterprise.resource.webcontainer.jsf.config] (ServerService Thread Pool -- 60) Initializing Mojarra 2.2.10 ( 20150205-0906 https://svn.java.net/svn/mojarra~svn/tags/2.2.10@14334) for context '/SimpleReporting' 12:42:44,539 WARNING [javax.enterprise.resource.webcontainer.jsf.config] (ServerService Thread Pool -- 60) JSF1025: [/SimpleReporting] Context initialization parameter 'facelets.BUFFER_SIZE' is deprecated.  The option will still be configured, but please use 'javax.faces.FACELETS_BUFFER_SIZE' in the future. 12:42:44,540 INFO  [javax.enterprise.resource.webcontainer.jsf.config] (ServerService Thread Pool -- 60) JSF1019: [/SimpleReporting] Configuration option 'javax.faces.FACELETS_BUFFER_SIZE' RESET to '100000' 12:42:44,540 WARNING [javax.enterprise.resource.webcontainer.jsf.config] (ServerService Thread Pool -- 60) JSF1025: [/SimpleReporting] Context initialization parameter 'facelets.REFRESH_PERIOD' is deprecated.  The option will still be configured, but please use 'javax.faces.FACELETS_REFRESH_PERIOD' in the future. 12:42:44,540 INFO  [javax.enterprise.resource.webcontainer.jsf.config] (ServerService Thread Pool -- 60) JSF1019: [/SimpleReporting] Configuration option 'javax.faces.FACELETS_REFRESH_PERIOD' RESET to '-1' 12:42:44,648 INFO  [org.richfaces.log.Cache] (ServerService Thread Pool -- 60) Selected [org.richfaces.cache.JBossCacheCacheFactory] 12:42:44,943 INFO  [org.jboss.cache.jmx.PlatformMBeanServerRegistration] (ServerService Thread Pool -- 60) JBossCache MBeans were successfully registered to the platform mbean server. 12:42:44,944 INFO  [org.jboss.cache.factories.ComponentRegistry] (ServerService Thread Pool -- 60) JBoss Cache version: JBossCache 'Malagueta' 3.2.7.GA 12:42:44,949 INFO  [org.richfaces.log.Application] (ServerService Thread Pool -- 60) RichFaces Core by JBoss by Red Hat, version 4.5.5.Final 12:42:45,435 WARNING [org.richfaces.log.Application] (ServerService Thread Pool -- 60) JMS API was found on the classpath; if you want to enable RichFaces Push JMS integration, set context-param 'org.richfaces.push.jms.enabled' in web.xml 12:42:45,448 INFO  [org.jboss.seam.servlet.SeamFilter] (ServerService Thread Pool -- 60) Initializing filter: org.jboss.seam.web.hotDeployFilter 12:42:45,449 INFO  [org.jboss.seam.servlet.SeamFilter] (ServerService Thread Pool -- 60) Initializing filter: org.jboss.seam.web.redirectFilter 12:42:45,449 INFO  [org.jboss.seam.servlet.SeamFilter] (ServerService Thread Pool -- 60) Initializing filter: org.jboss.seam.web.exceptionFilter 12:42:45,449 INFO  [org.jboss.seam.servlet.SeamFilter] (ServerService Thread Pool -- 60) Initializing filter: org.jboss.seam.web.multipartFilter 12:42:45,449 INFO  [org.jboss.seam.servlet.SeamFilter] (ServerService Thread Pool -- 60) Initializing filter: com.bosch.commons.security.ivUserAuthenticationFilter 12:42:45,449 INFO  [org.jboss.seam.servlet.SeamFilter] (ServerService Thread Pool -- 60) Initializing filter: org.jboss.seam.web.identityFilter 12:42:45,449 INFO  [org.jboss.seam.servlet.SeamFilter] (ServerService Thread Pool -- 60) Initializing filter: com.bosch.commons.security.wamDistinctionFilter 12:42:45,450 INFO  [org.jboss.seam.servlet.SeamFilter] (ServerService Thread Pool -- 60) Initializing filter: org.jboss.seam.web.loggingFilter 12:42:45,450 INFO  [org.jboss.seam.servlet.SeamFilter] (ServerService Thread Pool -- 60) Initializing filter: org.jboss.seam.web.rewriteFilter 12:42:45,684 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018565: Replaced deployment "SimpleReporting.war" with deployment "SimpleReporting.war" 12:44:31,598 INFO  [com.bosch.commons.security.Authenticator] (http-localhost/127.0.0.1:8080-1) User zer8szh logged into the application. 12:44:32,524 WARN  [org.jboss.modules] (http-localhost/127.0.0.1:8080-1) Failed to define class org/hibernate/validator/ValidationMessages in Module "deployment.SimpleReporting.war:main" from Service Module Loader: java.lang.LinkageError: Failed to link org/hibernate/validator/ValidationMessages (Module "deployment.SimpleReporting.war:main" from Service Module Loader)     at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:428) [jboss-modules.jar:1.3.0.Final-redhat-2]     at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:261) [jboss-modules.jar:1.3.0.Final-redhat-2]     at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:76) [jboss-modules.jar:1.3.0.Final-redhat-2]     at org.jboss.modules.Module.loadModuleClass(Module.java:548) [jboss-modules.jar:1.3.0.Final-redhat-2]     at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:189) [jboss-modules.jar:1.3.0.Final-redhat-2]     at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:443) [jboss-modules.jar:1.3.0.Final-redhat-2]     at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:431) [jboss-modules.jar:1.3.0.Final-redhat-2]     at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:373) [jboss-modules.jar:1.3.0.Final-redhat-2]     at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:118) [jboss-modules.jar:1.3.0.Final-redhat-2]     at java.util.ResourceBundle$Control.newBundle(ResourceBundle.java:2566) [rt.jar:1.7.0_71]     at java.util.ResourceBundle.loadBundle(ResourceBundle.java:1436) [rt.jar:1.7.0_71]     at java.util.ResourceBundle.findBundle(ResourceBundle.java:1400) [rt.jar:1.7.0_71]     at java.util.ResourceBundle.findBundle(ResourceBundle.java:1354) [rt.jar:1.7.0_71]     at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1296) [rt.jar:1.7.0_71]     at java.util.ResourceBundle.getBundle(ResourceBundle.java:1028) [rt.jar:1.7.0_71]     at org.jboss.seam.core.ResourceLoader.loadBundle(ResourceLoader.java:74) [jboss-seam-2.3.2.jar:2.3.2-SNAPSHOT]     at org.jboss.seam.core.SeamResourceBundle.loadBundlesForCurrentLocale(SeamResourceBundle.java:99) [jboss-seam-2.3.2.jar:2.3.2-SNAPSHOT]     at org.jboss.seam.core.SeamResourceBundle.getBundlesForCurrentLocale(SeamResourceBundle.java:78) [jboss-seam-2.3.2.jar:2.3.2-SNAPSHOT]     at org.jboss.seam.core.SeamResourceBundle.handleGetObject(SeamResourceBundle.java:142) [jboss-seam-2.3.2.jar:2.3.2-SNAPSHOT]     at java.util.ResourceBundle.getObject(ResourceBundle.java:389) [rt.jar:1.7.0_71]     at java.util.ResourceBundle.getString(ResourceBundle.java:355) [rt.jar:1.7.0_71]     at com.sun.faces.application.resource.ResourceManager.getLocalePrefix(ResourceManager.java:605) [jsf-impl-2.2.10.jar:2.2.10]     at com.sun.faces.application.resource.ResourceManager.findResource(ResourceManager.java:188) [jsf-impl-2.2.10.jar:2.2.10]     at com.sun.faces.application.resource.ResourceHandlerImpl.createViewResource(ResourceHandlerImpl.java:123) [jsf-impl-2.2.10.jar:2.2.10]     at com.sun.faces.application.resource.ResourceHandlerImpl.createViewResource(ResourceHandlerImpl.java:72) [jsf-impl-2.2.10.jar:2.2.10]     at javax.faces.application.ResourceHandlerWrapper.createViewResource(ResourceHandlerWrapper.java:124) [jsf-api-2.2.10.jar:2.2]     at com.sun.faces.facelets.impl.DefaultResourceResolver.resolveUrl(DefaultResourceResolver.java:80) [jsf-impl-2.2.10.jar:2.2.10]     at com.sun.faces.application.view.FaceletViewHandlingStrategy.viewExists(FaceletViewHandlingStrategy.java:1032) [jsf-impl-2.2.10.jar:2.2.10]     at com.sun.faces.application.view.MultiViewHandler.convertViewId(MultiViewHandler.java:560) [jsf-impl-2.2.10.jar:2.2.10]     at com.sun.faces.application.view.MultiViewHandler.derivePhysicalViewId(MultiViewHandler.java:580) [jsf-impl-2.2.10.jar:2.2.10]     at com.sun.faces.application.view.MultiViewHandler.deriveLogicalViewId(MultiViewHandler.java:491) [jsf-impl-2.2.10.jar:2.2.10]     at javax.faces.application.ViewHandlerWrapper.deriveLogicalViewId(ViewHandlerWrapper.java:142) [jsf-api-2.2.10.jar:2.2]     at javax.faces.application.ViewHandlerWrapper.deriveLogicalViewId(ViewHandlerWrapper.java:142) [jsf-api-2.2.10.jar:2.2]     at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:228) [jsf-impl-2.2.10.jar:2.2.10]     at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) [jsf-impl-2.2.10.jar:2.2.10]     at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:121) [jsf-impl-2.2.10.jar:2.2.10]     at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:198) [jsf-impl-2.2.10.jar:2.2.10]     at javax.faces.webapp.FacesServlet.service(FacesServlet.java:646) [jsf-api-2.2.10.jar:2.2]     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]     at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83) [jboss-seam-2.3.2.jar:2.3.2-SNAPSHOT]     at org.jboss.seam.web.RewriteFilter.doFilter(RewriteFilter.java:63) [jboss-seam-2.3.2.jar:2.3.2-SNAPSHOT]     at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam-2.3.2.jar:2.3.2-SNAPSHOT]     at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60) [jboss-seam-2.3.2.jar:2.3.2-SNAPSHOT]     at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam-2.3.2.jar:2.3.2-SNAPSHOT]     at com.bosch.commons.security.WamDistinctionFilter.doFilter(WamDistinctionFilter.java:194) [bosch-commons-security.jar:]     at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam-2.3.2.jar:2.3.2-SNAPSHOT]     at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40) [jboss-seam-2.3.2.jar:2.3.2-SNAPSHOT]     at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam-2.3.2.jar:2.3.2-SNAPSHOT]     at com.bosch.commons.security.IvUserAuthenticationFilter.doFilter(IvUserAuthenticationFilter.java:131) [bosch-commons-security.jar:]     at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam-2.3.2.jar:2.3.2-SNAPSHOT]     at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90) [jboss-seam-2.3.2.jar:2.3.2-SNAPSHOT]     at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam-2.3.2.jar:2.3.2-SNAPSHOT]     at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64) [jboss-seam-2.3.2.jar:2.3.2-SNAPSHOT]     at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam-2.3.2.jar:2.3.2-SNAPSHOT]     at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45) [jboss-seam-2.3.2.jar:2.3.2-SNAPSHOT]     at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam-2.3.2.jar:2.3.2-SNAPSHOT]     at org.jboss.seam.web.HotDeployFilter.doFilter(HotDeployFilter.java:53) [jboss-seam-2.3.2.jar:2.3.2-SNAPSHOT]     at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam-2.3.2.jar:2.3.2-SNAPSHOT]     at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158) [jboss-seam-2.3.2.jar:2.3.2-SNAPSHOT]     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]     at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:407) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]     at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) [jboss-as-jpa-7.3.0.Final-redhat-14.jar:7.3.0.Final-redhat-14]     at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) [jboss-as-jpa-7.3.0.Final-redhat-14.jar:7.3.0.Final-redhat-14]     at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169) [jboss-as-web-7.3.0.Final-redhat-14.jar:7.3.0.Final-redhat-14]     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:145) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:336) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]     at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]     at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:920) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]     at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_71] Caused by: java.lang.NoClassDefFoundError: IllegalName: org/hibernate/validator/ValidationMessages     at java.lang.ClassLoader.preDefineClass(ClassLoader.java:655) [rt.jar:1.7.0_71]     at java.lang.ClassLoader.defineClass(ClassLoader.java:794) [rt.jar:1.7.0_71]     at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:345) [jboss-modules.jar:1.3.0.Final-redhat-2]     at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:423) [jboss-modules.jar:1.3.0.Final-redhat-2]     ... 75 more

       

      WEB.XML

       

      <?xml version="1.0" encoding="UTF-8"?>
      <web-app id="WebApp_ID" version="3.0"
          xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
          <display-name>SimpleReporting</display-name>
          <context-param>
              <param-name>facelets.DEVELOPMENT</param-name>
              <param-value>true</param-value>
          </context-param>
          <context-param>
              <param-name>facelets.REFRESH_PERIOD</param-name>
              <param-value>-1</param-value>
          </context-param>
          <context-param>
              <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
              <param-value>.xhtml</param-value>
          </context-param>
      <!--      <context-param>
              <param-name>org.jboss.jbossfaces.JSF_CONFIG_NAME</param-name>
              <param-value>Mojarra-1.2</param-value>
          </context-param> -->
      
          <context-param>
              <param-name>com.sun.faces.responseBufferSize</param-name>
              <param-value>100000</param-value>
          </context-param>
      
          <context-param>
              <param-name>facelets.BUFFER_SIZE</param-name>
              <param-value>100000</param-value>
          </context-param>
      
      
          <context-param>
              <param-name>com.sun.faces.externalizeJavaScript</param-name>
              <param-value>true</param-value>
          </context-param>
      
      
          <context-param>
              <param-name>org.richfaces.skin</param-name>
              <param-value>blueSky</param-value>
          </context-param>
          <filter>
              <filter-name>Seam Filter</filter-name>
              <filter-class>org.jboss.seam.servlet.SeamFilter</filter-class>
          </filter>
          <filter-mapping>
              <filter-name>Seam Filter</filter-name>
              <url-pattern>/*</url-pattern>
          </filter-mapping>
          <listener>
              <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
          </listener>
        
            <!-- ACTIVATE - JAVAX JSF Servlet -->
          <servlet>
              <servlet-name>Faces Servlet</servlet-name>
              <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
              <load-on-startup>1</load-on-startup>
          </servlet>
          <servlet>
              <servlet-name>Seam Resource Servlet</servlet-name>
              <servlet-class>org.jboss.seam.servlet.SeamResourceServlet</servlet-class>
          </servlet>
          <servlet-mapping>
              <servlet-name>Faces Servlet</servlet-name>
              <url-pattern>*.seam</url-pattern>
          </servlet-mapping>
          <servlet-mapping>
              <servlet-name>Seam Resource Servlet</servlet-name>
              <url-pattern>/seam/resource/*</url-pattern>
          </servlet-mapping>
          <welcome-file-list>
              <welcome-file>index.html</welcome-file>
              <welcome-file>index.htm</welcome-file>
              <welcome-file>index.jsp</welcome-file>
              <welcome-file>default.html</welcome-file>
              <welcome-file>default.htm</welcome-file>
              <welcome-file>default.jsp</welcome-file>
              <welcome-file>reporting.xhtml</welcome-file>
          </welcome-file-list>
          <security-constraint>
              <display-name>Restrict raw XHTML Documents</display-name>
              <web-resource-collection>
                  <web-resource-name>XHTML</web-resource-name>
                  <url-pattern>*.xhtml</url-pattern>
              </web-resource-collection>
              <auth-constraint />
          </security-constraint>
      </web-app>