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

Hibernate Java Discussion :

Configurer Hibernate après déploiement sur serveur GlassFish


Sujet :

Hibernate Java

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre averti
    Profil pro
    Inscrit en
    Août 2010
    Messages
    37
    Détails du profil
    Informations personnelles :
    Localisation : Canada

    Informations forums :
    Inscription : Août 2010
    Messages : 37
    Par défaut Configurer Hibernate après déploiement sur serveur GlassFish
    Bonjour, bonjour, je semble avoir quelques petits soucis de déploiement de projet et ça à l'air de venir d'Hibernate si j'en crois le log généré suite à l'instanciation de la classe : "java.lang.NoClassDefFoundError
    Could not initialize class info.HibernateUtil"..

    Le projet a été développé en locale sous Netbeans 6.5.. utilisant jsf/MySql/Hibernate/Woodstock et tester en locale également sous Glassfish 2.1.. Tout ça sans aucun soucis..

    Après avoir trouver un hébergeur me fournissant les memes facilités Glassfish+JVM perso.. j'ai tout simplement copié le fichier .war généré par Netbeans et laissé Glassfish déployer le projet automatiquement.

    Et maintenant je suis faces au problemes : "java.lang.NoClassDefFoundError
    Could not initialize class info.HibernateUtil"..
    J'ignore si le projet tente toujours d'acceder aux librairies de mon Pc, si je dois les copier sur le serveur et modifier un fichier de config pour y faire a nouveau référence..

    Bref je suis ouvert à tout bon conseil.. maintenant que le projet est presque fini, je n'ai pas envie de baisser les bras et recoder dans une autre tech...

    Merci de votre aide..


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

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

    Informations forums :
    Inscription : Avril 2007
    Messages : 25 482
    Par défaut
    le war contient toutes les librairies dont il a besoin. Je parierais plus sur une erreur de config au niveau de la base de données d'hibernate, mais comme tu ne juge pas utile de poster le message d'erreur, on peux pas t'en dire plus.

  3. #3
    Membre averti
    Profil pro
    Inscrit en
    Août 2010
    Messages
    37
    Détails du profil
    Informations personnelles :
    Localisation : Canada

    Informations forums :
    Inscription : Août 2010
    Messages : 37
    Par défaut Détails de l'erreur..
    Si vous voulez tester l'erreur pas de soucis.. www.kyenquiere.com/WebKQ/ et choississez le premier bouton du menu...
    Voici l'erreur générée par le serveur :

    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
    233
    234
    235
    Exception Handler
     
     
    Description: An unhandled exception occurred during the execution of the web application. Please review the following stack trace for more information regarding the error.
     
    Exception Details: java.lang.NoClassDefFoundError
      Could not initialize class info.HibernateUtil
     
    Possible Source of Error:
       Class Name: webkq.SessionBean1
       File Name: SessionBean1.java
       Method Name: initListAdresse
       Line Number: 1480
     
    Source not available. Information regarding the location of the exception can be identified using the exception stack trace below.
     
    Stack Trace:
     
    webkq.SessionBean1.initListAdresse(SessionBean1.java:1480)
    webkq.SessionBean1.initZoneList(SessionBean1.java:1290)
    webkq.Index.btnMenuProvSearch_action(Index.java:837)
    sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    java.lang.reflect.Method.invoke(Method.java:597)
    com.sun.el.parser.AstValue.invoke(AstValue.java:187)
    com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:297)
    javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88)
    com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
    com.sun.rave.web.ui.appbase.faces.ActionListenerImpl.processAction(ActionListenerImpl.java:91)
    javax.faces.component.UICommand.broadcast(UICommand.java:387)
    com.sun.webui.jsf.component.WebuiCommand.broadcast(WebuiCommand.java:160)
    javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)
    javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756)
    com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
    com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
    com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
    com.sun.faces.extensions.avatar.lifecycle.PartialTraversalLifecycle.execute(PartialTraversalLifecycle.java:94)
    javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
    org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:333)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
    com.sun.webui.jsf.util.UploadFilter.doFilter(UploadFilter.java:267)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
    org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:313)
    org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
    org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
    org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
    org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
    com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
    com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
    org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
    org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
    org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
    org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093)
    org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
    org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
    org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
    org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093)
    org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:291)
    org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:200)
    org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
    org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:773)
    org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:703)
    org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:895)
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:682)
    java.lang.Thread.run(Thread.java:619)
     
    Exception Details: javax.faces.el.EvaluationException
      java.lang.NoClassDefFoundError: Could not initialize class info.HibernateUtil
     
    Possible Source of Error:
       Class Name: javax.faces.component.MethodBindingMethodExpressionAdapter
       File Name: MethodBindingMethodExpressionAdapter.java
       Method Name: invoke
       Line Number: 102
     
    Source not available. Information regarding the location of the exception can be identified using the exception stack trace below.
     
    Stack Trace:
     
    javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:102)
    com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
    com.sun.rave.web.ui.appbase.faces.ActionListenerImpl.processAction(ActionListenerImpl.java:91)
    javax.faces.component.UICommand.broadcast(UICommand.java:387)
    com.sun.webui.jsf.component.WebuiCommand.broadcast(WebuiCommand.java:160)
    javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)
    javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756)
    com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
    com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
    com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
    com.sun.faces.extensions.avatar.lifecycle.PartialTraversalLifecycle.execute(PartialTraversalLifecycle.java:94)
    javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
    org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:333)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
    com.sun.webui.jsf.util.UploadFilter.doFilter(UploadFilter.java:267)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
    org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:313)
    org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
    org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
    org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
    org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
    com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
    com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
    org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
    org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
    org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
    org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093)
    org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
    org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
    org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
    org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093)
    org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:291)
    org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:200)
    org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
    org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:773)
    org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:703)
    org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:895)
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:682)
    java.lang.Thread.run(Thread.java:619)
     
    Exception Details: javax.faces.FacesException
      #{Index.btnMenuProvSearch_action}: java.lang.NoClassDefFoundError: Could not initialize class info.HibernateUtil
     
    Possible Source of Error:
       Class Name: com.sun.faces.application.ActionListenerImpl
       File Name: ActionListenerImpl.java
       Method Name: processAction
       Line Number: 118
     
    Source not available. Information regarding the location of the exception can be identified using the exception stack trace below.
     
    Stack Trace:
     
    com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:118)
    com.sun.rave.web.ui.appbase.faces.ActionListenerImpl.processAction(ActionListenerImpl.java:91)
    javax.faces.component.UICommand.broadcast(UICommand.java:387)
    com.sun.webui.jsf.component.WebuiCommand.broadcast(WebuiCommand.java:160)
    javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)
    javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756)
    com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
    com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
    com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
    com.sun.faces.extensions.avatar.lifecycle.PartialTraversalLifecycle.execute(PartialTraversalLifecycle.java:94)
    javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
    org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:333)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
    com.sun.webui.jsf.util.UploadFilter.doFilter(UploadFilter.java:267)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
    org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:313)
    org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
    org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
    org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
    org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
    com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
    com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
    org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
    org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
    org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
    org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093)
    org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
    org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
    org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
    org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093)
    org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:291)
    org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:200)
    org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
    org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:773)
    org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:703)
    org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:895)
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:682)
    java.lang.Thread.run(Thread.java:619)
     
    Exception Details: com.sun.rave.web.ui.appbase.ApplicationException
      #{Index.btnMenuProvSearch_action}: java.lang.NoClassDefFoundError: Could not initialize class info.HibernateUtil
     
    Possible Source of Error:
       Class Name: com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl
       File Name: ViewHandlerImpl.java
       Method Name: cleanup
       Line Number: 603
     
    Source not available. Information regarding the location of the exception can be identified using the exception stack trace below.
     
    Stack Trace:
     
    com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.cleanup(ViewHandlerImpl.java:603)
    com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.java:311)
    com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
    com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
    com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
    com.sun.faces.extensions.avatar.lifecycle.PartialTraversalLifecycle.render(PartialTraversalLifecycle.java:106)
    javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
    org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:333)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
    com.sun.webui.jsf.util.UploadFilter.doFilter(UploadFilter.java:267)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
    org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:313)
    org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
    org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
    org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
    org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
    com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
    com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
    org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
    org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
    org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
    org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093)
    org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
    org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
    org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
    org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093)
    org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:291)
    org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:200)
    org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
    org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:773)
    org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:703)
    org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:895)
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:682)
    java.lang.Thread.run(Thread.java:619)
    Merci encore..

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

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

    Informations forums :
    Inscription : Avril 2007
    Messages : 25 482
    Par défaut
    java n'essaie qu'une est une seule fois d'initialiser la classe, c'est l'erreur qui a eu lieu à ce moment là qui nous intéresse, erreur qui va donner une stacktrace contenant des ligne présentes dans la classe du style

    info.HibernateUtil<staticInit>(numéro de ligne) et qui donnera l'erreur veritable.

    Tout ce que dit le message d'erreur que tu nous donne, en gros c'est que, par le passé, on a raté l'initialisaiton statique de la classe, ce qui implique qu'elle n'est pas disponible maintenant.

  5. #5
    Membre averti
    Profil pro
    Inscrit en
    Août 2010
    Messages
    37
    Détails du profil
    Informations personnelles :
    Localisation : Canada

    Informations forums :
    Inscription : Août 2010
    Messages : 37
    Par défaut Peut être le bout du tunnel...
    Merci pour cette traduction d'erreur.. Si je récapitule, j'ai un projet Netbean bien configuré sur mon serveur local.. L'archive .war générée par Netbean est parfaitement complète.. Toutefois la démarche suivante
    • démarrer l'interface de gestion de Glassfish
    • Uploader l'archive .war à déployer
    • Déployer l'application

    Ne suffit pas à obtenir le meme résultat que lorsque je lance l'application en local..

    Glassfish nécessite-t-il d'autres fichiers que le .war pour faire fonctionner une application ?

  6. #6
    Membre averti
    Profil pro
    Inscrit en
    Août 2010
    Messages
    37
    Détails du profil
    Informations personnelles :
    Localisation : Canada

    Informations forums :
    Inscription : Août 2010
    Messages : 37
    Par défaut Et juste quelques précisions..
    Afin de fournir plus de détails sur la configuration de l'application voici les fichiers xml présent dans le répertoire "WEB-INF" à la racine de l'application..

    web.xml :
    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
     
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
     
        <context-param>
            <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
            <param-value>client</param-value>
        </context-param>
        <context-param>
            <param-name>com.sun.faces.validateXml</param-name>
            <param-value>true</param-value>
        </context-param>
        <context-param>
            <param-name>com.sun.faces.verifyObjects</param-name>
            <param-value>false</param-value>
        </context-param>
        <filter>
            <filter-name>UploadFilter</filter-name>
            <filter-class>com.sun.webui.jsf.util.UploadFilter</filter-class>
            <init-param>
                <description>The maximum allowed upload size in bytes.  If this is set to a negative value, there is no maximum.  The default value is 1000000.</description>
                <param-name>maxSize</param-name>
                <param-value>-1</param-value>
            </init-param>
            <init-param>
                <description>The size (in bytes) of an uploaded file which, if it is exceeded, will cause the file to be written directly to disk instead of stored in memory.  Files smaller than or equal to this size will be stored in memory.  The default value is 4096.</description>
                <param-name>sizeThreshold</param-name>
                <param-value>4096</param-value>
            </init-param>
        </filter>
        <filter-mapping>
            <filter-name>UploadFilter</filter-name>
            <servlet-name>Faces Servlet</servlet-name>
        </filter-mapping>
        <servlet>
            <servlet-name>Faces Servlet</servlet-name>
            <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
            <init-param>
                <param-name>javax.faces.LIFECYCLE_ID</param-name>
                <param-value>com.sun.faces.lifecycle.PARTIAL</param-value>
            </init-param>
            <load-on-startup>1</load-on-startup>
        </servlet>
        <servlet>
            <servlet-name>ExceptionHandlerServlet</servlet-name>
            <servlet-class>com.sun.errorhandler.ExceptionHandler</servlet-class>
            <init-param>
                <param-name>errorHost</param-name>
                <param-value>localhost</param-value>
            </init-param>
            <init-param>
                <param-name>errorPort</param-name>
                <param-value>24444</param-value>
            </init-param>
        </servlet>
        <servlet>
            <servlet-name>ThemeServlet</servlet-name>
            <servlet-class>com.sun.webui.theme.ThemeServlet</servlet-class>
        </servlet>
        <servlet-mapping>
            <servlet-name>Faces Servlet</servlet-name>
            <url-pattern>/faces/*</url-pattern>
        </servlet-mapping>
        <servlet-mapping>
            <servlet-name>ExceptionHandlerServlet</servlet-name>
            <url-pattern>/error/ExceptionHandler</url-pattern>
        </servlet-mapping>
        <servlet-mapping>
            <servlet-name>ThemeServlet</servlet-name>
            <url-pattern>/theme/*</url-pattern>
        </servlet-mapping>
        <session-config>
            <session-timeout>
                30
            </session-timeout>
        </session-config>
        <welcome-file-list>
            <welcome-file>faces/Index.jsp</welcome-file>
        </welcome-file-list>
        <error-page>
            <exception-type>javax.servlet.ServletException</exception-type>
            <location>/error/ExceptionHandler</location>
        </error-page>
        <error-page>
            <exception-type>java.io.IOException</exception-type>
            <location>/error/ExceptionHandler</location>
        </error-page>
        <error-page>
            <exception-type>javax.faces.FacesException</exception-type>
            <location>/error/ExceptionHandler</location>
        </error-page>
        <error-page>
            <exception-type>com.sun.rave.web.ui.appbase.ApplicationException</exception-type>
            <location>/error/ExceptionHandler</location>
        </error-page>
        <jsp-config>
            <jsp-property-group>
                <url-pattern>*.jspf</url-pattern>
                <is-xml>true</is-xml>
            </jsp-property-group>
        </jsp-config>
        <resource-ref>
            <description>Visual Web generated DataSource Reference</description>
            <res-ref-name>jdbc/dataKQ_MySQL</res-ref-name>
            <res-type>javax.sql.DataSource</res-type>
            <res-auth>Container</res-auth>
            <res-sharing-scope>Shareable</res-sharing-scope>
        </resource-ref>
    </web-app>
    sun-web.xml :
    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
     
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE sun-web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 9.0 Servlet 2.5//EN" "http://www.sun.com/software/appserver/dtds/sun-web-app_2_5-0.dtd">
    <sun-web-app error-url="">
      <context-root>/WebKQ</context-root>
      <resource-ref>
        <res-ref-name>jdbc/dataKQ_MySQL</res-ref-name>
        <jndi-name>jdbc/dataKQ_MySQL</jndi-name>
      </resource-ref>
      <class-loader delegate="true"/>
      <jsp-config>
        <property name="keepgenerated" value="true">
          <description>Keep a copy of the generated servlet class' java code.</description>
        </property>
      </jsp-config>
    </sun-web-app>
    face-config.xml :
    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
     
    <?xml version='1.0' encoding='UTF-8'?>
     
    <!-- =========== FULL CONFIGURATION FILE ================================== -->
     
    <faces-config version="1.2" 
        xmlns="http://java.sun.com/xml/ns/javaee" 
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
        xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd">
        <managed-bean>
            <managed-bean-name>Index</managed-bean-name>
            <managed-bean-class>webkq.Index</managed-bean-class>
            <managed-bean-scope>request</managed-bean-scope>
        </managed-bean>
        <managed-bean>
            <managed-bean-name>ApplicationBean1</managed-bean-name>
            <managed-bean-class>webkq.ApplicationBean1</managed-bean-class>
            <managed-bean-scope>application</managed-bean-scope>
        </managed-bean>
        <managed-bean>
            <managed-bean-name>SessionBean1</managed-bean-name>
            <managed-bean-class>webkq.SessionBean1</managed-bean-class>
            <managed-bean-scope>session</managed-bean-scope>
        </managed-bean>
        <managed-bean>
            <managed-bean-name>RequestBean1</managed-bean-name>
            <managed-bean-class>webkq.RequestBean1</managed-bean-class>
            <managed-bean-scope>request</managed-bean-scope>
        </managed-bean>
        <managed-bean>
            <managed-bean-name>Register</managed-bean-name>
            <managed-bean-class>webkq.Register</managed-bean-class>
            <managed-bean-scope>request</managed-bean-scope>
        </managed-bean>
        <managed-bean>
            <managed-bean-name>Account</managed-bean-name>
            <managed-bean-class>webkq.Account</managed-bean-class>
            <managed-bean-scope>request</managed-bean-scope>
        </managed-bean>
        <managed-bean>
            <managed-bean-name>Admin</managed-bean-name>
            <managed-bean-class>webkq.Admin</managed-bean-class>
            <managed-bean-scope>request</managed-bean-scope>
        </managed-bean>
        <managed-bean>
            <managed-bean-name>Language</managed-bean-name>
            <managed-bean-class>webkq.Language</managed-bean-class>
            <managed-bean-scope>request</managed-bean-scope>
        </managed-bean>
        <navigation-rule>
            <from-view-id>/Index.jsp</from-view-id>
            <navigation-case>
                <from-outcome>account</from-outcome>
                <to-view-id>/Account.jsp</to-view-id>
            </navigation-case>
            <navigation-case>
                <from-outcome>register</from-outcome>
                <to-view-id>/Register.jsp</to-view-id>
            </navigation-case>
            <navigation-case>
                <from-outcome>admin</from-outcome>
                <to-view-id>/Admin.jsp</to-view-id>
            </navigation-case>
        </navigation-rule>
        <navigation-rule>
            <from-view-id>/Register.jsp</from-view-id>
            <navigation-case>
                <from-outcome>account</from-outcome>
                <to-view-id>/Account.jsp</to-view-id>
            </navigation-case>
        </navigation-rule>
        <navigation-rule>
            <from-view-id>/Account.jsp</from-view-id>
            <navigation-case>
                <from-outcome>index</from-outcome>
                <to-view-id>/Index.jsp</to-view-id>
            </navigation-case>
        </navigation-rule>
        <managed-bean>
            <managed-bean-name>Publisher</managed-bean-name>
            <managed-bean-class>webkq.Publisher</managed-bean-class>
            <managed-bean-scope>request</managed-bean-scope>
        </managed-bean>
        <managed-bean>
            <managed-bean-name>ProfilPreview</managed-bean-name>
            <managed-bean-class>webkq.ProfilPreview</managed-bean-class>
            <managed-bean-scope>request</managed-bean-scope>
        </managed-bean>
        <managed-bean>
            <managed-bean-name>Image</managed-bean-name>
            <managed-bean-class>webkq.Image</managed-bean-class>
            <managed-bean-scope>request</managed-bean-scope>
        </managed-bean>
    </faces-config>
    sinon ce répertoire contient également le répertoire "lib" pour les .jar à utiliser et le répertoire "classes" dans lequel on retrouve tous les .class dans leur répertoire de package respectifs.. ce répertoire "classes" contient également 2 autres xml..

    hibernate.cfg.xml :
    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
     
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
    <hibernate-configuration>
      <session-factory>
        <property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property>
        <property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
        <property name="hibernate.connection.url">jdbc:mysql://dbmysql200.my-hosting-panel.com:3306/kquiere_db</property>
        <property name="hibernate.connection.username">kquie_admin</property>
        <property name="hibernate.connection.password">mot2pace</property>
        <property name="hibernate.show_sql">true</property>
        <property name="hibernate.current_session_context_class">thread</property>
        <mapping resource="info/Event.hbm.xml"/>
        <mapping resource="info/Provider.hbm.xml"/>
        <mapping resource="info/RealEstate.hbm.xml"/>
        <mapping resource="info/Customer.hbm.xml"/>
        <mapping resource="info/FavEvent.hbm.xml"/>
        <mapping resource="info/Car.hbm.xml"/>
        <mapping resource="info/FavRealEstate.hbm.xml"/>
        <mapping resource="info/FavCar.hbm.xml"/>
        <mapping resource="info/Adresse.hbm.xml"/>
        <mapping resource="info/Card.hbm.xml"/>
        <mapping resource="info/Constructor.hbm.xml"/>
        <mapping resource="info/Acura.hbm.xml"/>
        <mapping resource="info/AlfaRomeo.hbm.xml"/>
        <mapping resource="info/AstonMartin.hbm.xml"/>
        <mapping resource="info/Audi.hbm.xml"/>
        <mapping resource="info/Bentley.hbm.xml"/>
        <mapping resource="info/Bmw.hbm.xml"/>
        <mapping resource="info/Cadillac.hbm.xml"/>
        <mapping resource="info/Chevrolet.hbm.xml"/>
        <mapping resource="info/Chrysler.hbm.xml"/>
        <mapping resource="info/Citroën.hbm.xml"/>
        <mapping resource="info/Dodge.hbm.xml"/>
        <mapping resource="info/Fiat.hbm.xml"/>
        <mapping resource="info/Ford.hbm.xml"/>
        <mapping resource="info/Gmc.hbm.xml"/>
        <mapping resource="info/Honda.hbm.xml"/>
        <mapping resource="info/Hummer.hbm.xml"/>
        <mapping resource="info/Hyundai.hbm.xml"/>
        <mapping resource="info/Jaguar.hbm.xml"/>
        <mapping resource="info/Jeep.hbm.xml"/>
        <mapping resource="info/Kia.hbm.xml"/>
        <mapping resource="info/Lancia.hbm.xml"/>
        <mapping resource="info/Landrover.hbm.xml"/>
        <mapping resource="info/Lexus.hbm.xml"/>
        <mapping resource="info/Lincoln.hbm.xml"/>
        <mapping resource="info/Mazda.hbm.xml"/>
        <mapping resource="info/MercedesBenz.hbm.xml"/>
        <mapping resource="info/Mini.hbm.xml"/>
        <mapping resource="info/Mitsubishi.hbm.xml"/>
        <mapping resource="info/Nissan.hbm.xml"/>
        <mapping resource="info/Opel.hbm.xml"/>
        <mapping resource="info/Peugeot.hbm.xml"/>
        <mapping resource="info/Porsche.hbm.xml"/>
        <mapping resource="info/Renault.hbm.xml"/>
        <mapping resource="info/Seat.hbm.xml"/>
        <mapping resource="info/Skoda.hbm.xml"/>
        <mapping resource="info/Smart.hbm.xml"/>
        <mapping resource="info/Subaru.hbm.xml"/>
        <mapping resource="info/Suzuki.hbm.xml"/>
        <mapping resource="info/Toyota.hbm.xml"/>
        <mapping resource="info/Volkswagen.hbm.xml"/>
        <mapping resource="info/Volvo.hbm.xml"/>
        <mapping resource="info/Zoneplaya.hbm.xml"/>
        <mapping resource="info/Typeevent.hbm.xml"/>
        <mapping resource="info/Yearn.hbm.xml"/>
      </session-factory>
    </hibernate-configuration>
    et hibernate.reveng.xml :
    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
     
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE hibernate-reverse-engineering PUBLIC "-//Hibernate/Hibernate Reverse Engineering DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-reverse-engineering-3.0.dtd">
    <hibernate-reverse-engineering>
      <schema-selection match-catalog="kquiere_db"/>
      <table-filter match-name="adresse"/>
      <table-filter match-name="car"/>
      <table-filter match-name="card"/>
      <table-filter match-name="customer"/>
      <table-filter match-name="event"/>
      <table-filter match-name="fav_car"/>
      <table-filter match-name="fav_event"/>
      <table-filter match-name="fav_real_estate"/>
      <table-filter match-name="provider"/>
      <table-filter match-name="real_estate"/>
      <table-filter match-name="constructor"/>
      <table-filter match-name="acura"/>
      <table-filter match-name="alfa_romeo"/>
      <table-filter match-name="aston_martin"/>
      <table-filter match-name="audi"/>
      <table-filter match-name="bentley"/>
      <table-filter match-name="bmw"/>
      <table-filter match-name="cadillac"/>
      <table-filter match-name="chevrolet"/>
      <table-filter match-name="chrysler"/>
      <table-filter match-name="citroën"/>
      <table-filter match-name="dodge"/>
      <table-filter match-name="fiat"/>
      <table-filter match-name="ford"/>
      <table-filter match-name="gmc"/>
      <table-filter match-name="honda"/>
      <table-filter match-name="hummer"/>
      <table-filter match-name="hyundai"/>
      <table-filter match-name="jaguar"/>
      <table-filter match-name="jeep"/>
      <table-filter match-name="kia"/>
      <table-filter match-name="lancia"/>
      <table-filter match-name="landrover"/>
      <table-filter match-name="lexus"/>
      <table-filter match-name="lincoln"/>
      <table-filter match-name="mazda"/>
      <table-filter match-name="mercedes_benz"/>
      <table-filter match-name="mini"/>
      <table-filter match-name="mitsubishi"/>
      <table-filter match-name="nissan"/>
      <table-filter match-name="opel"/>
      <table-filter match-name="peugeot"/>
      <table-filter match-name="porsche"/>
      <table-filter match-name="renault"/>
      <table-filter match-name="seat"/>
      <table-filter match-name="skoda"/>
      <table-filter match-name="smart"/>
      <table-filter match-name="subaru"/>
      <table-filter match-name="suzuki"/>
      <table-filter match-name="toyota"/>
      <table-filter match-name="typeEvent"/>
      <table-filter match-name="volkswagen"/>
      <table-filter match-name="volo"/>
      <table-filter match-name="yearn"/>
      <table-filter match-name="zonePlaya"/>
    </hibernate-reverse-engineering>
    Voilà mon application à coeur ouvert si vous voyez quelques choses d'anormale merci de m'aviser..

    Bonne nuit chez vous... et bonjour de mexico

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

Discussions similaires

  1. Réponses: 1
    Dernier message: 14/05/2014, 17h27
  2. Problème de connection SQL après déploiement sur IIS
    Par Beaveroli dans le forum Général Dotnet
    Réponses: 7
    Dernier message: 24/05/2007, 10h12
  3. Pb action servlet après déploiement sur Tomcat
    Par lebechen dans le forum Tomcat et TomEE
    Réponses: 2
    Dernier message: 12/10/2006, 14h09
  4. Réponses: 3
    Dernier message: 14/04/2006, 09h32
  5. Configurer une base Access sur serveur ?
    Par nerick dans le forum Access
    Réponses: 5
    Dernier message: 29/10/2005, 12h21

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