Hi Jaikiran,
I made sure that I have my datasource in the deployment directory. And I also checked that
the deployed jar includes the persistence.xml file which uses the datasource, but I still
have the same problem.
Here is my -ds.xml:
| <?xml version="1.0" encoding="UTF-8"?>
|
|
| <datasources>
| <local-tx-datasource>
| <jndi-name>studProjectDS</jndi-name>
|
<connection-url>jdbc:postgresql://localhost:5432/Studproject</connection-url>
| <driver-class>org.postgresql.Driver</driver-class>
| <user-name>postgres</user-name>
| <password>admin</password>
| <!-- the minimum size of the connection pool -->
| <min-pool-size>1</min-pool-size>
| <!-- The maximum connections in a pool/sub-pool -->
| <max-pool-size>100</max-pool-size>
| </local-tx-datasource>
| </datasources>
|
And here is the persistence.xml:
<persistence
|
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"
| version="1.0">
|
| <persistence-unit name="StudProject">
| <jta-data-source>java:studProjectDS
| </jta-data-source>
| <properties>
| <property name="hibernate.hbm2ddl.auto" value="update"
/>
|
| <property name="hibernate.show_sql"
value="true"/>
|
| </properties>
| </persistence-unit>
| </persistence>
|
Any suggestions are appreciated.
Hatem
PS: Sorry for the late reply I was on a vacation
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4199406#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...