<!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: MySQL database connection error
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="https://community.jboss.org/people/pzoli">Zoltan Papp</a> in <i>jBPM</i> - <a href="https://community.jboss.org/message/802725#802725">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><blockquote class="jive-quote"><p style="min- padding: 0px;"> <strong>And the second is a MySQL exception, there a lots of tables missings like:</strong></p><p>com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown table 'sequences' in information_schema</p><p>&#160;&#160;&#160; at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [rt.jar:1.6.0_24]</p><p>&#160;&#160;&#160; at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) [rt.jar:1.6.0_24]</p><p>&#160;&#160;&#160; at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [rt.jar:1.6.0_24]</p><p>&#160;&#160;&#160; at java.lang.reflect.Constructor.newInstance(Constructor.java:532) [rt.jar:1.6.0_24]</p><p>&#160;&#160;&#160; at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)</p><p>&#160;&#160;&#160; at com.mysql.jdbc.Util.getInstance(Util.java:386)</p><p>&#160;&#160;&#160; at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1052)</p><p>&#160;&#160;&#160; at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3609)</p><p>&#160;&#160;&#160; at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3541)</p><p>&#160;&#160;&#160; at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2002)</p><p>&#160;&#160;&#160; at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2163)</p><p>&#160;&#160;&#160; at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2618)</p><p>&#160;&#160;&#160; at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2568)</p><p>&#160;&#160;&#160; at com.mysql.jdbc.StatementImpl.executeQuery(StatementImpl.java:1557)</p><p>&#160;&#160;&#160; at org.jboss.jca.adapters.jdbc.WrappedStatement.executeQuery(WrappedStatement.java:340)</p><p>&#160;&#160;&#160; at org.hibernate.tool.hbm2ddl.DatabaseMetadata.initSequences(DatabaseMetadata.java:149) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]</p><p>&#160;&#160;&#160; at org.hibernate.tool.hbm2ddl.DatabaseMetadata.&lt;init&gt;(DatabaseMetadata.java:70) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]</p><p>&#160;&#160;&#160; at org.hibernate.tool.hbm2ddl.DatabaseMetadata.&lt;init&gt;(DatabaseMetadata.java:63) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]</p><p>&#160;&#160;&#160; at org.hibernate.tool.hbm2ddl.SchemaUpdate.execute(SchemaUpdate.java:196) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]</p><p>&#160;&#160;&#160; at org.hibernate.tool.hbm2ddl.SchemaUpdate.execute(SchemaUpdate.java:178) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]</p><p>&#160;&#160;&#160; at org.hibernate.internal.SessionFactoryImpl.&lt;init&gt;(SessionFactoryImpl.java:457) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]</p><p>&#160;&#160;&#160; at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1737) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]</p><p>&#160;&#160;&#160; at org.hibernate.ejb.EntityManagerFactoryImpl.&lt;init&gt;(EntityManagerFactoryImpl.java:84) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]</p><p>&#160;&#160;&#160; at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:904) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]</p><p>&#160;&#160;&#160; at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:889) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]</p><p>&#160;&#160;&#160; at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:73) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]</p><p>&#160;&#160;&#160; at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.createContainerEntityManagerFactory(PersistenceUnitServiceImpl.java:162) [jboss-as-jpa-7.1.1.Final.jar:7.1.1.Final]</p><p>&#160;&#160;&#160; at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.start(PersistenceUnitServiceImpl.java:85) [jboss-as-jpa-7.1.1.Final.jar:7.1.1.Final]</p><p>&#160;&#160;&#160; at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)</p><p>&#160;&#160;&#160; at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)</p><p>&#160;&#160;&#160; at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.6.0_24]</p><p>&#160;&#160;&#160; at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.6.0_24]</p><p>&#160;&#160;&#160; at java.lang.Thread.run(Thread.java:679) [rt.jar:1.6.0_24]</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><strong>My questions are: </strong></p><p><strong>Should I create the MySQL DB schema (I thin I should), and if I should where can I find an SQL script for this?</strong></p><p><strong>The first error&#160; also caused by the DB error?</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Thanks for your help!</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Best Regards,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Csaba</p></blockquote><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Kedves Csaba!</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>A sequences t&#225;bl&#225;t az&eacute;rt keresi, mert egyedi azonos&#237;t&#243;t adt&#225;l egy t&#225;bl&#225;nak, de nincs -vagy rossz- gener&#225;l&#225;si strat&eacute;gi&#225;t adt&#225;l hozz&#225;.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>@Entity -&gt; @Id -&gt; @GeneratedValue(strategy=GenerationType.IDENTITY)</p><p>Dobd el előtte a t&#225;bl&#225;kat, hogy &uacute;jra l&eacute;trehozza ezeket az entit&#225;s t&#225;rol&#243;kat, &eacute;s be&#225;ll&#237;tsa a kulcs mezőt a t&#225;bl&#225;ra.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#252;dv.,</p><p>Zolt&#225;n</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/802725#802725">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>