Hi,
I'm trying to use smartClient, deployed on JBOSS 7.1.1 server.
I want to use JPA datasource using orcale DB.
here is my datasource file:
and the persistence.xml file:
when trying to access my page i'm getting the following errors:
1)
2)
I'm trying to use smartClient, deployed on JBOSS 7.1.1 server.
I want to use JPA datasource using orcale DB.
here is my datasource file:
Code:
<DataSource ID="salesOffice" serverType="jpa" schemaBean="com.eclipse.SalesOffice.model.SalesOffice" />
Code:
<?xml version="1.0" encoding="UTF-8"?> <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"> <persistence-unit name="ds" transaction-type="RESOURCE_LOCAL"> <class>com.eclipse.SalesOffice.model.SalesOffice</class> <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider> <properties> <property name="javax.persistence.jdbc.driver" value="oracle.jdbc.driver.OracleDriver"/> <property name="javax.persistence.jdbc.url" value="jdbc:oracle:thin://*******:1521:VECLQA01"/> <property name="javax.persistence.jdbc.user" value="eclipse"/> <property name="javax.persistence.jdbc.password" value="******"/> <property name="eclipselink.logging.level" value="FINEST"/> <property name="eclipselink.target-server" value="JBoss"/> </properties> </persistence-unit> </persistence>
1)
Code:
java.sql.SQLException: No suitable driver found for jdbc:oracle:thin://*******:1521:VECLQA01
Code:
java.lang.Exception: Unable to create autoDerive datasource for DataSource salesOffice. 'schemaBean' did not refer to a valid mapped JPA bean
Comment