The reference to entity "characterEncoding" must end with the ';' delimiter. Nested exception: The r
2013-06-05 11:05
537 查看
org.hibernate.HibernateException:Couldnotparseconfiguration:hibernate.cfg.xml org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1494) org.hibernate.cfg.Configuration.configure(Configuration.java:1428) org.jbpm.db.hibernate.HibernateHelper.createConfiguration(HibernateHelper.java:80) org.jbpm.persistence.db.DbPersistenceServiceFactory.getConfiguration(DbPersistenceServiceFactory.java:69) org.jbpm.persistence.db.DbPersistenceServiceFactory.getSessionFactory(DbPersistenceServiceFactory.java:91) org.jbpm.persistence.db.DbPersistenceService.getSessionFactory(DbPersistenceService.java:95) org.jbpm.persistence.db.DbPersistenceService.getSession(DbPersistenceService.java:99) org.jbpm.persistence.db.DbPersistenceService.getGraphSession(DbPersistenceService.java:345) org.jbpm.JbpmContext.getGraphSession(JbpmContext.java:571) com.jcoder.action.ShowAllWorkFlowAction.service(ShowAllWorkFlowAction.java:37) javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.dom4j.DocumentException:Erroronline10ofdocument:Thereferencetoentity"characterEncoding"mustendwiththe';'delimiter.Nestedexception:Thereferencetoentity"characterEncoding"mustendwiththe';'delimiter.
org.dom4j.io.SAXReader.read(SAXReader.java:482)
org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1484)
org.hibernate.cfg.Configuration.configure(Configuration.java:1428)
org.jbpm.db.hibernate.HibernateHelper.createConfiguration(HibernateHelper.java:80)
org.jbpm.persistence.db.DbPersistenceServiceFactory.getConfiguration(DbPersistenceServiceFactory.java:69)
org.jbpm.persistence.db.DbPersistenceServiceFactory.getSessionFactory(DbPersistenceServiceFactory.java:91)
org.jbpm.persistence.db.DbPersistenceService.getSessionFactory(DbPersistenceService.java:95)
org.jbpm.persistence.db.DbPersistenceService.getSession(DbPersistenceService.java:99)
org.jbpm.persistence.db.DbPersistenceService.getGraphSession(DbPersistenceService.java:345)
org.jbpm.JbpmContext.getGraphSession(JbpmContext.java:571)
com.jcoder.action.ShowAllWorkFlowAction.service(ShowAllWorkFlowAction.java:37)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
在用JBPM时候遇到的问题。显然是hibernate的问题。
是hibernate配置文件链接mysql数据库时候的链接:jdbc:mysql://localhost:3306/jcoder?useUnicode=true&characterEncoding=utf8
这里不能直接:&,需要写成&
相关文章推荐
- The reference to entity "characterEncoding" must end with the ';' delimiter
- The reference to entity "characterEncoding" must end with the ';' delimiter
- The reference to entity "characterEncoding" must end with the ';' delimiter
- .The reference to entity "characterEncoding" must end with the ';' delimiter.
- 【url】The reference to entity "characterEncoding" must end with the ';' delimiter
- The reference to entity "characterEncoding" must end with the ';' delimiter
- 配置JNDI 报错 The reference to entity "characterEncoding" must end with the ';' delimiter
- The reference to entity "characterEncoding" must end with the ';' delimiter
- The reference to entity "characterEncoding" must end with the ';' delimiter
- dom4j:The reference to entity "characterEncoding" must end with the ';' delimiter
- The reference to entity "characterEncoding" must end with the ';' delimiter
- The reference to entity "characterEncoding" must end with the ';' delimiter
- The reference to entity "characterEncoding" must end with the ';' delimiter
- The reference to entity "characterEncoding" must end with the ';' delimiter
- The reference to entity "characterEncoding" must end with the ';' delimiter
- The reference to entity "" must end with the ';' delimiter
- The reference to entity "characterEncoding" must end with the ';' delimiter.
- The reference to entity "password" must end with the ';' delimiter.的原因跟解决方法
- 配置文件中出现 The reference to entity "XX" must end with the ';' delimiter. 错误提示
- The reference to entity "characterEncoding" must end with the ';' delimiter.