<!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;">
    Re: PostgreSQL - empty database - install.demo.db does not exist
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="https://community.jboss.org/people/roxy1987">roxy1987</a> in <i>jBPM</i> - <a href="https://community.jboss.org/message/789315#789315">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p><span lang="EN"><p><span lang="EN">Your configuration looks goood. I hope the name iof the driver jar file you use is postgresql-jdbc.jar</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"><span lang="EN"></span>&#160;</p><p><span lang="EN"></span>This is what your subsystem tag looks like </p><p><span lang="EN"></span></p><p><span lang="EN"></span><span lang="EN"></span></p><p>&lt;subsystem xmlns="urn:jboss:domain:datasources:1.0"&gt;</p><p>&lt;datasources&gt;</p><p>&lt;datasource jndi-name="java:jboss/datasources/jbpmDS" pool-name="jbpmDS" enabled="true" use-java-context="true"&gt;</p><p>&lt;connection-url&gt;jdbc:postgresql://localhost:5432/jbpm5&lt;/connection-url&gt;</p><p>&lt;driver&gt;postgresql&lt;/driver&gt;</p><p>&lt;pool&gt;&lt;/pool&gt;</p><p>&lt;security&gt;</p><p>&lt;user-name&gt;jbpm5&lt;/user-name&gt;</p><p>&lt;password&gt;jbpm5&lt;/password&gt;</p><p>&lt;/security&gt;</p><p>&lt;/datasource&gt;</p><p>&lt;drivers&gt;</p><p>&lt;driver name="postgresql" module="org.postgresql"&gt;</p><p>&lt;xa-datasource-class&gt;org.postgresql.xa.PGXADataSource&lt;/xa-datasource-class&gt;</p><p>&lt;/driver&gt;</p><p>&lt;/drivers&gt;</p><p>&lt;/datasources&gt;</p><p>&lt;/subsystem&gt;</p><p><span lang="EN"><span lang="EN"></span></span></p><p><span lang="EN"><span lang="EN"></span></span>And this is what the original one is :</p><p><span lang="EN"><span lang="EN"></span></span></p><p><span lang="EN"><span lang="EN"><span lang="EN"><span lang="EN"></span></span></span></span><span lang="EN"></span><p style="min-height: 8pt; height: 8pt; padding: 0px;"><span lang="EN"><span lang="EN"></span></span>&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"><span lang="EN"><span lang="EN"></span></span>&#160;</p><p><span lang="EN"><span style="font-family: mceinline;">I<a class="jive-link-anchor-small">#</a>nstead of just replacing the entire thing, you should only modify the values in the original. Because the fragment in the user guide is from previous versions. This may not be the cause of the problem but just modify and check.</span></span></p><p><span lang="EN"><span lang="EN">Everything else looks good. Lemme know..</span></span></p></p><p>&lt;subsystem xmlns="urn:jboss:domain:datasources:1.0"&gt;</p><p>&lt;datasources&gt;</p><p>&lt;datasource jndi-name="java:jboss/datasources/ExampleDS" pool-name="ExampleDS" enabled="true" use-java-context="true"&gt;</p><p>&lt;connection-url&gt;jdbc:h2:mem:test;DB_CLOSE_DELAY=-1&lt;/connection-url&gt;</p><p>&lt;driver&gt;h2&lt;/driver&gt;</p><p>&lt;security&gt;</p><p>&lt;user-name&gt;sa&lt;/user-name&gt;<a class="jive-link-anchor-small">#</a></p><p>&lt;password&gt;sa&lt;/password&gt;<a class="jive-link-anchor-small">#</a></p><p>&lt;/security&gt;</p><p>&lt;/datasource&gt;</p><p>&lt;datasource jta="true" jndi-name="java:jboss/datasources/jbpmDS" pool-name="H2DS" enabled="true" use-java-context="true" use-ccm="true"&gt;</p><p>&lt;connection-url&gt;jdbc:h2:~/jbpm&lt;/connection-url&gt; <a class="jive-link-anchor-small">#</a></p><p>&lt;driver&gt;h2&lt;/driver&gt;</p><p>&lt;pool&gt;</p><p>&lt;min-pool-size&gt;1&lt;/min-pool-size&gt;</p><p>&lt;max-pool-size&gt;4&lt;/max-pool-size&gt;</p><p>&lt;prefill&gt;false&lt;/prefill&gt;</p><p>&lt;use-strict-min&gt;false&lt;/use-strict-min&gt;</p><p>&lt;flush-strategy&gt;FailingConnectionOnly&lt;/flush-strategy&gt;</p><p>&lt;/pool&gt;</p><p>&lt;security&gt;</p><p>&lt;user-name&gt;sa&lt;/user-name&gt; </p><p>&lt;/security&gt;</p><p>&lt;validation&gt;</p><p>&lt;check-valid-connection-sql&gt;SELECT 1&lt;/check-valid-connection-sql&gt;</p><p>&lt;validate-on-match&gt;false&lt;/validate-on-match&gt;</p><p>&lt;background-validation&gt;false&lt;/background-validation&gt;</p><p>&lt;/validation&gt;</p><p>&lt;/datasource&gt;</p><p>&lt;drivers&gt;</p><p>&lt;driver name="h2" module="com.h2database.h2"&gt;</p><p>&lt;xa-datasource-class&gt;org.h2.jdbcx.JdbcDataSource&lt;/xa-datasource-class&gt;</p><p>&lt;/driver&gt;</p><p>&lt;/drivers&gt;</p><p>&lt;/datasources&gt;</p><p>&lt;/subsystem&gt;</p></span></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/789315#789315">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>