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

Logging Java Discussion :

message d'erreur <The module has not been deployed>


Sujet :

Logging Java

  1. #1
    Membre du Club
    Homme Profil pro
    Inscrit en
    Novembre 2009
    Messages
    74
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations forums :
    Inscription : Novembre 2009
    Messages : 74
    Points : 59
    Points
    59
    Par défaut message d'erreur <The module has not been deployed>
    Bonjour tout le monde, j'ai développé un web service sous netbeans 6.9.1 avec une base de données sous derby. Mais à l'éxecution j'ai le message d'erreur suivant:
    /home/toto/NetBeansProjects/TP4_PIZZA/nbproject/build-impl.xml:268: The module has not been deployed.
    BUILD FAILED (total time: 2 seconds)
    Alors que j'ai bien créer la connection pool. J'attends impatiemment vos réactions et merci d'avance

  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
    si tu postait le log de ton serveur, on aurait peut être une vague idée du problème

  3. #3
    Membre du Club
    Homme Profil pro
    Inscrit en
    Novembre 2009
    Messages
    74
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations forums :
    Inscription : Novembre 2009
    Messages : 74
    Points : 59
    Points
    59
    Par défaut le log du serveur
    Voici le log du serveur glasshfish.
    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
    GRAVE: Exception while preparing the app
    org.glassfish.deployment.common.DeploymentException: Exception [EclipseLink-28018] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.EntityManagerSetupException
    Exception Description: Predeployment of PersistenceUnit [TP4_PIZZA-ejbPU] failed.
    Internal Exception: Exception [EclipseLink-7154] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.ValidationException
    Exception Description: The attribute [stockCollection] in entity class [class EntityPizza.Pizza] has a mappedBy value of [pizza] which does not exist in its owning entity class [class EntityPizza.Stock]. If the owning entity class is a @MappedSuperclass, this is invalid, and your attribute should reference the correct subclass.
            at org.glassfish.javaee.full.deployment.EarDeployer.prepare(EarDeployer.java:148)
            at com.sun.enterprise.v3.server.ApplicationLifecycle.prepareModule(ApplicationLifecycle.java:644)
            at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:296)
            at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:183)
            at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:272)
            at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:305)
            at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:320)
            at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1176)
            at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$900(CommandRunnerImpl.java:83)
            at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1235)
            at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1224)
            at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:365)
            at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:204)
            at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:166)
            at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:100)
            at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:245)
            at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791)
            at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)
            at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
            at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170)
            at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
            at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
            at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
            at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
            at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
            at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
            at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
            at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330)
            at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
            at java.lang.Thread.run(Thread.java:619)
    Caused by: javax.persistence.PersistenceException: Exception [EclipseLink-28018] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.EntityManagerSetupException
    Exception Description: Predeployment of PersistenceUnit [TP4_PIZZA-ejbPU] failed.
    Internal Exception: Exception [EclipseLink-7154] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.ValidationException
    Exception Description: The attribute [stockCollection] in entity class [class EntityPizza.Pizza] has a mappedBy value of [pizza] which does not exist in its owning entity class [class EntityPizza.Stock]. If the owning entity class is a @MappedSuperclass, this is invalid, and your attribute should reference the correct subclass.
            at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:991)
            at org.eclipse.persistence.jpa.PersistenceProvider.createContainerEntityManagerFactory(PersistenceProvider.java:202)
            at org.glassfish.persistence.jpa.PersistenceUnitLoader.loadPU(PersistenceUnitLoader.java:181)
            at org.glassfish.persistence.jpa.PersistenceUnitLoader.<init>(PersistenceUnitLoader.java:96)
            at org.glassfish.persistence.jpa.JPADeployer.prepare(JPADeployer.java:121)
            at com.sun.enterprise.v3.server.ApplicationLifecycle.prepareModule(ApplicationLifecycle.java:644)
            at org.glassfish.javaee.full.deployment.EarDeployer.prepareBundle(EarDeployer.java:269)
            at org.glassfish.javaee.full.deployment.EarDeployer.access$200(EarDeployer.java:79)
            at org.glassfish.javaee.full.deployment.EarDeployer$1.doBundle(EarDeployer.java:131)
            at org.glassfish.javaee.full.deployment.EarDeployer$1.doBundle(EarDeployer.java:129)
            at org.glassfish.javaee.full.deployment.EarDeployer.doOnBundles(EarDeployer.java:197)
            at org.glassfish.javaee.full.deployment.EarDeployer.doOnAllTypedBundles(EarDeployer.java:206)
            at org.glassfish.javaee.full.deployment.EarDeployer.doOnAllBundles(EarDeployer.java:232)
            at org.glassfish.javaee.full.deployment.EarDeployer.prepare(EarDeployer.java:129)
            ... 29 more
    Caused by: Exception [EclipseLink-28018] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.EntityManagerSetupException
    Exception Description: Predeployment of PersistenceUnit [TP4_PIZZA-ejbPU] failed.
    Internal Exception: Exception [EclipseLink-7154] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.ValidationException
    Exception Description: The attribute [stockCollection] in entity class [class EntityPizza.Pizza] has a mappedBy value of [pizza] which does not exist in its owning entity class [class EntityPizza.Stock]. If the owning entity class is a @MappedSuperclass, this is invalid, and your attribute should reference the correct subclass.
            at org.eclipse.persistence.exceptions.EntityManagerSetupException.predeployFailed(EntityManagerSetupException.java:210)
            ... 43 more
    Caused by: Exception [EclipseLink-7154] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.ValidationException
    Exception Description: The attribute [stockCollection] in entity class [class EntityPizza.Pizza] has a mappedBy value of [pizza] which does not exist in its owning entity class [class EntityPizza.Stock]. If the owning entity class is a @MappedSuperclass, this is invalid, and your attribute should reference the correct subclass.
            at org.eclipse.persistence.exceptions.ValidationException.noMappedByAttributeFound(ValidationException.java:1313)
            at org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.RelationshipAccessor.getOwningMapping(RelationshipAccessor.java:298)
            at org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.OneToManyAccessor.processOneToManyMapping(OneToManyAccessor.java:168)
            at org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.OneToManyAccessor.process(OneToManyAccessor.java:111)
            at org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.RelationshipAccessor.processRelationship(RelationshipAccessor.java:546)
            at org.eclipse.persistence.internal.jpa.metadata.MetadataProject.processRelationshipAccessors(MetadataProject.java:1085)
            at org.eclipse.persistence.internal.jpa.metadata.MetadataProject.processStage3(MetadataProject.java:1364)
            at org.eclipse.persistence.internal.jpa.metadata.MetadataProcessor.processORMMetadata(MetadataProcessor.java:462)
            at org.eclipse.persistence.internal.jpa.deployment.PersistenceUnitProcessor.processORMetadata(PersistenceUnitProcessor.java:390)
            at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:945)
            ... 42 more

  4. #4
    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
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    The attribute [stockCollection] in entity class [class EntityPizza.Pizza] has a mappedBy value of [pizza] which does not exist in its owning entity class [class EntityPizza.Stock]. If the owning entity class is a @MappedSuperclass, this is invalid, and your attribute should reference the correct subclass.
    en gros tu a une collection
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    public class  EntityPizza.Pizza{
           //.....
          @mapped-by(name='pizza')
          public Collection<EntityPizza.Stock> getStockCollection (){//.....
    }
    Hors EntityPizza.Stock n'a pas cet attribut pizza que tu pointe dans l'annotation.
    Ce qui empeche hibernate de démarrer. Il faut corriger ton mapping. Soit l'attribut pizza manque, soit le @mapped-by n'a rien à faire là.

  5. #5
    Membre du Club
    Homme Profil pro
    Inscrit en
    Novembre 2009
    Messages
    74
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations forums :
    Inscription : Novembre 2009
    Messages : 74
    Points : 59
    Points
    59
    Par défaut resolu
    Merci de votre réponse.
    effectivement il y avait un problème de mapping, Au lieu de pizza je devais mettre pizzaId et la correspondance est parfaite.

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

Discussions similaires

  1. message-derreur-the-module-has-not-been-deployed
    Par omzoway7 dans le forum NetBeans
    Réponses: 1
    Dernier message: 15/04/2013, 14h58
  2. message d'erreur: the module has not been deployed
    Par omzoway7 dans le forum Général Java
    Réponses: 0
    Dernier message: 07/04/2013, 18h18
  3. Erreur : The module has not been deployed
    Par akharraz dans le forum Services Web
    Réponses: 0
    Dernier message: 09/08/2011, 16h42
  4. erreur "the module has not been deployed"
    Par sarra123 dans le forum Glassfish et Payara
    Réponses: 1
    Dernier message: 16/05/2011, 12h47
  5. message d'erreur <The module has not been deployed>
    Par dev_2007 dans le forum Tomcat et TomEE
    Réponses: 0
    Dernier message: 10/11/2010, 21h49

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