`

springmvc 链接数据库错误

    博客分类:
  • SSH
 
阅读更多
  1. Caused by: org.xml.sax.SAXParseException: cos-all-limited.1.2: An ''all'' model group must appear in a particle with '{'min occurs'}'='{'max occurs'}'=1, and that particle must be part of a pair which constitutes the '{'content type'}' of a complex type definition.  

 

是因为包不匹配

 

应该是

 xerces:xercesImpl:jar:2.6.2:test 

commons-dbcp:commons-dbcp:jar:1.2.2:test 

 

2.

 

只需把这三个commons-pool.jar、commons-dbcp-1.2.2.jar和commons-collections-3.2.jar包加入到lib里即可解决。

 

 

 

 

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics