Note that there are some explanatory texts on larger screens.

plurals
  1. PODEPLOYMENTS IN ERROR: ... ...no Connection Available error while setting up JPA with jboss
    primarykey
    data
    text
    <p>I'm porting a glassfish jpa app to jboss and am running into this error:</p> <p><strong>DEPLOYMENTS IN ERROR:</strong> Deployment "persistence.unit:unitName=Avengers.war#AvengersPU" is in error due to the following reason(s): org.hiberna te.HibernateException: 'hibernate.dialect' must be set when no Connection available</p> <p>The connection can be tested successfully using the jboss admin console and i can manually log into my db so i'm confused by this error message. Can someone advise as to what i have miss configured?</p> <p>Here is my <strong>mysql-ds.xml</strong> file:</p> <pre><code>&lt;datasources&gt; &lt;local-tx-datasource&gt; &lt;jndi-name&gt;jdbc/thor_ds&lt;/jndi-name&gt; &lt;connection-url&gt;jdbc:mysql://localhost:3306/thor&lt;/connection-url&gt; &lt;driver-class&gt;com.mysql.jdbc.Driver&lt;/driver-class&gt; &lt;user-name&gt;apple&lt;/user-name&gt; &lt;password&gt;apple&lt;/password&gt; &lt;exception-sorter-class-name&gt;org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter&lt;/exception-sorter-class-name&gt; &lt;metadata&gt; &lt;type-mapping&gt;mySQL&lt;/type-mapping&gt; &lt;/metadata&gt; &lt;/local-tx-datasource&gt; &lt;/datasources&gt; </code></pre> <p>and my <strong>persistance.xml</strong></p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;persistence version="2.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"&gt; &lt;persistence-unit name="AvengersPU" transaction-type="JTA"&gt; &lt;!--&lt;jta-data-source&gt;jdbc/thor_ds&lt;/jta-data-source&gt;--&gt; &lt;jta-data-source&gt;java:/jdbc/thor_ds&lt;/jta-data-source&gt; &lt;class&gt;avenger.Grouptable&lt;/class&gt; &lt;class&gt;avenger.MyUser&lt;/class&gt; &lt;exclude-unlisted-classes&gt;true&lt;/exclude-unlisted-classes&gt; &lt;properties&gt; &lt;/properties&gt; &lt;/persistence-unit&gt; &lt;/persistence&gt; </code></pre> <p><strong>EDIT:</strong> following JMelnik's instructions my config properties tags now has this:</p> <pre><code>&lt;properties&gt; &lt;property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect" /&gt; &lt;/properties&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload