0 Replies Latest reply on May 27, 2015 1:51 AM by sivaprasad9394

    Failed to define class org/hibernate/validator/ValidationMessages in Module

    sivaprasad9394

      Hello,

      I am migration my application to the below technology,I am getting the error message while accessing my application in the browser.

      I have attached the error message log also.

      Migrating to new Tech:

      Rich Faces 4.5.5 version

      JSF 2.1

      Seam 2.3.2

      We are using Jboss EAP6.2.


      When I am accessing the web application URL in the browser, I am getting the below error.How to resolve it.I have tried with many hibernate Validator jar file also.

      Attached jar file Versions:

      FileNew1.png

      FileNew2.png

      07:27:51,396 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015874: JBoss EAP 6.2.0.GA (AS 7.3.0.Final-redhat-14) started in 70421ms - Started 316 of 377 services (59 services are passive or on-demand)

      07:32:01,649 INFO  [com.bosch.commons.security.Authenticator] (http-localhost/127.0.0.1:8080-1) User zer8szh logged into the application.

      07:32:02,732 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:495) [jsf-impl-2.1.28.jar:2.1.28]

          at com.sun.faces.application.resource.ResourceManager.findResource(ResourceManager.java:174) [jsf-impl-2.1.28.jar:2.1.28]

          at com.sun.faces.application.resource.ResourceHandlerImpl.createResource(ResourceHandlerImpl.java:143) [jsf-impl-2.1.28.jar:2.1.28]

          at org.richfaces.resource.ResourceFactoryImpl.createCompiledCSSResource(ResourceFactoryImpl.java:117) [richfaces-core-4.5.5.Final.jar:4.5.5.Final]

          at org.richfaces.resource.ResourceFactoryImpl.createDynamicResource(ResourceFactoryImpl.java:433) [richfaces-core-4.5.5.Final.jar:4.5.5.Final]

          at org.richfaces.resource.ResourceFactoryImpl.createResource(ResourceFactoryImpl.java:348) [richfaces-core-4.5.5.Final.jar:4.5.5.Final]

          at org.richfaces.resource.ResourceHandlerImpl.createResource(ResourceHandlerImpl.java:266) [richfaces-core-4.5.5.Final.jar:4.5.5.Final]

          at org.richfaces.resource.ResourceHandlerImpl.createResource(ResourceHandlerImpl.java:280) [richfaces-core-4.5.5.Final.jar:4.5.5.Final]

          at org.richfaces.resource.mapping.ResourceServletMapping.getMappedPath(ResourceServletMapping.java:81) [richfaces-core-4.5.5.Final.jar:4.5.5.Final]

          at org.richfaces.resource.mapping.ResourceServletMapping.getResourcePath(ResourceServletMapping.java:72) [richfaces-core-4.5.5.Final.jar:4.5.5.Final]

          at org.richfaces.resource.external.MappedResourceFactoryImpl.createResource(MappedResourceFactoryImpl.java:112) [richfaces-core-4.5.5.Final.jar:4.5.5.Final]

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_71]

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_71]

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_71]

          at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_71]

          at org.richfaces.application.ServiceTracker$1.invoke(ServiceTracker.java:153) [richfaces-core-4.5.5.Final.jar:4.5.5.Final]

          at com.sun.proxy.$Proxy53.createResource(Unknown Source)

          at org.richfaces.resource.ResourceFactoryImpl.resolveMappedResource(ResourceFactoryImpl.java:393) [richfaces-core-4.5.5.Final.jar:4.5.5.Final]

          at org.richfaces.resource.ResourceFactoryImpl.createMappedResource(ResourceFactoryImpl.java:360) [richfaces-core-4.5.5.Final.jar:4.5.5.Final]

          at org.richfaces.resource.ResourceFactoryImpl.createResource(ResourceFactoryImpl.java:343) [richfaces-core-4.5.5.Final.jar:4.5.5.Final]

          at org.richfaces.resource.ResourceHandlerImpl.createResource(ResourceHandlerImpl.java:266) [richfaces-core-4.5.5.Final.jar:4.5.5.Final]

          at org.richfaces.resource.ResourceHandlerImpl.createResource(ResourceHandlerImpl.java:280) [richfaces-core-4.5.5.Final.jar:4.5.5.Final]

          at com.sun.faces.renderkit.html_basic.StylesheetRenderer.encodeEnd(StylesheetRenderer.java:97) [jsf-impl-2.1.28.jar:2.1.28]

          at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:877) [jsf-api-2.1.28.jar:2.1]

          at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1826) [jsf-api-2.1.28.jar:2.1]

          at com.sun.faces.renderkit.html_basic.HeadRenderer.encodeHeadResources(HeadRenderer.java:105) [jsf-impl-2.1.28.jar:2.1.28]

          at com.sun.faces.renderkit.html_basic.HeadRenderer.encodeEnd(HeadRenderer.java:92) [jsf-impl-2.1.28.jar:2.1.28]

          at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:877) [jsf-api-2.1.28.jar:2.1]

          at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1826) [jsf-api-2.1.28.jar:2.1]

          at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1822) [jsf-api-2.1.28.jar:2.1]

          at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:447) [jsf-impl-2.1.28.jar:2.1.28]

          at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:125) [jsf-impl-2.1.28.jar:2.1.28]

          at org.jboss.seam.jsf.SeamViewHandler.renderView(SeamViewHandler.java:188) [jboss-seam-2.3.2.jar:2.3.2-SNAPSHOT]

          at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:286) [jsf-api-2.1.28.jar:2.1]

          at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:120) [jsf-impl-2.1.28.jar:2.1.28]

          at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) [jsf-impl-2.1.28.jar:2.1.28]

          at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139) [jsf-impl-2.1.28.jar:2.1.28]

          at javax.faces.webapp.FacesServlet.service(FacesServlet.java:594) [jsf-api-2.1.28.jar:2.1]

          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]

          ... 96 more

       

       

      Thank you....