Caused By:java.lang.NoSuchMethodException:org.hibernate.validator.ClassValidator. (Java.lang.

Source: Internet
Author: User
Tags addchild jboss

The original operation of the project is no problem, but the two-day project has started to error, Baidu is jar package Hibernate-annotation.jar conflict caused. Check the project about Hibernate jar bag, found that there is no hibernate-annotation.jar, feel helpless.

The server is using JBOSS4.2.3-GA, before the project deployment to the jboss7.x version is OK, I think it is because of the replacement of the server reason, found again deployed to the jboss7.x project startup is also an error.

Org.springframework.beans.factory.BeanCreationException:Error creating Bean with Name ' Generichibernatedao ' defined in file [C:\Users\Administrator\desktop\jboss-4.2.3.GA\server\default\deploy\springtest.war\WEB-INF\classes\com\ Springtest\common\dao\generichibernatedao.class]: Initialization of Bean failed; Nested exception is org.springframework.beans.factory.BeanCreationException:Error creating beans with Name ' Sessionfactory ' defined in class path resource [Spring/applicationcontext.xml]: Invocation to Init method failed; Nested exception is org.hibernate.AnnotationException:java.lang.NoSuchMethodException: Org.hibernate.validator.classvalidator.<init> (Java.lang.Class, Java.util.ResourceBundle, Org.hibernate.validator.MessageInterpolator, Java.util.Map, Org.hibernate.annotations.common.reflection.ReflectionManager) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean ( abstractautowirecapablebeanfactory.java:529) at Org.springfraMework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean ( abstractautowirecapablebeanfactory.java:458) at org.springframework.beans.factory.support.abstractbeanfactory$1. GetObject (abstractbeanfactory.java:295) at Org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton ( defaultsingletonbeanregistry.java:223) at Org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (abstractbeanfactory.java:292) at Org.springframework.beans.factory.support.AbstractBeanFactory.getBean (abstractbeanfactory.java:194) at Org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons ( defaultlistablebeanfactory.java:626) at Org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization ( abstractapplicationcontext.java:932) at Org.springframework.context.support.AbstractApplicationContext.refresh ( abstractapplicationcontext.java:479) at Org.springframework.web.Context. Contextloader.configureandrefreshwebapplicationcontext (contextloader.java:389) at Org.springframework.web.context.ContextLoader.initWebApplicationContext (contextloader.java:294) at Org.springframework.web.context.ContextLoaderListener.contextInitialized (contextloaderlistener.java:112) at Org.apache.catalina.core.StandardContext.listenerStart (standardcontext.java:3856) at Org.apache.catalina.core.StandardContext.start (standardcontext.java:4361) at Org.apache.catalina.core.ContainerBase.addChildInternal (containerbase.java:790) at Org.apache.catalina.core.ContainerBase.addChild (containerbase.java:770) at Org.apache.catalina.core.StandardHost.addChild (standardhost.java:553) at Sun.reflect.NativeMethodAccessorImpl.invoke0 (Native method) at Sun.reflect.NativeMethodAccessorImpl.invoke ( nativemethodaccessorimpl.java:39) at Sun.reflect.DelegatingMethodAccessorImpl.invoke ( DELEGATINGMETHODACCESSORIMPL.JAVA:25) at Java.lang.reflect.Method.invoke (Method.java:597) at Org.apache.tomcat.util.modeler.BaseModelMBean.invoke (basemodelmbean.java:296) at Org.jboss.mx.s Erver. Rawdynamicinvoker.invoke (rawdynamicinvoker.java:164) at Org.jboss.mx.server.MBeanServerImpl.invoke ( mbeanserverimpl.java:659) at Org.apache.catalina.core.StandardContext.init (standardcontext.java:5312) at Sun.refle Ct. Nativemethodaccessorimpl.invoke0 (Native method) at Sun.reflect.NativeMethodAccessorImpl.invoke ( nativemethodaccessorimpl.java:39) at Sun.reflect.DelegatingMethodAccessorImpl.invoke ( DELEGATINGMETHODACCESSORIMPL.JAVA:25) at Java.lang.reflect.Method.invoke (method.java:597) at Org.apache.tomcat.uti L.modeler.basemodelmbean.invoke (basemodelmbean.java:296) at Org.jboss.mx.server.RawDynamicInvoker.invoke ( rawdynamicinvoker.java:164) at Org.jboss.mx.server.MBeanServerImpl.invoke (mbeanserverimpl.java:659) at ORG.JBOSS.W Eb.tomcat.service.TomcatDeployer.performDeployInternal (tomcatdeployer.java:301) at org.jboss.web.toMcat.service.TomcatDeployer.performDeploy (tomcatdeployer.java:104) at Org.jboss.web.AbstractWebDeployer.start ( abstractwebdeployer.java:375) at Org.jboss.web.WebModule.startModule (webmodule.java:83) at Org.jboss.web.WebModule . StartService (webmodule.java:61) at Org.jboss.system.ServiceMBeanSupport.jbossInternalStart ( servicembeansupport.java:289) at Org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle ( servicembeansupport.java:245) at Sun.reflect.GeneratedMethodAccessor3.invoke (Unknown Source) at Sun.reflect.Delega Tingmethodaccessorimpl.invoke (delegatingmethodaccessorimpl.java:25) at Java.lang.reflect.Method.invoke ( method.java:597) at Org.jboss.mx.interceptor.ReflectedDispatcher.invoke (reflecteddispatcher.java:155) at Org.jboss . Mx.server.Invocation.dispatch (invocation.java:94) at Org.jboss.mx.server.Invocation.invoke (invocation.java:86) A T Org.jboss.mx.server.AbstractMBeanInvoker.invoke (abstractmbeaninvoker.java:264) at ORG.JBOSS.MX.server.mbeanserverimpl.invoke (mbeanserverimpl.java:659) at org.jboss.system.servicecontroller$ Serviceproxy.invoke (servicecontroller.java:978) at the $Proxy 0.start (Unknown Source) at Org.jboss.system.ServiceContro Ller.start (servicecontroller.java:417) at Sun.reflect.GeneratedMethodAccessor9.invoke (Unknown Source) at Sun.refle Ct. Delegatingmethodaccessorimpl.invoke (delegatingmethodaccessorimpl.java:25) at Java.lang.reflect.Method.invoke ( method.java:597) at Org.jboss.mx.interceptor.ReflectedDispatcher.invoke (reflecteddispatcher.java:155) at Org.jboss . Mx.server.Invocation.dispatch (invocation.java:94) at Org.jboss.mx.server.Invocation.invoke (invocation.java:86) A T Org.jboss.mx.server.AbstractMBeanInvoker.invoke (abstractmbeaninvoker.java:264) at Org.jboss.mx.server.MBeanServerImpl.invoke (mbeanserverimpl.java:659) at Org.jboss.mx.util.MBeanProxyExt.invoke ( mbeanproxyext.java:210) at the $Proxy 44.start (Unknown Source) at Org.jboss.web.AbstractWebContainer.start (abstractwebcontainer.java:466) at Sun.reflect.NativeMethodAccessorImpl.invoke0 [Native Method] at s Un.reflect.NativeMethodAccessorImpl.invoke (nativemethodaccessorimpl.java:39) at Sun.reflect.DelegatingMethodAccessorImpl.invoke (DELEGATINGMETHODACCESSORIMPL.JAVA:25) at Java.lang.reflect.Method.invoke (method.java:597) at Org.jboss.mx.interceptor.ReflectedDispatcher.invoke ( reflecteddispatcher.java:155) at Org.jboss.mx.server.Invocation.dispatch (invocation.java:94) at Org.jboss.mx.inter Ceptor. Abstractinterceptor.invoke (abstractinterceptor.java:133) at Org.jboss.mx.server.Invocation.invoke ( invocation.java:88) at Org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke ( modelmbeanoperationinterceptor.java:142) at Org.jboss.mx.interceptor.DynamicInterceptor.invoke ( dynamicinterceptor.java:97) at Org.jboss.system.InterceptorServiceMBeanSupport.invokeNext ( interceptorservicembeansupport.java:238) at Org.jboss.wsf.container.jboss42. Deployerinterceptor.start (deployerinterceptor.java:87) at org.jboss.deployment.subdeployerinterceptorsupport$ Xmbeaninterceptor.start (subdeployerinterceptorsupport.java:188) at Org.jboss.deployment.SubDeployerInterceptor.invoke (subdeployerinterceptor.java:95) at Org.jboss.mx.server.Invocation.invoke (invocation.java:88) at Org.jboss.mx.server.AbstractMBeanInvoker.invoke ( abstractmbeaninvoker.java:264) at Org.jboss.mx.server.MBeanServerImpl.invoke (mbeanserverimpl.java:659) at Org.jbos S.mx.util.mbeanproxyext.invoke (mbeanproxyext.java:210) at the $Proxy 45.start (Unknown Source) at ORG.JBOSS.DEPLOYMENT.M Aindeployer.start (maindeployer.java:1025) at Org.jboss.deployment.MainDeployer.deploy (maindeployer.java:819) at or G.jboss.deployment.maindeployer.deploy (maindeployer.java:782) at Sun.reflect.GeneratedMethodAccessor21.invoke ( Unknown Source) at Sun.reflect.DelegatingMethodAccessorImpl.invoke (delegatingmethodaccessorimpl.java:25) at JAVA.L Ang.reflecT.method.invoke (method.java:597) at Org.jboss.mx.interceptor.ReflectedDispatcher.invoke (Reflecteddispatcher.java : Org.jboss.mx.server.Invocation.dispatch at Org.jboss.mx.interceptor.AbstractIntercept (invocation.java:94) Or.invoke (abstractinterceptor.java:133) at the Org.jboss.mx.server.Invocation.invoke (invocation.java:88) at Org.jboss. Mx.interceptor.ModelMBeanOperationInterceptor.invoke (modelmbeanoperationinterceptor.java:142) at Org.jboss.mx.server.Invocation.invoke (invocation.java:88) at Org.jboss.mx.server.AbstractMBeanInvoker.invoke ( abstractmbeaninvoker.java:264) at Org.jboss.mx.server.MBeanServerImpl.invoke (mbeanserverimpl.java:659) at Org.jbos S.mx.util.mbeanproxyext.invoke (mbeanproxyext.java:210) at the $Proxy 9.deploy (Unknown Source) at Org.jboss.deployment.s Canner. Urldeploymentscanner.deploy (urldeploymentscanner.java:421) at Org.jboss.deployment.scanner.URLDeploymentScanner.scan (urldeploymentscanner.java:634) at Org.jboss.deployMent.scanner.abstractdeploymentscanner$scannerthread.doscan (abstractdeploymentscanner.java:263) at Org.jboss.deployment.scanner.AbstractDeploymentScanner.startService (abstractdeploymentscanner.java:336) at Org.jboss.system.ServiceMBeanSupport.jbossInternalStart (servicembeansupport.java:289) at Org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle (servicembeansupport.java:245) at Sun.reflect.GeneratedMethodAccessor3.invoke (Unknown Source) at Sun.reflect.DelegatingMethodAccessorImpl.invoke ( DELEGATINGMETHODACCESSORIMPL.JAVA:25) at Java.lang.reflect.Method.invoke (method.java:597) at ORG.JBOSS.MX.INTERCEP Tor. Reflecteddispatcher.invoke (reflecteddispatcher.java:155) at Org.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.