Probleme JBOSS
hanachaabani
Messages postés
51
Date d'inscription
Statut
Membre
Dernière intervention
-
KX Messages postés 16761 Date d'inscription Statut Modérateur Dernière intervention -
KX Messages postés 16761 Date d'inscription Statut Modérateur Dernière intervention -
salut
svp lorsque j'essaye de demarrer JBOSS un erreur s'affiche disant que mon fichier persistance fonctionne mal ...
voila l'erreur
23:45:48,358 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-6) MSC00001: Failed to start service jboss.persistenceunit."Gestion-Hotel.jar#UP_GestionHotel": org.jboss.msc.service.StartException in service jboss.persistenceunit."Gestion-Hotel.jar#UP_GestionHotel": Failed to start service
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1780) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [:1.7.0_79]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [:1.7.0_79]
at java.lang.Thread.run(Thread.java:745) [:1.7.0_79]
Caused by: javax.persistence.PersistenceException: [PersistenceUnit: UP_GestionHotel] Unable to build EntityManagerFactory
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:908)
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:884)
at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:73)
at org.jboss.as.jpa.service.PersistenceUnitService.createContainerEntityManagerFactory(PersistenceUnitService.java:143)
at org.jboss.as.jpa.service.PersistenceUnitService.start(PersistenceUnitService.java:77)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
... 3 more
Caused by: org.hibernate.AnnotationException: Unknown mappedBy in: metier.Compte.CT, referenced property unknown: metier.Client.C
at org.hibernate.cfg.OneToOneSecondPass.doSecondPass(OneToOneSecondPass.java:157)
at org.hibernate.cfg.Configuration.originalSecondPassCompile(Configuration.java:1573)
at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1346)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1711)
at org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:76)
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:899)
... 9 more
23:45:48,365 INFO [org.jboss.as.server.controller] (DeploymentScanner-threads - 1) Deployment of "Gestion-Hotel.jar" was rolled back with failure message {"Failed services" => {"jboss.persistenceunit.\"Gestion-Hotel.jar#UP_GestionHotel\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"Gestion-Hotel.jar#UP_GestionHotel\": Failed to start service"}}
23:45:48,369 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2) Stopped deployment Gestion-Hotel.jar in 6ms
23:45:48,371 ERROR [org.jboss.as.deployment] (DeploymentScanner-threads - 2) {"Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"Failed services" => {"jboss.persistenceunit.\"Gestion-Hotel.jar#UP_GestionHotel\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"Gestion-Hotel.jar#UP_GestionHotel\": Failed to start service"}}}}
23:45:53,405 INFO [org.jboss.as.server.deployment] (MSC service thread 1-4) Starting deployment of "Gestion-Hotel.jar"
23:45:53,413 INFO [org.jboss.jpa] (MSC service thread 1-1) read persistence.xml for UP_GestionHotel
23:45:53,414 INFO [org.jboss.as.jpa] (MSC service thread 1-5) added javax.persistence.api, javaee.api, org.jboss.as.jpa, org.javassist dependencies to Gestion-Hotel.jar
23:45:53,414 INFO [org.jboss.as.jpa] (MSC service thread 1-5) added (default provider) org.hibernate dependency to application deployment (since 1 PU(s) didn't specify jboss.as.jpa.providerModule)
23:45:53,414 INFO [org.jboss.as.jpa] (MSC service thread 1-5) added org.hibernate dependency to application deployment
23:45:53,422 INFO [org.jboss.jpa] (MSC service thread 1-5) starting Persistence Unit Service 'Gestion-Hotel.jar#UP_GestionHotel'
23:45:53,423 INFO [org.hibernate.ejb.Ejb3Configuration] (MSC service thread 1-5) HHH00204:Processing PersistenceUnitInfo [
name: UP_GestionHotel
...]
23:45:53,438 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-5) MSC00001: Failed to start service jboss.persistenceunit."Gestion-Hotel.jar#UP_GestionHotel": org.jboss.msc.service.StartException in service jboss.persistenceunit."Gestion-Hotel.jar#UP_GestionHotel": Failed to start service
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1780)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [:1.7.0_79]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [:1.7.0_79]
at java.lang.Thread.run(Thread.java:745) [:1.7.0_79]
Caused by: javax.persistence.PersistenceException: [PersistenceUnit: UP_GestionHotel] Unable to build EntityManagerFactory
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:908)
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:884)
at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:73)
at org.jboss.as.jpa.service.PersistenceUnitService.createContainerEntityManagerFactory(PersistenceUnitService.java:143)
at org.jboss.as.jpa.service.PersistenceUnitService.start(PersistenceUnitService.java:77)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759)
... 3 more
Caused by: org.hibernate.AnnotationException: mappedBy reference an unknown target entity property: metier.Reservation.Client in metier.Client.reservation
at org.hibernate.cfg.annotations.CollectionBinder.bindStarToManySecondPass(CollectionBinder.java:665)
at org.hibernate.cfg.annotations.CollectionBinder$1.secondPass(CollectionBinder.java:625)
at org.hibernate.cfg.CollectionSecondPass.doSecondPass(CollectionSecondPass.java:65)
at org.hibernate.cfg.Configuration.originalSecondPassCompile(Configuration.java:1573)
at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1346)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1711)
at org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:76)
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:899)
... 9 more
23:45:53,440 INFO [org.jboss.as.server.controller] (DeploymentScanner-threads - 1) Deployment of "Gestion-Hotel.jar" was rolled back with failure message {"Failed services" => {"jboss.persistenceunit.\"Gestion-Hotel.jar#UP_GestionHotel\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"Gestion-Hotel.jar#UP_GestionHotel\": Failed to start service"}}
23:45:53,443 INFO [org.jboss.as.server.deployment] (MSC service thread 1-3) Stopped deployment Gestion-Hotel.jar in 2ms
23:45:53,444 ERROR [org.jboss.as.deployment] (DeploymentScanner-threads - 2) {"Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"Failed services" => {"jboss.persistenceunit.\"Gestion-Hotel.jar#UP_GestionHotel\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"Gestion-Hotel.jar#UP_GestionHotel\": Failed to start service"}}}}
qui a une idée sur ça svp
et merci d'avance
svp lorsque j'essaye de demarrer JBOSS un erreur s'affiche disant que mon fichier persistance fonctionne mal ...
voila l'erreur
23:45:48,358 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-6) MSC00001: Failed to start service jboss.persistenceunit."Gestion-Hotel.jar#UP_GestionHotel": org.jboss.msc.service.StartException in service jboss.persistenceunit."Gestion-Hotel.jar#UP_GestionHotel": Failed to start service
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1780) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [:1.7.0_79]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [:1.7.0_79]
at java.lang.Thread.run(Thread.java:745) [:1.7.0_79]
Caused by: javax.persistence.PersistenceException: [PersistenceUnit: UP_GestionHotel] Unable to build EntityManagerFactory
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:908)
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:884)
at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:73)
at org.jboss.as.jpa.service.PersistenceUnitService.createContainerEntityManagerFactory(PersistenceUnitService.java:143)
at org.jboss.as.jpa.service.PersistenceUnitService.start(PersistenceUnitService.java:77)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
... 3 more
Caused by: org.hibernate.AnnotationException: Unknown mappedBy in: metier.Compte.CT, referenced property unknown: metier.Client.C
at org.hibernate.cfg.OneToOneSecondPass.doSecondPass(OneToOneSecondPass.java:157)
at org.hibernate.cfg.Configuration.originalSecondPassCompile(Configuration.java:1573)
at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1346)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1711)
at org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:76)
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:899)
... 9 more
23:45:48,365 INFO [org.jboss.as.server.controller] (DeploymentScanner-threads - 1) Deployment of "Gestion-Hotel.jar" was rolled back with failure message {"Failed services" => {"jboss.persistenceunit.\"Gestion-Hotel.jar#UP_GestionHotel\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"Gestion-Hotel.jar#UP_GestionHotel\": Failed to start service"}}
23:45:48,369 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2) Stopped deployment Gestion-Hotel.jar in 6ms
23:45:48,371 ERROR [org.jboss.as.deployment] (DeploymentScanner-threads - 2) {"Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"Failed services" => {"jboss.persistenceunit.\"Gestion-Hotel.jar#UP_GestionHotel\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"Gestion-Hotel.jar#UP_GestionHotel\": Failed to start service"}}}}
23:45:53,405 INFO [org.jboss.as.server.deployment] (MSC service thread 1-4) Starting deployment of "Gestion-Hotel.jar"
23:45:53,413 INFO [org.jboss.jpa] (MSC service thread 1-1) read persistence.xml for UP_GestionHotel
23:45:53,414 INFO [org.jboss.as.jpa] (MSC service thread 1-5) added javax.persistence.api, javaee.api, org.jboss.as.jpa, org.javassist dependencies to Gestion-Hotel.jar
23:45:53,414 INFO [org.jboss.as.jpa] (MSC service thread 1-5) added (default provider) org.hibernate dependency to application deployment (since 1 PU(s) didn't specify jboss.as.jpa.providerModule)
23:45:53,414 INFO [org.jboss.as.jpa] (MSC service thread 1-5) added org.hibernate dependency to application deployment
23:45:53,422 INFO [org.jboss.jpa] (MSC service thread 1-5) starting Persistence Unit Service 'Gestion-Hotel.jar#UP_GestionHotel'
23:45:53,423 INFO [org.hibernate.ejb.Ejb3Configuration] (MSC service thread 1-5) HHH00204:Processing PersistenceUnitInfo [
name: UP_GestionHotel
...]
23:45:53,438 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-5) MSC00001: Failed to start service jboss.persistenceunit."Gestion-Hotel.jar#UP_GestionHotel": org.jboss.msc.service.StartException in service jboss.persistenceunit."Gestion-Hotel.jar#UP_GestionHotel": Failed to start service
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1780)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [:1.7.0_79]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [:1.7.0_79]
at java.lang.Thread.run(Thread.java:745) [:1.7.0_79]
Caused by: javax.persistence.PersistenceException: [PersistenceUnit: UP_GestionHotel] Unable to build EntityManagerFactory
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:908)
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:884)
at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:73)
at org.jboss.as.jpa.service.PersistenceUnitService.createContainerEntityManagerFactory(PersistenceUnitService.java:143)
at org.jboss.as.jpa.service.PersistenceUnitService.start(PersistenceUnitService.java:77)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759)
... 3 more
Caused by: org.hibernate.AnnotationException: mappedBy reference an unknown target entity property: metier.Reservation.Client in metier.Client.reservation
at org.hibernate.cfg.annotations.CollectionBinder.bindStarToManySecondPass(CollectionBinder.java:665)
at org.hibernate.cfg.annotations.CollectionBinder$1.secondPass(CollectionBinder.java:625)
at org.hibernate.cfg.CollectionSecondPass.doSecondPass(CollectionSecondPass.java:65)
at org.hibernate.cfg.Configuration.originalSecondPassCompile(Configuration.java:1573)
at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1346)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1711)
at org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:76)
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:899)
... 9 more
23:45:53,440 INFO [org.jboss.as.server.controller] (DeploymentScanner-threads - 1) Deployment of "Gestion-Hotel.jar" was rolled back with failure message {"Failed services" => {"jboss.persistenceunit.\"Gestion-Hotel.jar#UP_GestionHotel\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"Gestion-Hotel.jar#UP_GestionHotel\": Failed to start service"}}
23:45:53,443 INFO [org.jboss.as.server.deployment] (MSC service thread 1-3) Stopped deployment Gestion-Hotel.jar in 2ms
23:45:53,444 ERROR [org.jboss.as.deployment] (DeploymentScanner-threads - 2) {"Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"Failed services" => {"jboss.persistenceunit.\"Gestion-Hotel.jar#UP_GestionHotel\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"Gestion-Hotel.jar#UP_GestionHotel\": Failed to start service"}}}}
qui a une idée sur ça svp
et merci d'avance
A voir également:
- Probleme JBOSS
- Jboss - Télécharger - Divers Web & Internet
1 réponse
Bonjour,
Un des points importants de l'apprentissage du Java c'est savoir lire une exception, surtout sur un serveur comme ici.
Je résume :
Failed to start service jboss.persistenceunit."Gestion-Hotel.jar#UP_GestionHotel":
Caused by: org.hibernate.AnnotationException: mappedBy reference an unknown target entity property: metier.Reservation.Client in metier.Client.reservation
Après bien sûr ça dépend de ton code...
Un des points importants de l'apprentissage du Java c'est savoir lire une exception, surtout sur un serveur comme ici.
Je résume :
Failed to start service jboss.persistenceunit."Gestion-Hotel.jar#UP_GestionHotel":
Caused by: org.hibernate.AnnotationException: mappedBy reference an unknown target entity property: metier.Reservation.Client in metier.Client.reservation
Après bien sûr ça dépend de ton code...