An error occurred while using ibatis: Error parsing XPath '/sqlmapconfig/sqlmap '.

Source: Internet
Author: User
Tags xpath

When using ibatis, a path error occurs due to incorrect hands. For reference only.

 

From the error cause: Java. lang. classnotfoundexception: COM. ibatis. the user prompt shows the user. <typealias alias = "user" type = "com. ibatis. user "/> attribute error. It should be <typealias alias =" user "type =" com. elifefly. user "/>.

 

 

 

The following error is reported:

  1. Java. Lang. exceptionininitializererror
  2. Caused by: Java. lang. runtimeexception: error occurred. cause: COM. ibatis. common. XML. nodeletexception: Error parsing XML. cause: Java. lang. runtimeexception: Error parsing XPath '/sqlmapconfig/sqlmap '. cause: COM. ibatis. common. XML. nodeletexception: Error parsing XML. cause: Java. lang. runtimeexception: Error parsing XPath '/sqlmap/select '. cause: COM. ibatis. sqlmap. client. sqlmapexception: error. cocould not initialize class. cause: Java. lang. classnotfoundexception: COM. ibatis. user
  3. At com. ibatis. sqlmap. Engine. Builder. xml. sqlmapconfigparser. parse (sqlmapconfigparser. Java: 49)
  4. At com. ibatis. sqlmap. Client. sqlmapclientbuilder. buildsqlmapclient (sqlmapclientbuilder. Java: 63)
  5. At com. elifefly. iuserdaoimpl. <clinit> (iuserdaoimpl. Java: 19)
  6. Caused by: COM. ibatis. common. XML. nodeletexception: Error parsing XML. cause: Java. lang. runtimeexception: Error parsing XPath '/sqlmapconfig/sqlmap '. cause: COM. ibatis. common. XML. nodeletexception: Error parsing XML. cause: Java. lang. runtimeexception: Error parsing XPath '/sqlmap/select '. cause: COM. ibatis. sqlmap. client. sqlmapexception: error. cocould not initialize class. cause: Java. lang. classnotfoundexception: COM. ibatis. user
  7. At com. ibatis. Common. xml. nodeletparser. parse (nodeletparser. Java: 53)
  8. At com. ibatis. sqlmap. Engine. Builder. xml. sqlmapconfigparser. parse (sqlmapconfigparser. Java: 46)
  9. ... 2 more
  10. Caused by: Java. lang. runtimeexception: Error parsing XPath '/sqlmapconfig/sqlmap '. cause: COM. ibatis. common. XML. nodeletexception: Error parsing XML. cause: Java. lang. runtimeexception: Error parsing XPath '/sqlmap/select '. cause: COM. ibatis. sqlmap. client. sqlmapexception: error. cocould not initialize class. cause: Java. lang. classnotfoundexception: COM. ibatis. user
  11. At com. ibatis. Common. xml. nodeletparser. processnodelet (nodeletparser. Java: 123)
  12. At com. ibatis. Common. xml. nodeletparser. Process (nodeletparser. Java: 84)
  13. At com. ibatis. Common. xml. nodeletparser. Process (nodeletparser. Java: 102)
  14. At com. ibatis. Common. xml. nodeletparser. parse (nodeletparser. Java: 72)
  15. At com. ibatis. Common. xml. nodeletparser. parse (nodeletparser. Java: 51)
  16. ... 3 more
  17. Caused by: COM. ibatis. common. XML. nodeletexception: Error parsing XML. cause: Java. lang. runtimeexception: Error parsing XPath '/sqlmap/select '. cause: COM. ibatis. sqlmap. client. sqlmapexception: error. cocould not initialize class. cause: Java. lang. classnotfoundexception: COM. ibatis. user
  18. At com. ibatis. Common. xml. nodeletparser. parse (nodeletparser. Java: 53)
  19. At com. ibatis. sqlmap. Engine. Builder. xml. sqlmapparser. parse (sqlmapparser. Java: 40)
  20. At com. ibatis. sqlmap. Engine. Builder. xml. sqlmapconfigparser $10. Process (sqlmapconfigparser. Java: 270)
  21. At com. ibatis. Common. xml. nodeletparser. processnodelet (nodeletparser. Java: 121)
  22. ... 7 more
  23. Caused by: Java. lang. runtimeexception: Error parsing XPath '/sqlmap/select '. cause: COM. ibatis. sqlmap. client. sqlmapexception: error. cocould not initialize class. cause: Java. lang. classnotfoundexception: COM. ibatis. user
  24. At com. ibatis. Common. xml. nodeletparser. processnodelet (nodeletparser. Java: 123)
  25. At com. ibatis. Common. xml. nodeletparser. Process (nodeletparser. Java: 84)
  26. At com. ibatis. Common. xml. nodeletparser. Process (nodeletparser. Java: 102)
  27. At com. ibatis. Common. xml. nodeletparser. parse (nodeletparser. Java: 72)
  28. At com. ibatis. Common. xml. nodeletparser. parse (nodeletparser. Java: 51)
  29. ... 10 more
  30. Caused by: COM. ibatis. sqlmap. Client. sqlmapexception: Error. cocould not initialize class. Cause: Java. Lang. classnotfoundexception: COM. ibatis. User
  31. At com. ibatis. sqlmap. Engine. Builder. xml. sqlstatementparser. resolveclass (sqlstatementparser. Java: 89)
  32. At com. ibatis. sqlmap. Engine. Builder. xml. sqlstatementparser. parsegeneralstatement (sqlstatementparser. Java: 67)
  33. At com. ibatis. sqlmap. Engine. Builder. xml. sqlmapparser $21. Process (sqlmapparser. Java: 361)
  34. At com. ibatis. Common. xml. nodeletparser. processnodelet (nodeletparser. Java: 121)
  35. ... 14 more
  36. Caused by: Java. Lang. classnotfoundexception: COM. ibatis. User
  37. At java.net. urlclassloader $ 1.run( urlclassloader. Java: 200)
  38. At java. Security. accesscontroller. doprivileged (native method)
  39. At java.net. urlclassloader. findclass (urlclassloader. Java: 188)
  40. At java. Lang. classloader. loadclass (classloader. Java: 306)
  41. At sun. Misc. launcher $ appclassloader. loadclass (launcher. Java: 276)
  42. At java. Lang. classloader. loadclass (classloader. Java: 251)
  43. At java. Lang. classloader. loadclassinternal (classloader. Java: 319)
  44. At java. Lang. Class. forname0 (native method)
  45. At java. Lang. Class. forname (class. Java: 169)
  46. At com. ibatis. Common. Resources. Resources. classforname (resources. Java: 267)
  47. At com. ibatis. sqlmap. Engine. Builder. xml. sqlstatementparser. resolveclass (sqlstatementparser. Java: 84)
  48. ... 17 more
  49. Exception in thread "Main"

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.