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:
- Java. Lang. exceptionininitializererror
- 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
- At com. ibatis. sqlmap. Engine. Builder. xml. sqlmapconfigparser. parse (sqlmapconfigparser. Java: 49)
- At com. ibatis. sqlmap. Client. sqlmapclientbuilder. buildsqlmapclient (sqlmapclientbuilder. Java: 63)
- At com. elifefly. iuserdaoimpl. <clinit> (iuserdaoimpl. Java: 19)
- 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
- At com. ibatis. Common. xml. nodeletparser. parse (nodeletparser. Java: 53)
- At com. ibatis. sqlmap. Engine. Builder. xml. sqlmapconfigparser. parse (sqlmapconfigparser. Java: 46)
- ... 2 more
- 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
- At com. ibatis. Common. xml. nodeletparser. processnodelet (nodeletparser. Java: 123)
- At com. ibatis. Common. xml. nodeletparser. Process (nodeletparser. Java: 84)
- At com. ibatis. Common. xml. nodeletparser. Process (nodeletparser. Java: 102)
- At com. ibatis. Common. xml. nodeletparser. parse (nodeletparser. Java: 72)
- At com. ibatis. Common. xml. nodeletparser. parse (nodeletparser. Java: 51)
- ... 3 more
- 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
- At com. ibatis. Common. xml. nodeletparser. parse (nodeletparser. Java: 53)
- At com. ibatis. sqlmap. Engine. Builder. xml. sqlmapparser. parse (sqlmapparser. Java: 40)
- At com. ibatis. sqlmap. Engine. Builder. xml. sqlmapconfigparser $10. Process (sqlmapconfigparser. Java: 270)
- At com. ibatis. Common. xml. nodeletparser. processnodelet (nodeletparser. Java: 121)
- ... 7 more
- 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
- At com. ibatis. Common. xml. nodeletparser. processnodelet (nodeletparser. Java: 123)
- At com. ibatis. Common. xml. nodeletparser. Process (nodeletparser. Java: 84)
- At com. ibatis. Common. xml. nodeletparser. Process (nodeletparser. Java: 102)
- At com. ibatis. Common. xml. nodeletparser. parse (nodeletparser. Java: 72)
- At com. ibatis. Common. xml. nodeletparser. parse (nodeletparser. Java: 51)
- ... 10 more
- Caused by: COM. ibatis. sqlmap. Client. sqlmapexception: Error. cocould not initialize class. Cause: Java. Lang. classnotfoundexception: COM. ibatis. User
- At com. ibatis. sqlmap. Engine. Builder. xml. sqlstatementparser. resolveclass (sqlstatementparser. Java: 89)
- At com. ibatis. sqlmap. Engine. Builder. xml. sqlstatementparser. parsegeneralstatement (sqlstatementparser. Java: 67)
- At com. ibatis. sqlmap. Engine. Builder. xml. sqlmapparser $21. Process (sqlmapparser. Java: 361)
- At com. ibatis. Common. xml. nodeletparser. processnodelet (nodeletparser. Java: 121)
- ... 14 more
- Caused by: Java. Lang. classnotfoundexception: COM. ibatis. User
- At java.net. urlclassloader $ 1.run( urlclassloader. Java: 200)
- At java. Security. accesscontroller. doprivileged (native method)
- At java.net. urlclassloader. findclass (urlclassloader. Java: 188)
- At java. Lang. classloader. loadclass (classloader. Java: 306)
- At sun. Misc. launcher $ appclassloader. loadclass (launcher. Java: 276)
- At java. Lang. classloader. loadclass (classloader. Java: 251)
- At java. Lang. classloader. loadclassinternal (classloader. Java: 319)
- At java. Lang. Class. forname0 (native method)
- At java. Lang. Class. forname (class. Java: 169)
- At com. ibatis. Common. Resources. Resources. classforname (resources. Java: 267)
- At com. ibatis. sqlmap. Engine. Builder. xml. sqlstatementparser. resolveclass (sqlstatementparser. Java: 84)
- ... 17 more
- Exception in thread "Main"