have encountered great God to guide us , what is the problem .
10:56:52,889 INFO [STDOUT] 10:56:52,888 ERROR ContextLoader:307 - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext-common.xml]: Invocation of 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)
Caused by: 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.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:188)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invoke
10:56:52,889 INFO [STDOUT] InitMethods(AbstractAutowireCapableBeanFactory.java:1545)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1483)
... 70 more
Caused by: 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 java.lang.Class.getConstructor0(Unknown Source)
at java.lang.Class.getDeclaredConstructor(Unknown Source)
at org.hibernate.cfg.Configuration.applyHibernateValidatorLegacyConstraintsOnDDL(Configuration.java:1669)
... 77 more
10:56:52,890 ERROR [[/hbx]] Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext-common.xml]: Invocation of 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)
Caused by: 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)
... 70 more
Caused by: 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 java.lang.Class.getConstructor0(Unknown Source)
at java.lang.Class.getDeclaredConstructor(Unknown Source)
at org.hibernate.cfg.Configuration.applyHibernateValidatorLegacyConstraintsOnDDL(Configuration.java:1669)
... 77 more
10:56:52,890 ERROR [StandardContext] Error listenerStart
10:56:52,890 ERROR [StandardContext] Context [/hbx] startup failed due to previous errors
10:56:52,890 INFO [[/hbx]] Closing Spring root WebApplicationContext
10:56:53,332 ERROR [AbstractKernelController] Error installing to Start: name=jboss.web.deployment:war=/hbx state=Create mode=Manual requiredState=Installed
org.jboss.deployers.spi.DeploymentException: URL file:/D:/jboss-5.0.1.GA/server/default/tmp/5c4o12x-q5f4ah-hnzep77o-1-hnzepnq6-9m/hbx.war/ deployment failed
at java.lang.Thread.run(Unknown Source)
10:56:53,336 ERROR [AbstractKernelController] Error installing to Real: name=vfszip:/D:/jboss-5.0.1.GA/server/default/deploy/hbx.war/ state=PreReal mode=Manual requiredState=Real
org.jboss.deployers.spi.DeploymentException: URL file:/D:/jboss-5.0.1.GA/server/default/tmp/5c4o12x-q5f4ah-hnzep77o-1-hnzepnq6-9m/hbx.war/ deployment failed
10:56:53,360 INFO [TomcatDeployment] deploy, ctxPath=/jmx-console
10:56:53,404 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
DEPLOYMENTS IN ERROR:
Deployment "vfszip:/D:/jboss-5.0.1.GA/server/default/deploy/hbx.war/" is in error due to the following reason(s): org.jboss.deployers.spi.DeploymentException: URL file:/D:/jboss-5.0.1.GA/server/default/tmp/5c4o12x-q5f4ah-hnzep77o-1-hnzepnq6-9m/hbx.war/ deployment failed
------ Solution ------------------------------------- -------
identify with a project package, unzip no problem running tomcat , jboss run under decompression mistakes it ?
------ Solution ------------------------------------ --------
like java.lang.NoSuchMethodException This method can not find the jar package version exceptions are too old or too new , does not match the result .
another version of the jar package it
------ Solution ------------------------------ --------------
possible, the project moved to maven on it.
dependence can be managed , it will not happen jar package version mismatch problem.
------ For reference only -------------------------------------- -
then check whether the same under JDK configuration
------ For reference only --------------------------- ------------
you get to try decompression under tomcat . This should be less than your hair under the jboss . Can not find the method. .
------ For reference only -------------------------------------- -
before I replaced with application.xml hibernate.cfg.xml configuration -related information , as the error I do not know why ? I created application.xml configuration again placed inside the hibernate.cfg.xml configuration file, run perfectly . Do not know why ? ? In this bar, knot posted, thank you .
------ For reference only -------------------------------------- -
you say has some truth . Thank you.
没有评论:
发表评论