bonjour ,
je viens de créer une petite app j2ee sur netbeans qui permet d'afficher la table "facture" de la base de données dans une page JSF ,
l'application fonctionne correctement avec Postgresql , mais lorsque j'utilise oracle 11g XE il m'affiche l’erreur suivante :

Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.DatabaseException Internal Exception: java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist Error Code: 942 Call: SELECT CUSTOMER_TRX_ID, DATE_FACTURE, NOM_CLIENT, NOM_SOCIETE, NUMERO_CLIENT, NUMERO_FACTURE, OPERATING_UNIT, ORGANIZATION_ID, PRINTING_COUNT, PRINTING_PENDING, SITE_CLIENT, TYPE_FACTURE FROM facture Query: ReadAllQuery(name="Facture.findAll" referenceClass=Facture sql="SELECT CUSTOMER_TRX_ID, DATE_FACTURE, NOM_CLIENT, NOM_SOCIETE, NUMERO_CLIENT, NUMERO_FACTURE, OPERATING_UNIT, ORGANIZATION_ID, PRINTING_COUNT, PRINTING_PENDING, SITE_CLIENT, TYPE_FACTURE FROM facture")
voici le fichier persistence.xml

Code xml : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?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="facturePU" transaction-type="RESOURCE_LOCAL">
    <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
    <class>entity.Facture</class>
    <exclude-unlisted-classes>false</exclude-unlisted-classes>
    <properties>
      <property name="javax.persistence.jdbc.url" value="jdbc:oracle:thin:@localhost:1521:XE "/>
      <property name="javax.persistence.jdbc.password" value="1234"/>
      <property name="javax.persistence.jdbc.driver" value="oracle.jdbc.OracleDriver"/>
      <property name="javax.persistence.jdbc.user" value="system"/>
    </properties>
  </persistence-unit>
</persistence>

Merci d'avance pour votre aide.