bonsoir, j ai un projet à réaliser en ejb3 , je travail sur netbeans et j utilise comme server GlassFish v3 . bon ce que j ai fait c est simple j ai créer une base de donnée sous MySQL et j ai créer un entity beans produit et j ai bien configuré mon fichier persistance. à ma connaissance tous tes bien configurés mais juste j a un problème de déploiement qui va m afficher l erreur suivante je ne sais même c est a cause de quoi voici :

In-place deployment at C:\Users\dieng kalidou\Documents\NetBeansProjects\EnterpriseApplication1\EnterpriseApplication1-ejb\build\classes
deploy?path=C:\Users\dieng kalidou\Documents\NetBeansProjects\EnterpriseApplication1\EnterpriseApplication1-ejb\build\classes&name=EnterpriseApplication1-ejb&force=true a échoué sur GlassFish Server 3
C:\Users\dieng kalidou\Documents\NetBeansProjects\EnterpriseApplication1\EnterpriseApplication1-ejb\nbproject\build-impl.xml:565: The module has not been deployed.
ÉCHEC DE LA GÉNÉRATION (durée totale* 0 secondes)
et pour fichier persistence :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
 
<?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="EnterpriseApplication1-ejbPU" transaction-type="JTA">
    <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
    <jta-data-source>produitDatasource</jta-data-source>
    <exclude-unlisted-classes>false</exclude-unlisted-classes>
    <properties>
      <property name="eclipselink.ddl-generation" value="create-tables"/>
    </properties>
  </persistence-unit>
</persistence>
mon entity bean
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
 
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
 
package com.produit;
 
import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
 
/**
 *
 * @author dieng kalidou
 */
@Entity
public class Produit implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long id;
    private String  nom;
 
    public String getNom() {
        return nom;
    }
 
    public void setNom(String nom) {
        this.nom = nom;
    }
 
 
    public Long getId() {
        return id;
    }
 
    public void setId(Long id) {
        this.id = id;
    }
 
    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }
 
    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Produit)) {
            return false;
        }
        Produit other = (Produit) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }
 
    @Override
    public String toString() {
        return "com.produit.Produit[id=" + id + "]";
    }
 
}
je cherche quelqu'un un qui viens m aider a retrouver erreur sa me fatigue trop je ne sais même d ou vient l'erreur merci .