Java. Lang. nosuchmethoderror: org. hibernate. cfg. annotationconfiguration. setproperty Solution

Source: Internet
Author: User

Warn [ejb3configuration] persistence provider caller does not implement the ejb3 spec correctly. persistenceunitinfo. getnewtempclassloader () is null.
09:09:13, 891 error [abstractkernelcontroller] Error installing to start: Name = persistence. Unit: unitname = # ejbdb state = create
Java. Lang. nosuchmethoderror: org. hibernate. cfg. annotationconfiguration. setproperty (ljava/lang/string;) lorg/hibernate/CFG/annotationconfiguration;
At org. hibernate. EJB. ejb3configuration. setproperty (ejb3configuration. Java: 535)
At org. hibernate. EJB. ejb3configuration. setdatasource (ejb3configuration. Java: 149)
At org. hibernate. EJB. ejb3configuration. Configure (ejb3configuration. Java: 399)
At org. hibernate. EJB. hibernatepersistence. createcontainerentitymanagerfactory (hibernatepersistence. Java: 131)
At org. JBoss. JPA. Deployment. persistenceunitdeployment. Start (persistenceunitdeployment. Java: 301)
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: 585)
At org. JBoss. Reflect. plugins. introspection. reflectionutils. Invoke (reflectionutils. Java: 59)
At org. JBoss. Reflect. plugins. introspection. reflectmethodinfoimpl. Invoke (reflectmethodinfoimpl. Java: 150)
At org. JBoss. joinpoint. plugins. basicmethodjoinpoint. Dispatch (basicmethodjoinpoint. Java: 66)
At org.jboss.kernel.plugins.dependency.kernelcontrollercontextaction=joinpointdispatchwrapper.exe cute (kernelcontrollercontextaction. Java: 241)
At org.jboss.kernel.plugins.dependency.executionwrapper.exe cute (executionwrapper. Java: 47)
At org. JBoss. kernel. plugins. Dependency. kernelcontrollercontextaction. dispatchexecutionwrapper (kernelcontrollercontextaction. Java: 109)
At org. JBoss. kernel. plugins. Dependency. kernelcontrollercontextaction. dispatchjoinpoint (kernelcontrollercontextaction. Java: 70)
At org. JBoss. kernel. plugins. Dependency. lifecycleaction. installactioninternal (lifecycleaction. Java: 221)
At org. JBoss. kernel. plugins. Dependency. installsawareaction. installaction (installsawareaction. Java: 54)
At org. JBoss. kernel. plugins. Dependency. installsawareaction. installaction (installsawareaction. Java: 42)
At org. JBoss. Dependency. plugins. Action. simplecontrollercontextaction. simpleinstallaction (simplecontrollercontextaction. Java: 62)
At org. JBoss. Dependency. plugins. Action. accesscontrollercontextaction. Install (accesscontrollercontextaction. Java: 71)
At org. JBoss. Dependency. plugins. abstractcontrollercontextactions. Install (abstractcontrollercontextactions. Java: 51)
At org. JBoss. Dependency. plugins. abstractcontrollercontext. Install (abstractcontrollercontext. Java: 348)
At org. JBoss. Dependency. plugins. abstractcontroller. Install (abstractcontroller. Java: 1598)
At org. JBoss. Dependency. plugins. abstractcontroller. incrementstate (abstractcontroller. Java: 934)
At org. JBoss. Dependency. plugins. abstractcontroller. resolvecontexts (abstractcontroller. Java: 1062)
At org. JBoss. Dependency. plugins. abstractcontroller. resolvecontexts (abstractcontroller. Java: 984)
At org. JBoss. Dependency. plugins. abstractcontroller. Install (abstractcontroller. Java: 774)
At org. JBoss. Dependency. plugins. abstractcontroller. Install (abstractcontroller. Java: 540)
At org. JBoss. deployers. VFS. deployer. kernel. beanmetadatadeployer. Deploy (beanmetadatadeployer. Java: 121)
At org. JBoss. deployers. VFS. deployer. kernel. beanmetadatadeployer. Deploy (beanmetadatadeployer. Java: 51)
At org. JBoss. deployers. SPI. deployer. helpers. abstractsimplerealdeployer. internaldeploy (abstractsimplerealdeployer. Java: 62)
At org. JBoss. deployers. SPI. deployer. helpers. abstractrealdeployer. Deploy (abstractrealdeployer. Java: 50)
At org. JBoss. deployers. plugins. deployers. deployerwrapper. Deploy (deployerwrapper. Java: 171)
At org. JBoss. deployers. plugins. deployers. deployersimpl. dodeploy (deployersimpl. Java: 1439)
At org. JBoss. deployers. plugins. deployers. deployersimpl. doinstallparentfirst (deployersimpl. Java: 1157)
At org. JBoss. deployers. plugins. deployers. deployersimpl. doinstallparentfirst (deployersimpl. Java: 1178)
At org. JBoss. deployers. plugins. deployers. deployersimpl. Install (deployersimpl. Java: 1098)
At org. JBoss. Dependency. plugins. abstractcontrollercontext. Install (abstractcontrollercontext. Java: 348)
At org. JBoss. Dependency. plugins. abstractcontroller. Install (abstractcontroller. Java: 1598)
At org. JBoss. Dependency. plugins. abstractcontroller. incrementstate (abstractcontroller. Java: 934)
At org. JBoss. Dependency. plugins. abstractcontroller. resolvecontexts (abstractcontroller. Java: 1062)
At org. JBoss. Dependency. plugins. abstractcontroller. resolvecontexts (abstractcontroller. Java: 984)
At org. JBoss. Dependency. plugins. abstractcontroller. Change (abstractcontroller. Java: 822)
At org. JBoss. Dependency. plugins. abstractcontroller. Change (abstractcontroller. Java: 553)
At org. JBoss. deployers. plugins. deployers. deployersimpl. Process (deployersimpl. Java: 781)
At org. JBoss. deployers. plugins. Main. maindeployerimpl. Process (maindeployerimpl. Java: 698)
At org. JBoss. system. server. profileservice. hotdeploy. hdbench. Scan (hdbench. Java: 290)
At org. JBoss. system. server. profileservice. hotdeploy. hdbench. Run (hdbench. Java: 221)
At java. util. Concurrent. executors $ runnableadapter. Call (executors. Java: 417)
At java. util. Concurrent. futuretask $ sync. innerrunandreset (futuretask. Java: 280)
At java. util. Concurrent. futuretask. runandreset (futuretask. Java: 135)
At java. util. Concurrent. scheduledthreadpoolexecutor $ scheduledfuturetask. Access $101 (scheduledthreadpoolexecutor. Java: 65)
At java. util. Concurrent. scheduledthreadpoolexecutor $ scheduledfuturetask. runperiodic (scheduledthreadpoolexecutor. Java: 142)
At java. util. Concurrent. scheduledthreadpoolexecutor $ scheduledfuturetask. Run (scheduledthreadpoolexecutor. Java: 166)
At java. util. Concurrent. threadpoolexecutor $ worker. runtask (threadpoolexecutor. Java: 650)
At java. util. Concurrent. threadpoolexecutor $ worker. Run (threadpoolexecutor. Java: 675)

At java. Lang. thread. Run (thread. Java: 595)

Cause of error: jar package conflict.

hibernate annoation
According to the error message: Java. Lang. nosuchmethoderror: org. hibernate. cfg. annotationconfiguration. setproperty
Annotationconfiguration. setproperty does not exist, so find the corresponding jar package and find this
The annotationconfiguration class is opened with the decompilation software. The setproperty method does not exist, but there are many versions of hibernate annotation. If you have tried several of them, an error is returned, there is a hibernate-annotations.jar in the % jboss_home % \ Client Directory, decompilation view, there is the setproperty method. Replaced. Successful!
Reference URL:
https://forum.hibernate.org/viewtopic.php?f=1&t=994802http://zhidao.baidu.com/question/169093789.html

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.