JBoss Community

Help! The problem of replacing the h2 DB to mysql

created by Jimmy dong in jBPM - View the full discussion

I replace hibernate.cfg.xml in jbpm-gwt-console-server-war/WEB-INF/classes/META-INF  and   jbpm-gwt-console-server-war/WEB-INF/classes;

I replace persistence.xml in jbpm-gwt-console-server-war/WEB-INF/classes/META-INF.

I replace testDS1-ds.xml /usr/local/jbpm-installer/jboss-5.1.0.GA/server/default/deploy.

I replace hibernate.cfg.xml in jbpm-gwt-console-server.war/lib/jbpm-bam-5.1.0.Final.jar, and in runtime/lib/jbpm-bam-5.1.0.Final.jar

I replace persistance.xml in jbpm-gwt-console-server.war/lib/jbpm-human-task-5.1.0.Final.jar ,and in runtime/lib/jbpm-human-task-5.1.0.Final.jar

Finally,I put the driver jar of mysql(mysql-connector-java-5.1.18-bin.jar) to db/driver.

But,after jboss run, the human task service can't run:

 

[java] Exception in thread "main" javax.persistence.PersistenceException: Unable to configure EntityManagerFactory
     [java]  at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:265)
     [java]  at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:125)
     [java]  at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:52)
     [java]  at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:34)
     [java]  at org.jbpm.DemoTaskService.main(Unknown Source)
     [java] Caused by: org.xml.sax.SAXParseException: The reference to entity "characterEncoding" must end with the ';' delimiter.
     [java]  at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:249)
     [java]  at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:284)
     [java]  at org.hibernate.ejb.packaging.PersistenceXmlLoader.loadURL(PersistenceXmlLoader.java:70)
     [java]  at org.hibernate.ejb.packaging.PersistenceXmlLoader.deploy(PersistenceXmlLoader.java:89)
     [java]  at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:222)
     [java]  ... 4 more
     [java] Java Result: 1

BUILD SUCCESSFUL
Total time: 3 seconds

Reply to this message by going to Community

Start a new discussion in jBPM at Community