Note that there are some explanatory texts on larger screens.

plurals
  1. POJBoss AS 7.1.1 database erasing after restart
    primarykey
    data
    text
    <p>I'm using JBoss AS 7.1.1, and I have a problem with my database - it's being erased everytime I restart the server. Below you can see the content of my persistence file:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;persistence version="1.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_1_0.xsd"&gt; &lt;persistence-unit name="wyklad2"&gt; &lt;provider&gt;org.hibernate.ejb.HibernatePersistence&lt;/provider&gt; &lt;jta-data-source&gt;java:jboss/datasources/ExampleDS&lt;/jta-data-source&gt; &lt;properties&gt; &lt;property name="hibernate.hbm2ddl.auto" value="update" /&gt; &lt;property name="hibernate.show_sql" value="false" /&gt; &lt;/properties&gt; &lt;/persistence-unit&gt; &lt;/persistence&gt; </code></pre> <p>DataSource configuration:</p> <pre><code> &lt;subsystem xmlns="urn:jboss:domain:datasources:1.0"&gt; &lt;datasources&gt; &lt;datasource jndi-name="java:jboss/datasources/ExampleDS" pool-name="ExampleDS" enabled="true" use-java-context="true"&gt; &lt;connection-url&gt;jdbc:h2:mem:test;DB_CLOSE_DELAY=-1&lt;/connection-url&gt; &lt;driver&gt;h2&lt;/driver&gt; &lt;security&gt; &lt;user-name&gt;sa&lt;/user-name&gt; &lt;password&gt;sa&lt;/password&gt; &lt;/security&gt; &lt;/datasource&gt; &lt;drivers&gt; &lt;driver name="h2" module="com.h2database.h2"&gt; &lt;xa-datasource-class&gt;org.h2.jdbcx.JdbcDataSource&lt;/xa-datasource-class&gt; &lt;/driver&gt; &lt;/drivers&gt; &lt;/datasources&gt; &lt;/subsystem&gt; </code></pre> <p>I will be very grateful for any clue that would help me fix this problem.</p>
    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.
 

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