-
1. Re: jboss 6.1.1 eap and progresql driver (jar) ->JBAS010404
wdfink Nov 18, 2013 4:53 AM (in response to zatopek)Did you install the driver correct as a module?
-
2. Re: jboss 6.1.1 eap and progresql driver (jar) ->JBAS010404
zatopek Nov 18, 2013 5:02 AM (in response to wdfink)I think that is ok
into my jobss/modules i have org/postgresql/main
into this directory i have the jar and the module.xml file:
<?xml version="1.0" encoding="UTF-8"?>
<module xmlns="urn:jboss:module:1.0" name="org.postgresql">
<resources>
<resource-root path="postgresql-9.3-1100.jdbc4.jar"/>
</resources>
<dependencies>
<module name="javax.api"/>
<module name="javax.transaction.api"/>
</dependencies>
</module>
-
3. Re: jboss 6.1.1 eap and progresql driver (jar) ->JBAS010404
222222 Dec 1, 2013 9:20 AM (in response to zatopek)no,
postgresql-9.3-1100.jdbc4.jar
it not work, too
:-(
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="2.1" xmlns="http://xmlns.jcp.org/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd">
<persistence-unit name="jpa00" transaction-type="JTA">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<class>jpa00.BssArcAttr</class>
<class>jpa00.BssArcAttr0</class>
<properties>
<property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect"/>
<property name="hibernate.connection.driver_class" value="org.postgresql.Driver"/>
<property name="hibernate.connection.url" value="jdbc:postgresql://192.168.0.100/docflow"/>
<property name="hibernate.connection.username" value="jboss"/>
<property name="hibernate.connection.password" value="12345678"/>
<property name="hibernate.default_schema" value="system"/>
</properties>
</persistence-unit>
</persistence>
Caused by: org.hibernate.service.classloading.spi.ClassLoadingException: Specified JDBC Driver org.postgresql.Driver could not be loaded
Caused by: org.hibernate.service.classloading.spi.ClassLoadingException: Unable to load class [org.postgresql.Driver]
-
4. Re: jboss 6.1.1 eap and progresql driver (jar) ->JBAS010404
222222 Dec 1, 2013 10:15 AM (in response to 222222)I work it
E:\work\JAVA\jpa00\src\META-INF\persistence.xml :
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="2.1" xmlns="http://xmlns.jcp.org/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd">
<persistence-unit name="jpa00" transaction-type="JTA">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<jta-data-source>java:/docflow</jta-data-source>
<class>jpa_00.BssArcAttr</class>
<class>jpa_00.BssArcAttr0</class>
<!--
<properties>
<property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect"/>
<property name="hibernate.connection.driver_class" value="org.postgresql.Driver"/>
<property name="hibernate.connection.url" value="jdbc:postgresql://192.168.0.100/docflow"/>
<property name="hibernate.connection.username" value="jboss"/>
<property name="hibernate.connection.password" value="12345678"/>
<property name="hibernate.default_schema" value="system"/>
</properties>
-->
</persistence-unit>
</persistence>
In file E:\workSOFT\JBOSS\jboss-eap-6.1\standalone\configuration\standalone.xml i have :
<datasources>
<datasource jta="false" jndi-name="java:/docflow" pool-name="docflow" enabled="true" use-ccm="false">
<connection-url>jdbc:postgresql://localhost/docflow</connection-url>
<driver-class>org.postgresql.Driver</driver-class>
<driver>postgresql</driver>
<security>
<user-name>jboss</user-name>
<password>jboss</password>
</security>
<validation>
<validate-on-match>false</validate-on-match>
<background-validation>false</background-validation>
</validation>
<statement>
<share-prepared-statements>false</share-prepared-statements>
</statement>
</datasource>
<drivers>
<driver name="h2" module="com.h2database.h2">
<xa-datasource-class>org.h2.jdbcx.JdbcDataSource</xa-datasource-class>
</driver>
<driver name="postgresql" module="org.postgresql">
<xa-datasource-class>org.postgresql.Driver</xa-datasource-class>
</driver>
</drivers>
</datasources>E:\workSOFT\JBOSS\jboss-eap-6.1\modules\system\layers\base\org\postgresql\main\module.xml :
<module xmlns="urn:jboss:module:1.1" name="org.postgresql">
<resources>
<resource-root path="postgresql-9.3-1100.jdbc4.jar"/>
<!-- Insert resources here -->
</resources>
<dependencies>
<module name="javax.api"/>
<module name="javax.transaction.api"/>
</dependencies>
</module>