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

Tomcat et TomEE Java Discussion :

GRAVE: The web application registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it whe


Sujet :

Tomcat et TomEE Java

  1. #1
    Membre habitué
    Femme Profil pro
    Inscrit en
    Mai 2012
    Messages
    360
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : France

    Informations forums :
    Inscription : Mai 2012
    Messages : 360
    Points : 139
    Points
    139
    Par défaut GRAVE: The web application registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it whe
    Bonjour,

    Je suis confronté à ce problème depuis 3 jours et je désespère de trouver un solution

    J'ai modifié 8 fichier en créant de nouvelle fonctionnalité (.jsp, .java, etc..) Lorsque je remplace les anciens fichiers manuellement pour ceux réactualiser, j'obtiens ce message d'erreur :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
     
    GRAVE: The web application [/GestionHoraire] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
    Lorsque j'importe l'intégralité de mon projet, via à .war, dès que l'on fait la moindre manipulation, j'obtiens

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
     
    too many opn files
    Je suis vraiment désespérée car je ne trouve pas de solution

  2. #2
    Expert éminent sénior
    Avatar de tchize_
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Avril 2007
    Messages
    25 481
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 44
    Localisation : Belgique

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Avril 2007
    Messages : 25 481
    Points : 48 806
    Points
    48 806
    Par défaut
    Citation Envoyé par leara500 Voir le message
    GRAVE: The web application [/GestionHoraire] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
    Vérifie que ton driver ne date pas de matusalem. Sinon a priori rien de catastrophique, tomcat a géré le problème
    Citation Envoyé par leara500 Voir le message
    too many opn files
    Augmente ta limite de fichier? Ton ulimit est à combien si on part sous linux.

  3. #3
    Membre habitué
    Femme Profil pro
    Inscrit en
    Mai 2012
    Messages
    360
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : France

    Informations forums :
    Inscription : Mai 2012
    Messages : 360
    Points : 139
    Points
    139
    Par défaut
    Merci beaucoup pour votre réponse

    Je suis sous CENTOS et le ulimit est à 1024. Le soucis c'est que je n'arrive pas l'augmenter et que même si je l'augmente, il se remet au bout de quelques minute à sa valeur initiale, et je ne sais pas comment faire

  4. #4
    Membre habitué
    Femme Profil pro
    Inscrit en
    Mai 2012
    Messages
    360
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : France

    Informations forums :
    Inscription : Mai 2012
    Messages : 360
    Points : 139
    Points
    139
    Par défaut
    Voici le message d'erreur lorsque que je fais une insertion de fichier par fichier (.jsp, .java et .class)
    Nom : JDBC driver.jpg
Affichages : 2014
Taille : 147,7 Ko

    Le soucis avec ce message d'erreur et que l'application Gestion Horaire ne fonctionne absolument pas
    Et je ne sais pas à quel driver il correspond puisque je n'ai aucun driver qui s'appelle comme çà




    Voici le message d'erreur lorsque que je fais une insertion de dossier complet (.jsp, .java, .class, .xml, etc....)

    Nom : Too many open files.jpg
Affichages : 1887
Taille : 121,9 Ko


    Je vous remercie infiniment de votre aide

  5. #5
    Expert éminent sénior
    Avatar de tchize_
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Avril 2007
    Messages
    25 481
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 44
    Localisation : Belgique

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Avril 2007
    Messages : 25 481
    Points : 48 806
    Points
    48 806
    Par défaut
    pour augmenter ton ulimit

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    *    soft    nofile 8192
    *    hard    nofile 8192
    a mettre dans /etc/security/limits.conf

    ton message sur le driver est juste une conséquence de ton erreur précédente: "error listener start". Le démarrage de l'application a foiré, elle est déchargée par tomcat, comme ça a foiré, le désenregistrement du driver n'a pas été fait correctement.

    pour le listener start, ben t'as un listener dans ton web.xml qui n'a pas démarré et qui en sus n'a pas fait l'effort de logger la raison de son erreur, donc bonne chance pour trouver ce qui foire
    Je suspecte ActionGlobalListener, mais ce ne sont que de suspicions.

  6. #6
    Membre habitué
    Femme Profil pro
    Inscrit en
    Mai 2012
    Messages
    360
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : France

    Informations forums :
    Inscription : Mai 2012
    Messages : 360
    Points : 139
    Points
    139
    Par défaut
    Merci infiniment de votre aide et de vos réponses. Le fichier limits.conf est comme suivant:

    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
     
    #Each line describes a limit for a user in the form:
    #
    #<domain>        <type>  <item>  <value>
    #
    #Where:
    #<domain> can be:
    #        - an user name
    #        - a group name, with @group syntax
    #        - the wildcard *, for default entry
    #        - the wildcard %, can be also used with %group syntax,
    #                 for maxlogin limit
    #
    #<type> can have the two values:
    #        - "soft" for enforcing the soft limits
    #        - "hard" for enforcing hard limits
    #
    #<item> can be one of the following:
    #        - core - limits the core file size (KB)
    #        - data - max data size (KB)
    #        - fsize - maximum filesize (KB)
    #        - memlock - max locked-in-memory address space (KB)
    #        - nofile - max number of open files
    #        - rss - max resident set size (KB)
    #        - stack - max stack size (KB)
    #        - cpu - max CPU time (MIN)
    #        - nproc - max number of processes
    #        - as - address space limit
    #        - maxlogins - max number of logins for this user
    #        - maxsyslogins - max number of logins on the system
    #        - priority - the priority to run user process with
    #        - locks - max number of file locks the user can hold
    #        - sigpending - max number of pending signals
    #        - msgqueue - max memory used by POSIX message queues (bytes)
    #        - nice - max nice priority allowed to raise to
    #        - rtprio - max realtime priority
    #
    #<domain>      <type>  <item>         <value>
    #
     
    #*               soft    core            0
    #*               hard    rss             10000
    #@student        hard    nproc           20
    #@faculty        soft    nproc           20
    #@faculty        hard    nproc           50
    #ftp             hard    nproc           0
    #@student        -       maxlogins       4
     
    # End of file
    je dois donc ajouter
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
     
    soft    nofile 8192
    hard    nofile 8192
    et le fichier deviendra

    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
     
    #Each line describes a limit for a user in the form:
    #
    #<domain>        <type>  <item>  <value>
    #
    #Where:
    #<domain> can be:
    #        - an user name
    #        - a group name, with @group syntax
    #        - the wildcard *, for default entry
    #        - the wildcard %, can be also used with %group syntax,
    #                 for maxlogin limit
    #
    #<type> can have the two values:
    #        - "soft" for enforcing the soft limits
    #        - "hard" for enforcing hard limits
    #
    #<item> can be one of the following:
    #        - core - limits the core file size (KB)
    #        - data - max data size (KB)
    #        - fsize - maximum filesize (KB)
    #        - memlock - max locked-in-memory address space (KB)
    #        - nofile - max number of open files
    #        - rss - max resident set size (KB)
    #        - stack - max stack size (KB)
    #        - cpu - max CPU time (MIN)
    #        - nproc - max number of processes
    #        - as - address space limit
    #        - maxlogins - max number of logins for this user
    #        - maxsyslogins - max number of logins on the system
    #        - priority - the priority to run user process with
    #        - locks - max number of file locks the user can hold
    #        - sigpending - max number of pending signals
    #        - msgqueue - max memory used by POSIX message queues (bytes)
    #        - nice - max nice priority allowed to raise to
    #        - rtprio - max realtime priority
    #
    #<domain>      <type>  <item>         <value>
    #
     
    #*               soft    core            0
    #*               hard    rss             10000
    #@student        hard    nproc           20
    #@faculty        soft    nproc           20
    #@faculty        hard    nproc           50
    #ftp             hard    nproc           0
    #@student        -       maxlogins       4
     
    soft    nofile          8192
    hard    nofile         8192
     
     
     
    # End of file

    Je vous remercie infiniment de votre aide

  7. #7
    Expert éminent sénior
    Avatar de tchize_
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Avril 2007
    Messages
    25 481
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 44
    Localisation : Belgique

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Avril 2007
    Messages : 25 481
    Points : 48 806
    Points
    48 806
    Par défaut
    non, lit la doc en entête du fichier, il te manque le "domain" sur tes lignes. Dans on exemple j'ai mis * (s'applique à tous), mais tu peux viser directement l'utilisateur tomcat pour éviter d'étendre les droits de tout le monde sur la machine.

  8. #8
    Membre habitué
    Femme Profil pro
    Inscrit en
    Mai 2012
    Messages
    360
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : France

    Informations forums :
    Inscription : Mai 2012
    Messages : 360
    Points : 139
    Points
    139
    Par défaut
    Merci infiniment de votre aide. Vous venez de m'enlever une énorme épine de mon pieds

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. echec pilote: com.mysql.jdbc.Driver
    Par moooona dans le forum JDBC
    Réponses: 3
    Dernier message: 21/05/2008, 16h11
  2. No ClassLoaders found for: com.mysql.jdbc.Driver
    Par nicolemans72 dans le forum Hibernate
    Réponses: 21
    Dernier message: 12/04/2007, 09h54
  3. [jdbc] erreur : com.mysql.jdbc.MysqlDataTruncation
    Par Mascotte dans le forum JDBC
    Réponses: 5
    Dernier message: 22/06/2006, 12h52
  4. Réponses: 3
    Dernier message: 19/03/2006, 09h10
  5. [JDBC]pb com.mysql.jdbc.Driver
    Par fafaroro dans le forum Eclipse Java
    Réponses: 4
    Dernier message: 30/12/2005, 20h42

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