<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="https://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    Not able to start JBPM5.3, ant start.demo.db
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="https://community.jboss.org/people/swastikpadhy84">swastik padhy</a> in <i>jBPM</i> - <a href="https://community.jboss.org/message/773369#773369">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Hi,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160; I am changing the database to MySQL. I have made the changes in db/persistence.xml,task-service/resources/META-INF/persistence.xml,db/jBPM-ds.xml,standalone.xml files,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I have created 2 users (jbpm5, task) and 2 schema(jbpm5,task) in mysql.</p><p>The istallion is successful. </p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><span><b>ant install.demo.db</b></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>but when I tried to run the &lt;b&gt; ant install.demo.db &lt;/b&gt;, it show Build Failed. giving the following error, Please help</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><pre class="jive-pre"><code class="jive-code">c:\jbpm\jbpm-installer&gt;ant start.demo.db
Buildfile: c:\jbpm\jbpm-installer\build.xml


check.jboss.version:


download.db.driver.check:
&#160;&#160;&#160;&#160; [echo] Checking if db driver jar has been downloaded ...


download.mysql.driver:
&#160;&#160;&#160;&#160; [echo] Getting mysql driver jar ...
&#160;&#160;&#160;&#160;&#160; [get] Getting: https://repository.jboss.org/nexus/service/local/repositori
es/central/content/mysql/mysql-connector-java/5.1.18/mysql-connector-java-5.1.18
.jar
&#160;&#160;&#160;&#160;&#160; [get] To: c:\jbpm\jbpm-installer\db\driver\mysql-connector-java.jar


install.db.files:
&#160;&#160;&#160; [mkdir] Created dir: c:\jbpm\jbpm-installer\jboss-as-7.0.2.Final\modules\com
\mysql\main
&#160;&#160;&#160;&#160; [copy] Copying 1 file to c:\jbpm\jbpm-installer\jboss-as-7.0.2.Final\module
s\com\mysql\main
&#160;&#160;&#160;&#160; [copy] Copying 1 file to c:\jbpm\jbpm-installer\jboss-as-7.0.2.Final\module
s\com\mysql\main


start.jboss:


check.jboss.version:


start.jboss5:


check.jboss.version:


start.jboss7:


BUILD FAILED
c:\jbpm\jbpm-installer\build.xml:725: The following error occurred while executi
ng this line:
c:\jbpm\jbpm-installer\build.xml:749: JBoss AS7 did not start within 5 minutes


Total time: 5 minutes 45 seconds


c:\jbpm\jbpm-installer&gt;




</code></pre><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><ul><li>db/persistence.xml</li></ul><pre class="jive-pre"><code class="jive-code jive-xml"><span class="jive-xml-tag">&lt;property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect"/&gt;</span>
</code></pre><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><ul><li>task-service/resources/META-INF/persistence.xml</li></ul><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><pre class="jive-pre"><code class="jive-code jive-xml"><span class="jive-xml-tag">&lt;property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect"/&gt;</span>
<span class="jive-xml-tag">&lt;property name="hibernate.connection.driver_class" value="com.mysql.jdbc.Driver"/&gt;</span>
<span class="jive-xml-tag">&lt;property name="hibernate.connection.url" value="jdbc:mysql://localhost:3306/task"/&gt;</span>
<span class="jive-xml-tag">&lt;property name="hibernate.connection.username" value="task"/&gt;</span>
<span class="jive-xml-tag">&lt;property name="hibernate.connection.password" value="task"/&gt;</span>

</code></pre><ul><li>db/jBPM-ds.xml</li></ul><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><pre class="jive-pre"><code class="jive-code jive-xml"><span class="jive-xml-tag">&lt;datasources&gt;</span>
<span class="jive-xml-tag">&lt;local-tx-datasource&gt;</span>
<span class="jive-xml-tag">&lt;jndi-name&gt;</span>jboss/datasources/jbpmDS<span class="jive-xml-tag">&lt;/jndi-name&gt;</span>
<span class="jive-xml-tag">&lt;connection-url&gt;</span>jdbc:mysql://localhost:3306/jbpm5<span class="jive-xml-tag">&lt;/connection-url&gt;</span>
<span class="jive-xml-tag">&lt;driver-class&gt;</span>com.mysql.jdbc.jdbc2.optional.MysqlXADataSource<span class="jive-xml-tag">&lt;/driver-class&gt;</span>
<span class="jive-xml-tag">&lt;user-name&gt;</span>jbpm5<span class="jive-xml-tag">&lt;/user-name&gt;</span>
<span class="jive-xml-tag">&lt;password&gt;</span>jbpm5<span class="jive-xml-tag">&lt;/password&gt;</span>
<span class="jive-xml-tag">&lt;/local-tx-datasource&gt;</span>
<span class="jive-xml-tag">&lt;/datasources&gt;</span>

</code></pre><ul><li>standalone.xml files</li></ul><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><pre class="jive-pre"><code class="jive-code jive-xml"><span class="jive-xml-tag">&lt;subsystem xmlns="urn:jboss:domain:datasources:1.0"&gt;</span>
<span class="jive-xml-tag">&lt;datasources&gt;</span>
<span class="jive-xml-tag">&lt;datasource jndi-name="java:jboss/datasources/jbpmDS" pool-name="H2DS"
enabled="true" use-java-context="true"&gt;</span>
<span class="jive-xml-tag">&lt;connection-url&gt;</span>jdbc:mysql://localhost:3306/jbpm5<span class="jive-xml-tag">&lt;/connection-url&gt;</span>
<span class="jive-xml-tag">&lt;driver&gt;</span>mysql<span class="jive-xml-tag">&lt;/driver&gt;</span>
<span class="jive-xml-tag">&lt;pool&gt;</span><span class="jive-xml-tag">&lt;/pool&gt;</span>
<span class="jive-xml-tag">&lt;security&gt;</span>
<span class="jive-xml-tag">&lt;user-name&gt;</span>jbpm5<span class="jive-xml-tag">&lt;/user-name&gt;</span>
<span class="jive-xml-tag">&lt;password&gt;</span>jbpm5<span class="jive-xml-tag">&lt;/password&gt;</span>
<span class="jive-xml-tag">&lt;/security&gt;</span>
<span class="jive-xml-tag">&lt;/datasource&gt;</span>
<span class="jive-xml-tag">&lt;drivers&gt;</span>
<span class="jive-xml-tag">&lt;driver name="mysql" module="com.mysql"&gt;</span>
<span class="jive-xml-tag">&lt;xa-datasourceclass&gt;</span>
com.mysql.jdbc.jdbc2.optional.MysqlXADataSource<span class="jive-xml-tag">&lt;/xa-datasource-class&gt;</span>
<span class="jive-xml-tag">&lt;/driver&gt;</span>
<span class="jive-xml-tag">&lt;/drivers&gt;</span>
<span class="jive-xml-tag">&lt;/datasources&gt;</span>
<span class="jive-xml-tag">&lt;/subsystem&gt;</span>

</code></pre><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Thanks,</p><p>Swastik</p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/773369#773369">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in jBPM at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>