Mohammad Rezwan wrote:Did you use Hibernate or Toplink in your persistence.xml?
for JBOSS use Hibernate and for Glassfish use Toplink
reverse case you have to provide the respective jars.
e.g. for JBOSS Toplink jars and for glassfish Hibernate jars.
I suggest don't use reverse as its complected and not optimized.............
Mohammad Rezwan wrote:copy this one "C:\Program Files\Sun\JavaDB\lib\derbyclient.jar" to lib folder and
for deploy folder
derby-ds.xml
contains somthing like this
<?xml version="1.0" encoding="UTF-8"?>
<datasources>
<local-tx-datasource>
<jndi-name>The JNDI NAME</jndi-name>
<connection-url>jdbc:derby://localhost:1527/sample</connection-url>
<driver-class>org.apache.derby.jdbc.ClientDriver</driver-class>
<user-name>xxxxxxxxx</user-name>
<password>xxxxxxx</password>
<min-pool-size>5</min-pool-size>
<max-pool-size>10</max-pool-size>
<idle-timeout-minutes>0</idle-timeout-minutes>
<track-statements>true</track-statements>
</local-tx-datasource>
</datasources>