IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Wildfly/JBoss Java Discussion :

Jboss5,eclipse,ejb3 comment commencer?


Sujet :

Wildfly/JBoss Java

  1. #1
    Candidat au Club
    Profil pro
    Inscrit en
    Mars 2009
    Messages
    11
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2009
    Messages : 11
    Points : 3
    Points
    3
    Par défaut Jboss5,eclipse,ejb3 comment commencer?
    Salut,
    SVP je dois faire un site de location d'objets en utilisant Jboss5,eclipse,ejb3.c'est une matière que je dois absolument valider et j'ai peu de temps pour faire ce projet.Je n'ai aucune notion,meme pas en j2ee. J'ai dejà installé eclipse.j'ai téléchargé jboss-5.0.1.GA-jdk6 et je l'ai dézippé. Jusqu'ici,je ne sais comment continuer. Je ne sais pas si j'aurai besoin de mysql ou je peux utiliser access,ou encore, dans mes recherches j'ai su que Jboss contient un database,je ne sais pas s'il serait mieux que je l'utilise.
    J'ai donc besoin d'un coup de main,initialement pour trouver mon environnement de travail (intallation de jboss,configuration d'éclipse pour utiliser jboss et autres choses si nécessaire,car je ne sais meme pas tout ce qui me sert pour faire mon projet.) Par ailleurs,si quelqu'un peu me donner un bon tutoriel qui me permettra de faire mes premiers pas et avancer,j'en serai certainement très ravie.
    Aidez moi svp. Ne sachant rien de tout celà,j'ai peur de ne pas pouvoir remettre mon projet à temps.
    Merci d'avance.

  2. #2
    Expert éminent sénior

    Avatar de Siguillaume
    Homme Profil pro
    Conseil - Consultant en systèmes d'information
    Inscrit en
    Août 2007
    Messages
    6 180
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Côte d'Ivoire

    Informations professionnelles :
    Activité : Conseil - Consultant en systèmes d'information
    Secteur : High Tech - Produits et services télécom et Internet

    Informations forums :
    Inscription : Août 2007
    Messages : 6 180
    Points : 25 358
    Points
    25 358
    Par défaut
    Bonjour, je crois que l'installation de jboss est analogue aux autres plugins d'Eclipse
    Pour ta documentation:
    -ici tu as une liste de cours sur le J2EE
    - , c'est toute la foire aux questions sur J2EE, ça te permettra d'aller plus vite
    - et enfin ici, tu as la foire aux questions sur Eclipse.

    Tu as les liens vers tous les FAQ de Java à partir d'ici

    Bonne suite!
    Vous avez envie de contribuer au sein du Club Developpez.com ? Contactez-nous maintenant !
    Vous êtes passionné, vous souhaitez partager vos connaissances en informatique, vous souhaitez faire partie de la rédaction.
    Il suffit de vous porter volontaire et de nous faire part de vos envies de contributions :
    Rédaction d'articles/cours/tutoriels, Traduction, Contribution dans la FAQ, Rédaction de news, interviews et témoignages, Organisation de défis, de débats et de sondages, Relecture technique, Modération, Correction orthographique, etc.
    Vous avez d'autres propositions de contributions à nous faire ? Vous souhaitez en savoir davantage ? N'hésitez pas à nous approcher.

  3. #3
    Modérateur
    Avatar de OButterlin
    Homme Profil pro
    Inscrit en
    Novembre 2006
    Messages
    7 310
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations forums :
    Inscription : Novembre 2006
    Messages : 7 310
    Points : 9 522
    Points
    9 522
    Billets dans le blog
    1
    Par défaut
    Bonne chance ! Faire un projet comme celui-là sans connaître JEE, c'est un peu dingue (c'est mon avis)

    Pour t'aider un peu, je te conseille d'installer le plugin JBoss Tools, il t'assistera dans la génération des EJB, éventuellement dans struts ou jsf en fonction de l'IHM que tu veux mettre en place...

    Il faut au préalable installer la version JEE d'Eclipse (la dernière, 3.4.x)

    Pour ce qui est de la mise en place sur le serveur, ça peut se faire directement depuis Eclipse.
    N'oubliez pas de consulter les FAQ Java et les cours et tutoriels Java

  4. #4
    Membre à l'essai
    Étudiant
    Inscrit en
    Novembre 2008
    Messages
    12
    Détails du profil
    Informations personnelles :
    Âge : 39

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Novembre 2008
    Messages : 12
    Points : 15
    Points
    15
    Par défaut
    Slt

    Dans les cours et tutoriels pour apprendre Java voici mon conseil qui peut aussi te servir : Développons en Java par J.M Doudoux je le trouve vraiment efficace et très complet. Pour ton cas tu peux voir avec la partie "Développement d'applications d'entreprises".

    Bon courage

    "...Ce n'est que lorsque tout semble perdu que tu ne dois pas abandonner" M.M

  5. #5
    Candidat au Club
    Profil pro
    Inscrit en
    Mars 2009
    Messages
    11
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2009
    Messages : 11
    Points : 3
    Points
    3
    Par défaut
    Citation Envoyé par Danjos Voir le message
    Bonjour, je crois que l'installation de jboss est analogue aux autres plugins d'Eclipse
    Pour ta documentation:
    -ici tu as une liste de cours sur le J2EE
    - , c'est toute la foire aux questions sur J2EE, ça te permettra d'aller plus vite
    - et enfin ici, tu as la foire aux questions sur Eclipse.

    Tu as les liens vers tous les FAQ de Java à partir d'ici

    Bonne suite!
    Bonsoir,merci tout d'abord.Quand tu dis que l'installation de jboss est comme comme cette des plug in sur éclipse,j'ai honte mais je ne sais mm pas comment on installe un plugin. Merci aussi pour les liens. Pourrais je en avoir un sur jboss 5 STP?

  6. #6
    Candidat au Club
    Profil pro
    Inscrit en
    Mars 2009
    Messages
    11
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2009
    Messages : 11
    Points : 3
    Points
    3
    Par défaut
    Citation Envoyé par OButterlin Voir le message
    Bonne chance ! Faire un projet comme celui-là sans connaître JEE, c'est un peu dingue (c'est mon avis)

    Pour t'aider un peu, je te conseille d'installer le plugin JBoss Tools, il t'assistera dans la génération des EJB, éventuellement dans struts ou jsf en fonction de l'IHM que tu veux mettre en place...

    Il faut au préalable installer la version JEE d'Eclipse (la dernière, 3.4.x)

    Pour ce qui est de la mise en place sur le serveur, ça peut se faire directement depuis Eclipse.
    Merci bien. J'ai installé la version JEE d'éclipse.
    "il t'assistera dans la génération des EJB, éventuellement dans struts ou jsf en fonction de l'IHM que tu veux mettre en place..."
    Je ne sais pas pourquoi tu meentiones stuts içi si je ne vais pas l'utiliser,car je me dis que c'est un framework comme jboss; pas vrai? ça veux dire qu'il maidera aussi sur jboss!?

  7. #7
    Candidat au Club
    Profil pro
    Inscrit en
    Mars 2009
    Messages
    11
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2009
    Messages : 11
    Points : 3
    Points
    3
    Par défaut
    Merci tout de meme.et mercie encore infiniment pour "...Ce n'est que lorsque tout semble perdu que tu ne dois pas abandonner" ça me remonte le moral vue la situation dans laquelle je me trouve.

  8. #8
    Candidat au Club
    Profil pro
    Inscrit en
    Mars 2009
    Messages
    11
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2009
    Messages : 11
    Points : 3
    Points
    3
    Par défaut
    Je dois dire que je suis très contente d'avoir eu des réactions. Vous ne l'imaginez pas mais j'ai de nouveau l'impression que je peux y arriver.J'ai beaucoup à lire mais j'espère vraiment pouvoir y arriver.Je ne suis pas encore fixée sur la configuration de jboss5 sur éclipse etc... Toute intervention m'aiderait vraiment.
    Merci encore pour ce premier pas.

  9. #9
    Modérateur
    Avatar de OButterlin
    Homme Profil pro
    Inscrit en
    Novembre 2006
    Messages
    7 310
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations forums :
    Inscription : Novembre 2006
    Messages : 7 310
    Points : 9 522
    Points
    9 522
    Billets dans le blog
    1
    Par défaut
    Citation Envoyé par yan101 Voir le message
    Merci bien. J'ai installé la version JEE d'éclipse.
    "il t'assistera dans la génération des EJB, éventuellement dans struts ou jsf en fonction de l'IHM que tu veux mettre en place..."
    Je ne sais pas pourquoi tu meentiones stuts içi si je ne vais pas l'utiliser,car je me dis que c'est un framework comme jboss; pas vrai? ça veux dire qu'il maidera aussi sur jboss!?
    Dans la mesure où tu veux faire un "site" (dixit toi), un framework comme struts ou jsf t'aiderait effectivement pour la conception de l'IHM, une des combinaisons suivantes (en fonction du framework) :
    - struts + struts-layout + tiles
    - jsf + richfaces + facelets

    Ceci dit, avec les EJB + JBoss, tu pourrais envisager jsf + richfaces + facelets + seam, ce dernier te rendra la vie plus facile avec les EJB Entity et le lazy loading (pour le détail, il faudra un peu lire Hibernate).

    A+
    N'oubliez pas de consulter les FAQ Java et les cours et tutoriels Java

  10. #10
    Candidat au Club
    Profil pro
    Inscrit en
    Mars 2009
    Messages
    11
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2009
    Messages : 11
    Points : 3
    Points
    3
    Par défaut
    Citation Envoyé par OButterlin Voir le message
    Dans la mesure où tu veux faire un "site" (dixit toi), un framework comme struts ou jsf t'aiderait effectivement pour la conception de l'IHM, une des combinaisons suivantes (en fonction du framework) :
    - struts + struts-layout + tiles
    - jsf + richfaces + facelets

    Ceci dit, avec les EJB + JBoss, tu pourrais envisager jsf + richfaces + facelets + seam, ce dernier te rendra la vie plus facile avec les EJB Entity et le lazy loading (pour le détail, il faudra un peu lire Hibernate).

    A+
    Salut! je me demande où se trouvent ces composants jsf + richfaces + facelets + seam, et si en installant Jboss Tools, je pourrai etre sure de les avoir tous. J'ai essayé de chercher,mais je ne comprends toujours pas leurs fonctions. Merci de me répondre.

  11. #11
    Candidat au Club
    Profil pro
    Inscrit en
    Mars 2009
    Messages
    11
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2009
    Messages : 11
    Points : 3
    Points
    3
    Par défaut Pls Help
    Salut!! Ya personne qui veuille continuer à m aider?
    Toujours en rapport avec ce site,j ai fait un formulaire et je dois verifier les formats des données insérees: Nom, prenom,date de naissance,,emaim et adresse en java bien sur. Quelqu' un a til une idée?
    merci davance

  12. #12
    Membre à l'essai
    Profil pro
    Inscrit en
    Avril 2009
    Messages
    12
    Détails du profil
    Informations personnelles :
    Localisation : France, Rhône (Rhône Alpes)

    Informations forums :
    Inscription : Avril 2009
    Messages : 12
    Points : 15
    Points
    15
    Par défaut
    Bonjour Yan101,

    Je te propose le lien suivant pour comprendre jee 5 et créer un projet jee5 avec Eclipse / JBoss Tools : http://www.objis.com/formation-java/spip.php?article75

    On y simule le développement d'un projet jee complet international, dont une partie EJB3. Cela te permettra :
    - de comprendre les livrables jee : war, Ear, Jars, rar
    - de préparer environnement sous Eclipse 3.4 Ganimède SR2, Jboss 5 et jboss Tools 3.0.

  13. #13
    Membre du Club
    Inscrit en
    Septembre 2008
    Messages
    77
    Détails du profil
    Informations forums :
    Inscription : Septembre 2008
    Messages : 77
    Points : 59
    Points
    59
    Par défaut
    Bonjour,

    Comme OButterlin te l'a dit, seam te facilitera la vie surtout au niveau de choix des outils; c'est une pile d'application qui intègre tous que tu as besoin pour developper une application web : JSF, EJB3, facelets, richfaces, jpa, hibernate.

    http://www.seamframework.org/

    Pour l'installation du plugin eclipse, c'est simple, télécharge le et puis dézippe le dans dossier plugin de eclipse (pour jboss tools je crois que t'as aussi des fichiers à mettre dans le dossier features)

  14. #14
    Membre du Club
    Inscrit en
    Septembre 2008
    Messages
    77
    Détails du profil
    Informations forums :
    Inscription : Septembre 2008
    Messages : 77
    Points : 59
    Points
    59
    Par défaut
    c'est illisible!

    utilise la balise [code] pour distinguer entre ton texte et ton code.

  15. #15
    Candidat au Club
    Profil pro
    Inscrit en
    Mars 2009
    Messages
    11
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2009
    Messages : 11
    Points : 3
    Points
    3
    Par défaut
    ok, je reprends et je demande pardon,j'ignorais comment faire.Merci.
    Je pars d'une page qui après avoir présenté le panier au client,contient un bouton "envoyer" pour valider les vehicules loués, c'est alors que j'agis dans la base de données. cependant, quand je clique sur ce bouton, mon code (web.xml, servlets...) est fait de telle sorte qu'il appelle la servlet qui procède à l'ajout d'une entrée dans la base de données, constituée d'un objet client et d'un objet vehiculeLoué(qui est l'objet vehicule auquel on j'ai ajouté le nombre de vehicules loués) Je puis vous rassurer que tout se passe bien jusk'au moment où la fonction creerUtilisateurVehicule est appelée. J'ai mis tout ces system.out.prinln pour debugger les erreurs précédentes.
    En effet, dans cette erreur ci? il fait la persist, mais quelque soit le nombre de vehicules dans le panier, il la fait seulement pour le premier ensuite me génère une erreur que je mets dans le post suivant



    Voici mes classes

    Classe UtilisateurVehicule

    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
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    package com.enst.location.entites.utilisateurs;
     
    import java.io.Serializable;
     
    import javax.persistence.Entity;
    import javax.persistence.GeneratedValue;
    import javax.persistence.GenerationType;
    import javax.persistence.Id;
    import javax.persistence.Inheritance;
    import javax.persistence.InheritanceType;
     
     
     
    @Entity
    @Inheritance(strategy=
    InheritanceType.SINGLE_TABLE)
    public class UtilisateurVehicule implements Serializable{
     
    /**
    *
    */
    private static final long serialVersionUID = 1L;
     
    private int id;
    String login;
    String nom;
    String prenom;
    String marqueLoue;
    String anneeVLoue;
    String email;
    String couleurLoue;
    int idVeh;
    int nbreVehLoue;
     
    public UtilisateurVehicule(){
     
    }
     
    public UtilisateurVehicule(String login,String nom, String prenom,
    String marqueLoue, String anneeVLoue, String email,String couleurLoue) {
    super();
    this.nom = nom;
    this.prenom = prenom;
    this.email = email;
    this.anneeVLoue = anneeVLoue;
    this.email = email;
    this.login=login;
    this.couleurLoue=couleurLoue;
    }
     
    @Id @GeneratedValue(strategy=GenerationType.SEQUENCE)
    public int getId(){
    return id;
    }
    public void setId( int id){
     
    this.id=id;
    }
    public String getNom() {
    return nom;
    }
    public void setNom(String nom) {
    this.nom= nom;
    }
    public String getLogin() {
    return login;
    }
    public void setLogin(String log){
    this.login=log;
    }
    public String getCouleurLoue() {
    return couleurLoue;
    }
    public void setCouleurLoue(String couleur){
    this.couleurLoue=couleur;
    }
     
    public String getPrenom() {
    return prenom;
    }
    public void setPrenom(String prenom) {
    this.prenom = prenom;
    }
     
    public String getAnneeVLoue() {
    return anneeVLoue;
    }
    public void setAnneeVLoue(String annee) {
    this.anneeVLoue = annee;
    }
    public String getEmail() {
    return email;
    }
    public void setEmail(String email) {
    this.email = email;
    }
    public int getIdVeh() {
    return idVeh;
    }
    public void setIdVeh(int _idVeh) {
    this.idVeh = _idVeh;
    }
    public int getNbreVehLouer() {
    return nbreVehLoue;
    }
    public void setNbreVehLouer(int _nbreVehLouer) {
    this.nbreVehLoue = _nbreVehLouer;
    }
    }
    Classe Vehicule:

    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
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
     
    package com.enst.location.entites.utilisateurs;
     
    import java.io.Serializable;
     
    import javax.persistence.Entity;
    import javax.persistence.GeneratedValue;
    import javax.persistence.GenerationType;
    import javax.persistence.Id;
    import javax.persistence.Inheritance;
    import javax.persistence.InheritanceType;
    import javax.persistence.Query;
     
     
     
    @Entity
    @Inheritance(strategy=
    InheritanceType.SINGLE_TABLE)
    public class Vehicule implements Serializable{
     
    /**
    *
    */
    private static final long serialVersionUID = 1L;
     
     
    private int id;
     
    public String anneeCreation;
     
    public int nbreDispo;
     
    public String typeVeh;
     
    public String marque;
     
    public String couleur;
     
    public String dateDebut;
     
    public String dateFin;
     
    public String matricule;
     
    public int prixParJr;//
     
    public int prixT;
     
     
    boolean b;
     
    public Vehicule(){
    this.anneeCreation = "";
    marque = "";
    typeVeh = "";
    prixParJr = 0;
    prixT = 0;
    matricule="";
    b=true;
    }
     
    public Vehicule(String annee, String _typeVeh, String _marque,String _matricule) {
    super();
    this.anneeCreation = annee;
    marque = _marque;
    typeVeh = _typeVeh;
    matricule=_matricule;
     
    }
     
    @Id @GeneratedValue(strategy=GenerationType.AUTO)
    public int getId() {
    return id;
    }
    public void setId(int id) {
    this.id = id;
    }
    public boolean getB() {
    return b;
    }
    public void setB(boolean _b) {
    this.b = _b;
    }
    public String getMatricule(){
    return this.matricule;
    }
    public void setMatricule(String Mat){
    this.matricule=Mat;
    }
    public String getAnneeCreation() {
    return anneeCreation;
    }
    public void setAnneeCreation(String annee) {
    this.anneeCreation = annee;
    }
    public String getTypeVeh() {
    return this.typeVeh;
    }
     
    public void setTypeVeh(String _tV) {
    this.typeVeh = _tV;
     
    }
    public String getMarque() {
    return this.marque;
    }
     
    public void setMarque(String _marque) {
    this.marque = _marque;
    }
     
    public String getCouleur() {
    return this.couleur;
    }
     
    public void setCouleur(String _couleur) {
    this.couleur = _couleur;
    }
     
    public String getDateDebut() {
    return this.dateDebut;
    }
     
    public void setDateDebut(String dD) {
    this.dateDebut = dD;
    }
     
    public String getDateFin() {
    return this.dateFin;
    }
     
    public void setDateFin(String dF) {
    this.dateFin = dF;
    }
     
    public int getNbreDispo() {
    //nbreDispo = chercherNbreDispoParAnneeParMarque(this);
    return nbreDispo;
    }
    public void setNbreDispo(int _nbre) {
    this.nbreDispo = _nbre;
    }
     
    public int getPrixParJr() {
    //nbreDispo = chercherNbreDispoParAnneeParMarque(this);
    return prixParJr;
    }
    public void setPrixParJr(int _prixParJr) {
    this.prixParJr = _prixParJr;
    }
     
    public int getPrixT() {
    //nbreDispo = chercherNbreDispoParAnneeParMarque(this);
    return prixT;
    }
    public void setPrixT(int _prixT) {
    this.prixT = _prixT;
    }
     
    }
    Classe Utilisateurs

    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
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
     
    package com.enst.location.entites.utilisateurs;
     
    import java.io.Serializable;
     
    import javax.persistence.Entity;
    import javax.persistence.GeneratedValue;
    import javax.persistence.GenerationType;
    import javax.persistence.Id;
    import javax.persistence.Inheritance;
    import javax.persistence.InheritanceType;
     
     
     
    @Entity
    @Inheritance(strategy=
    InheritanceType.SINGLE_TABLE)
    public class Utilisateurs implements Serializable{
     
    /**
    *
    */
    private static final long serialVersionUID = 1L;
     
     
    private int id;
    private int idVeh;
    private int nbreVehLouer;
    private String nom;
    private String prenom;
    private String ddn;
    private String email;
    private String adresse;
    private String login;
    private String pass;
     
     
     
     
    public Utilisateurs(){
     
    }
     
    public Utilisateurs(String nom, String prenom,
    String ddn, String adresse, String email,String login,String pass) {
    super();
    this.nom = nom;
    this.prenom = prenom;
    this.ddn = ddn;
    this.adresse = adresse;
    this.email = email;
    this.login=login;
    this.pass=pass;
    }
     
    @Id @GeneratedValue(strategy=GenerationType.SEQUENCE)
    public int getId() {
    return id;
    }
    public void setId(int id) {
    this.id = id;
    }
    public String getLogin() {
    return login;
    }
    public void setLogin(String log){
    this.login=log;
    }
    public String getPass() {
    return pass;
    }
    public void setPass(String _pass){
    this.pass=_pass;
    }
    public String getNom() {
    return nom;
    }
    public void setNom(String nom) {
    this.nom = nom;
    }
    public String getPrenom() {
    return prenom;
    }
    public void setPrenom(String prenom) {
    this.prenom = prenom;
    }
    public String getDdn() {
    return ddn;
    }
    public void setDdn(String ddn) {
    this.ddn = ddn;
    }
    public String getAdresse() {
    return adresse;
    }
    public void setAdresse(String adresse) {
    this.adresse = adresse;
    }
    public String getEmail() {
    return email;
    }
    public void setEmail(String email) {
    this.email = email;
    }
    public int getIdVeh() {
    return idVeh;
    }
    public void setIdVeh(int _idVeh) {
    this.idVeh = _idVeh;
    }
    public int getNbreVehLouer() {
    return nbreVehLouer;
    }
    public void setNbreVehLouer(int _nbreVehLouer) {
    this.nbreVehLouer = _nbreVehLouer;
    }
     
    }
    Classe GestionUtilisateurVehiculeBean:
    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
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
     
    package com.enst.location.services;
     
    import com.enst.location.entites.utilisateurs.UtilisateurVehicule;
    import com.enst.location.entites.utilisateurs.Utilisateurs;
    import com.enst.location.entites.utilisateurs.VehiculeLoue;
    import javax.ejb.Stateless;
    import javax.persistence.EntityManager;
    import javax.persistence.PersistenceContext;
    import javax.persistence.Query;
     
     
    @Stateless
    public class GestionUtilisateurVehiculeBean implements GestionUtilisateurVehicule{
     
    @PersistenceContext
    EntityManager em;
     
     
    public boolean creerUtilisateurVehicule(Utilisateurs User, VehiculeLoue v) {
     
    System.out.println("JE VIENS D'ENTRER DANS CREER UTILISATEURVEHICULE ");
    UtilisateurVehicule client = new UtilisateurVehicule();
     
    client.setLogin(User.getLogin());
    client.setEmail(User.getEmail());
    client.setNom(User.getNom());
    client.setPrenom(User.getPrenom());
    client.setNbreVehLouer(v.getNomBreLoue());
    client.setIdVeh(v.getVehicule().getId());
    client.setCouleurLoue(v.getVehicule().getCouleur());
    client.setAnneeVLoue(v.getVehicule().getAnneeCreation());
    System.out.println("CREER UTILISATEUR VEHICULE JE VAIS FAIRE LA PERSIST");
    em.merge(client);
    em.persist(client);
    System.out.println("CREER UTILISATEUR VEHICULE J'AI FAIT LA PERSIST");
    if (client==null){
    System.out.println("CREER UTILISATEUR VEHICULE CLIENT EST NULL");
    return false;
    }
    else{
    System.out.println("CREER UTILISATEUR VEHICULE CLIENT N'EST PAS NULL");
    return true;}
    }
     
     
    }
     
    Servlet qui contient l'appel de la fonction creerUtilisateurVehicule. C'est juste une partie,celle qui ne fonctionne pas pour le moment.
     
    GestionVehicule gestionnaireVehicule = getGestionnaireVehicule();
     
    GestionUtilisateur gestionnaireUtilisateur = getGestionnaireUtilisateur();
     
    GestionUtilisateurVehicule gestionnaireUtilisateurVehicule = getGestionnaireUtilisateurVehicule();
    boolean b,b2;
    int i=0;
    String login=request.getParameter("login");
    Panier panier = (Panier) request.getSession().getAttribute(login);
    System.out.println("SERVLET FACTURE LOGIN ="+login);
    System.out.println("SERVLET FACTURE PANIER ="+panier);
    Utilisateurs u =new Utilisateurs();
    Vector<VehiculeLoue> lesVehiculesCommandes = panier.getContentsV();
     
    int PrixTotalPanier=Servlet_AjoutPanier.getPrixTotal(panier);
    for(VehiculeLoue vehiculeCourant : lesVehiculesCommandes ){
    b= gestionnaireVehicule.louerVehicule(vehiculeCourant.getVehicule(), vehiculeCourant.getNomBreLoue(),vehiculeCourant.getVehicule().getDateDebut(),vehiculeCourant.getVehicule().getDateFin(), true);//appelé avec true pour agir dans la bd
    u=gestionnaireUtilisateur.getUtilisateur(login);
    System.out.println("SERVLET FACTURE : B ET U SONT "+b+" "+u.getId());
    if(b==true && u!=null){
    System.out.println("SERVELT FACTURE i="+i);
    b2=gestionnaireUtilisateurVehicule.creerUtilisateurVehicule(u,vehiculeCourant);
    System.out.println(" J'AI LOUE LE VEHICULE ");
    System.out.println(" SERVLET FACTURE:JE L'AI LOUé voici b= "+b2);
    i++;
    }
    else
    System.out.println("SERVLET FACTURE: UN PROBLèME EST SURVENU.B ET U"+b+" "+u);
    }
    Servlet qui contient l'appel de la fonction creerUtilisateurVehicule. C'est juste une partie,celle qui ne fonctionne pas pour le moment.j'ai implémenté la methode goGet et j'ai fait les connection avec le JNDI pour utiliser les methodes des EJB . Si cette partie est aussi nécéssaire pour répondre,il suffit de me dire et je la mettrai.

    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
     
    GestionVehicule gestionnaireVehicule = getGestionnaireVehicule();
     
    GestionUtilisateur gestionnaireUtilisateur = getGestionnaireUtilisateur();
     
    GestionUtilisateurVehicule gestionnaireUtilisateurVehicule = getGestionnaireUtilisateurVehicule();
    boolean b,b2;
    int i=0;
    String login=request.getParameter("login");
    Panier panier = (Panier) request.getSession().getAttribute(login);
    System.out.println("SERVLET FACTURE LOGIN ="+login);
    System.out.println("SERVLET FACTURE PANIER ="+panier);
    Utilisateurs u =new Utilisateurs();
    Vector<VehiculeLoue> lesVehiculesCommandes = panier.getContentsV();
     
    int PrixTotalPanier=Servlet_AjoutPanier.getPrixTotal(panier);
    for(VehiculeLoue vehiculeCourant : lesVehiculesCommandes ){
    b= gestionnaireVehicule.louerVehicule(vehiculeCourant.getVehicule(), vehiculeCourant.getNomBreLoue(),vehiculeCourant.getVehicule().getDateDebut(),vehiculeCourant.getVehicule().getDateFin(), true);//appelé avec true pour agir dans la bd
    u=gestionnaireUtilisateur.getUtilisateur(login);
    System.out.println("SERVLET FACTURE : B ET U SONT "+b+" "+u.getId());
    if(b==true && u!=null){
    System.out.println("SERVELT FACTURE i="+i);
    b2=gestionnaireUtilisateurVehicule.creerUtilisateurVehicule(u,vehiculeCourant);
    System.out.println(" J'AI LOUE LE VEHICULE ");
    System.out.println(" SERVLET FACTURE:JE L'AI LOUé voici b= "+b2);
    i++;
    }
    else
    System.out.println("SERVLET FACTURE: UN PROBLèME EST SURVENU.B ET U"+b+" "+u);
    }

  16. #16
    Candidat au Club
    Profil pro
    Inscrit en
    Mars 2009
    Messages
    11
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2009
    Messages : 11
    Points : 3
    Points
    3
    Par défaut
    l'erreur est la suivante sans rentrer dans la servlet(je vais aussi la mettre dans la balise [code]):
    Je vous prie de m'aider. j'ai déjà fait des recherches sur google et toutes les réponses tournent autour des id mais je ne vois pas exactement quel est le problème des id chez moi.
    merci d'avance
    (J'ai supprimé les messages précédents illisibles).

    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
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    
    javax.ejb.EJBTransactionRolledbackException: Transaction rolled back
    org.jboss.ejb3.tx.Ejb3TxPolicy.handleEndTransactionException(Ejb3TxPolicy.java:54)
    org.jboss.aspects.tx.TxPolicy.endTransaction(TxPolicy.java:175)
    org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:87)
    org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:190)
    org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
    org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
    org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
    org.jboss.ejb3.tx.NullInterceptor.invoke(NullInterceptor.java:42)
    org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
    org.jboss.ejb3.security.Ejb3AuthenticationInterceptorv2.invoke(Ejb3AuthenticationInterceptorv2.java:186)
    org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
    org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:41)
    org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
    org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
    org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
    org.jboss.ejb3.BlockContainerShutdownInterceptor.invoke(BlockContainerShutdownInterceptor.java:67)
    org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
    org.jboss.aspects.currentinvocation.CurrentInvocationInterceptor.invoke(CurrentInvocationInterceptor.java:67)
    org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
    org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:487)
    org.jboss.ejb3.remoting.IsLocalInterceptor.invokeLocal(IsLocalInterceptor.java:85)
    org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:72)
    org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
    org.jboss.aspects.remoting.PojiProxy.invoke(PojiProxy.java:62)
    $Proxy125.invoke(Unknown Source)
    org.jboss.ejb3.proxy.handler.ProxyInvocationHandlerBase.invoke(ProxyInvocationHandlerBase.java:261)
    org.jboss.ejb3.proxy.handler.session.SessionSpecProxyInvocationHandlerBase.invoke(SessionSpecProxyInvocationHandlerBase.java:101)
    $Proxy253.creerUtilisateurVehicule(Unknown Source)
    servlet.Servlet_Facture.doGet(Servlet_Facture.java:77)
    servlet.Servlet_Facture.doPost(Servlet_Facture.java:109)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    
    root cause
    
    javax.transaction.RollbackException: [com.arjuna.ats.internal.jta.transaction.arjunacore.commitwhenaborted] [com.arjuna.ats.internal.jta.transaction.arjunacore.commitwhenaborted] Could not commit transaction.
    com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1426)
    com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:135)
    com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:75)
    org.jboss.aspects.tx.TxPolicy.endTransaction(TxPolicy.java:170)
    org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:87)
    org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:190)
    org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
    org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
    org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
    org.jboss.ejb3.tx.NullInterceptor.invoke(NullInterceptor.java:42)
    org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
    org.jboss.ejb3.security.Ejb3AuthenticationInterceptorv2.invoke(Ejb3AuthenticationInterceptorv2.java:186)
    org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
    org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:41)
    org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
    org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
    org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
    org.jboss.ejb3.BlockContainerShutdownInterceptor.invoke(BlockContainerShutdownInterceptor.java:67)
    org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
    org.jboss.aspects.currentinvocation.CurrentInvocationInterceptor.invoke(CurrentInvocationInterceptor.java:67)
    org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
    org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:487)
    org.jboss.ejb3.remoting.IsLocalInterceptor.invokeLocal(IsLocalInterceptor.java:85)
    org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:72)
    org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
    org.jboss.aspects.remoting.PojiProxy.invoke(PojiProxy.java:62)
    $Proxy125.invoke(Unknown Source)
    org.jboss.ejb3.proxy.handler.ProxyInvocationHandlerBase.invoke(ProxyInvocationHandlerBase.java:261)
    org.jboss.ejb3.proxy.handler.session.SessionSpecProxyInvocationHandlerBase.invoke(SessionSpecProxyInvocationHandlerBase.java:101)
    $Proxy253.creerUtilisateurVehicule(Unknown Source)
    servlet.Servlet_Facture.doGet(Servlet_Facture.java:77)
    servlet.Servlet_Facture.doPost(Servlet_Facture.java:109)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    
    root cause
    
    javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: Could not execute JDBC batch update
    org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:614)
    org.hibernate.ejb.AbstractEntityManagerImpl$1.beforeCompletion(AbstractEntityManagerImpl.java:513)
    com.arjuna.ats.internal.jta.resources.arjunacore.SynchronizationImple.beforeCompletion(SynchronizationImple.java:101)
    com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.beforeCompletion(TwoPhaseCoordinator.java:263)
    com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.end(TwoPhaseCoordinator.java:86)
    com.arjuna.ats.arjuna.AtomicAction.commit(AtomicAction.java:177)
    com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1414)
    com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:135)
    com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:75)
    org.jboss.aspects.tx.TxPolicy.endTransaction(TxPolicy.java:170)
    org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:87)
    org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:190)
    org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
    org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
    org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
    org.jboss.ejb3.tx.NullInterceptor.invoke(NullInterceptor.java:42)
    org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
    org.jboss.ejb3.security.Ejb3AuthenticationInterceptorv2.invoke(Ejb3AuthenticationInterceptorv2.java:186)
    org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
    org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:41)
    org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
    org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
    org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
    org.jboss.ejb3.BlockContainerShutdownInterceptor.invoke(BlockContainerShutdownInterceptor.java:67)
    org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
    org.jboss.aspects.currentinvocation.CurrentInvocationInterceptor.invoke(CurrentInvocationInterceptor.java:67)
    org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
    org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:487)
    org.jboss.ejb3.remoting.IsLocalInterceptor.invokeLocal(IsLocalInterceptor.java:85)
    org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:72)
    org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
    org.jboss.aspects.remoting.PojiProxy.invoke(PojiProxy.java:62)
    $Proxy125.invoke(Unknown Source)
    org.jboss.ejb3.proxy.handler.ProxyInvocationHandlerBase.invoke(ProxyInvocationHandlerBase.java:261)
    org.jboss.ejb3.proxy.handler.session.SessionSpecProxyInvocationHandlerBase.invoke(SessionSpecProxyInvocationHandlerBase.java:101)
    $Proxy253.creerUtilisateurVehicule(Unknown Source)
    servlet.Servlet_Facture.doGet(Servlet_Facture.java:77)
    servlet.Servlet_Facture.doPost(Servlet_Facture.java:109)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    
    root cause
    
    org.hibernate.exception.GenericJDBCException: Could not execute JDBC batch update
    org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:126)
    org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:114)
    org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)
    org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:275)
    org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:266)
    org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:167)
    org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:321)
    org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:50)
    org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1027)
    org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:365)
    org.hibernate.ejb.AbstractEntityManagerImpl$1.beforeCompletion(AbstractEntityManagerImpl.java:504)
    com.arjuna.ats.internal.jta.resources.arjunacore.SynchronizationImple.beforeCompletion(SynchronizationImple.java:101)
    com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.beforeCompletion(TwoPhaseCoordinator.java:263)
    com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.end(TwoPhaseCoordinator.java:86)
    com.arjuna.ats.arjuna.AtomicAction.commit(AtomicAction.java:177)
    com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1414)
    com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:135)
    com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:75)
    org.jboss.aspects.tx.TxPolicy.endTransaction(TxPolicy.java:170)
    org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:87)
    org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:190)
    org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
    org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
    org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
    org.jboss.ejb3.tx.NullInterceptor.invoke(NullInterceptor.java:42)
    org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
    org.jboss.ejb3.security.Ejb3AuthenticationInterceptorv2.invoke(Ejb3AuthenticationInterceptorv2.java:186)
    org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
    org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:41)
    org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
    org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
    org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
    org.jboss.ejb3.BlockContainerShutdownInterceptor.invoke(BlockContainerShutdownInterceptor.java:67)
    org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
    org.jboss.aspects.currentinvocation.CurrentInvocationInterceptor.invoke(CurrentInvocationInterceptor.java:67)
    org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
    org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:487)
    org.jboss.ejb3.remoting.IsLocalInterceptor.invokeLocal(IsLocalInterceptor.java:85)
    org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:72)
    org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
    org.jboss.aspects.remoting.PojiProxy.invoke(PojiProxy.java:62)
    $Proxy125.invoke(Unknown Source)
    org.jboss.ejb3.proxy.handler.ProxyInvocationHandlerBase.invoke(ProxyInvocationHandlerBase.java:261)
    org.jboss.ejb3.proxy.handler.session.SessionSpecProxyInvocationHandlerBase.invoke(SessionSpecProxyInvocationHandlerBase.java:101)
    $Proxy253.creerUtilisateurVehicule(Unknown Source)
    servlet.Servlet_Facture.doGet(Servlet_Facture.java:77)
    servlet.Servlet_Facture.doPost(Servlet_Facture.java:109)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    
    root cause
    
    java.sql.BatchUpdateException: failed batch
    org.hsqldb.jdbc.jdbcStatement.executeBatch(Unknown Source)
    org.hsqldb.jdbc.jdbcPreparedStatement.executeBatch(Unknown Source)
    org.jboss.resource.adapter.jdbc.CachedPreparedStatement.executeBatch(CachedPreparedStatement.java:476)
    org.jboss.resource.adapter.jdbc.WrappedStatement.executeBatch(WrappedStatement.java:774)
    org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:70)
    org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:268)
    org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:266)
    org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:167)
    org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:321)
    org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:50)
    org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1027)
    org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:365)
    org.hibernate.ejb.AbstractEntityManagerImpl$1.beforeCompletion(AbstractEntityManagerImpl.java:504)
    com.arjuna.ats.internal.jta.resources.arjunacore.SynchronizationImple.beforeCompletion(SynchronizationImple.java:101)
    com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.beforeCompletion(TwoPhaseCoordinator.java:263)
    com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.end(TwoPhaseCoordinator.java:86)
    com.arjuna.ats.arjuna.AtomicAction.commit(AtomicAction.java:177)
    com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1414)
    com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:135)
    com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:75)
    org.jboss.aspects.tx.TxPolicy.endTransaction(TxPolicy.java:170)
    org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:87)
    org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:190)
    org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
    org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
    org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
    org.jboss.ejb3.tx.NullInterceptor.invoke(NullInterceptor.java:42)
    org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
    org.jboss.ejb3.security.Ejb3AuthenticationInterceptorv2.invoke(Ejb3AuthenticationInterceptorv2.java:186)
    org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
    org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:41)
    org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
    org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
    org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
    org.jboss.ejb3.BlockContainerShutdownInterceptor.invoke(BlockContainerShutdownInterceptor.java:67)
    org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
    org.jboss.aspects.currentinvocation.CurrentInvocationInterceptor.invoke(CurrentInvocationInterceptor.java:67)
    org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
    org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:487)
    org.jboss.ejb3.remoting.IsLocalInterceptor.invokeLocal(IsLocalInterceptor.java:85)
    org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:72)
    org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
    org.jboss.aspects.remoting.PojiProxy.invoke(PojiProxy.java:62)
    $Proxy125.invoke(Unknown Source)
    org.jboss.ejb3.proxy.handler.ProxyInvocationHandlerBase.invoke(ProxyInvocationHandlerBase.java:261)
    org.jboss.ejb3.proxy.handler.session.SessionSpecProxyInvocationHandlerBase.invoke(SessionSpecProxyInvocationHandlerBase.java:101)
    $Proxy253.creerUtilisateurVehicule(Unknown Source)
    servlet.Servlet_Facture.doGet(Servlet_Facture.java:77)
    servlet.Servlet_Facture.doPost(Servlet_Facture.java:109)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    
    note The full stack trace of the root cause is available in the JBoss Web/2.1.2.GA logs.

Discussions similaires

  1. Comment commencer avec Jboss et eclipse
    Par tototata dans le forum Wildfly/JBoss
    Réponses: 0
    Dernier message: 25/05/2009, 14h45
  2. Comment commencer ?
    Par cyrill.gremaud dans le forum Interfaces Graphiques en Java
    Réponses: 14
    Dernier message: 25/11/2005, 15h04
  3. [Wamp] Comment commencer ?
    Par mencaglia dans le forum EDI, CMS, Outils, Scripts et API
    Réponses: 5
    Dernier message: 11/11/2005, 18h34
  4. [JEU]Comment commencer
    Par mavina dans le forum Général Java
    Réponses: 7
    Dernier message: 04/11/2005, 08h39
  5. [eclipse][plugin] Comment avoir une fenêtre avec focus
    Par relivio dans le forum Eclipse Java
    Réponses: 1
    Dernier message: 07/04/2004, 15h54

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo