probleme de persistance avec jboss

probleme de persistance avec jboss - Java - Programmation

Marsh Posté le 09-01-2008 à 17:40:33    

Bonjour
Je viens de faire un projet ejb3+ web avecd jboss mais j'ai un probleme de maping voici l'erreur du serveur jboss
Incomplete Deployment listing:
 
--- MBeans waiting for other MBeans ---
ObjectName: persistence.units:jar=ProjetABCEJB.jar,unitName=mysql
  State: NOTYETINSTALLED
  I Depend On:
    jboss.jca:name=ProjetABCDS,service=DataSourceBinding
 
ObjectName: jboss.j2ee:jar=ProjetABCEJB.jar,name=EleveManagerBean,service=EJB3
  State: NOTYETINSTALLED
  I Depend On:
    persistence.units:unitName=projetABCUnit
 
ObjectName: jboss.j2ee:jar=ProjetABCEJB.jar,name=EnseignantManagerBean,service=EJB3
  State: NOTYETINSTALLED
  I Depend On:
    persistence.units:unitName=projetABCUnit
 
ObjectName: jboss.j2ee:jar=ProjetABCEJB.jar,name=MatieresManagerBean,service=EJB3
  State: NOTYETINSTALLED
  I Depend On:
    persistence.units:unitName=projetABCUnit
 
ObjectName: jboss.j2ee:jar=ProjetABCEJB.jar,name=NotesManagerBean,service=EJB3
  State: NOTYETINSTALLED
  I Depend On:
    persistence.units:unitName=projetABCUnit
 
--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: persistence.units:unitName=projetABCUnit
  State: NOTYETINSTALLED
  Depends On Me:
    jboss.j2ee:jar=ProjetABCEJB.jar,name=EleveManagerBean,service=EJB3
    jboss.j2ee:jar=ProjetABCEJB.jar,name=EnseignantManagerBean,service=EJB3
    jboss.j2ee:jar=ProjetABCEJB.jar,name=MatieresManagerBean,service=EJB3
    jboss.j2ee:jar=ProjetABCEJB.jar,name=NotesManagerBean,service=EJB3
 
ObjectName: jboss.jca:name=ProjetABCDS,service=DataSourceBinding
  State: NOTYETINSTALLED
  Depends On Me:
    persistence.units:jar=ProjetABCEJB.jar,unitName=mysql

et mon fichier persistance dans meta-inf
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence">
   <persistence-unit name="mysql" transaction-type="RESOURCE_LOCAL">
    <jta-data-source>java:ProjetABCDS</jta-data-source>
    <provider>org.hibernate.ejb.HibernatePersistence</provider>
    <properties>
           <property name="hibernate.hbm2ddl.auto" value="create"/>
           <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect"/>
           <property name="hibernate.show_sql" value="false"/>
           <property name="hibernate.connection.url" value="jdbc:mysql://localhost/ejb3"/>
           <property name="hibernate.connection.driver_class" value="com.mysql.jdbc.Driver"/>
           <property name="hibernate.connection.username" value="root"/>
           <property name="hibernate.connection.password" value=""/>
    </properties>
</persistence-unit>
</persistence>

Si quelqu'un a une idéee du probléme merci de me le soumettre

Reply

Marsh Posté le 09-01-2008 à 17:40:33   

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed