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

Wildfly/JBoss Java Discussion :

erreur spring en lancant Jboss


Sujet :

Wildfly/JBoss Java

  1. #1
    Membre à l'essai
    Inscrit en
    Octobre 2007
    Messages
    26
    Détails du profil
    Informations forums :
    Inscription : Octobre 2007
    Messages : 26
    Points : 22
    Points
    22
    Par défaut erreur spring en lancant Jboss
    Bonjour,

    Je viens de me lancer dans une nouvelle architecture Jboss, hibernate, spring, struts, mysql(pour les tests) le tout avec eclipse.

    Je me trouve confronté à une erreur lors du lancement de jboss sous eclipse:


    9:53:05,365 INFO [EJBContainer] STARTED EJB: be.hello.session.bean.ContactManagerBean ejbName: ContactManagerBean
    09:53:05,397 INFO [EJB3Deployer] Deployed: file:/C:/devtool/jboss-4.2.1.GA/server/default/deploy/HelloEJB.jar
    09:53:06,943 INFO [TomcatDeployer] deploy, ctxPath=/Contact, warUrl=.../tmp/deploy/tmp56890Contact-exp.war/
    09:53:07,084 ERROR [STDERR] log4j:ERROR A "org.jboss.logging.appender.FileAppender" object is not assignable to a "org.apache.log4j.Appender" variable.
    09:53:07,084 ERROR [STDERR] log4j:ERROR The class "org.apache.log4j.Appender" was loaded by
    09:53:07,084 ERROR [STDERR] log4j:ERROR [WebappClassLoader
    delegate: false
    repositories:
    /WEB-INF/classes/
    ----------> Parent Classloader:
    java.net.FactoryURLClassLoader@280bca
    ] whereas object of type
    09:53:07,084 ERROR [STDERR] log4j:ERROR "org.jboss.logging.appender.FileAppender" was loaded by [org.jboss.system.server.NoAnnotationURLClassLoader@18a7efd].
    09:53:07,084 ERROR [STDERR] log4j:ERROR Could not instantiate appender named "FILE".
    09:53:07,287 INFO [STDOUT] 09:53:07,287 ERROR [[/Contact]] Exception lors de l'envoi de l'évènement contexte initialisé (context initialized) à l'instance de classe d'écoute (listener) org.springframework.web.context.ContextLoaderListener
    org.apache.commons.logging.LogConfigurationException: User-specified log class 'org.apache.commons.logging.impl.Log4JLogger' cannot be found or is not useable.
    at org.apache.commons.logging.impl.LogFactoryImpl.discoverLogImplementation(LogFactoryImpl.java:798)
    at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:601).......

    Est-ce que j'ai pas importé la bonne librairie sous eclipse ou pas la bonne lib dans jboss?
    pourtant j'ai meme rajouté le jar log4j au lib.

    Si quelqu'un a une idée, elle sera la bienvenue!

    merci
    j'ai joint l'arborescence Eclipse pour vous donner une idée des lib eclipse
    Images attachées Images attachées  

  2. #2
    Membre à l'essai
    Inscrit en
    Octobre 2007
    Messages
    26
    Détails du profil
    Informations forums :
    Inscription : Octobre 2007
    Messages : 26
    Points : 22
    Points
    22
    Par défaut trouvé en chipotant
    J'ai trouvé comment faire , au fait j'avais un fichier EAR dans le deploy de jboss.

    Le problème c'est que j'ai une autre erreur qui survient.

    13:40:41,527 INFO [Version] Hibernate Annotations 3.2.1.GA
    13:40:41,559 INFO [Environment] Hibernate 3.2.4.sp1
    13:40:41,559 INFO [Environment] hibernate.properties not found
    13:40:41,559 INFO [Environment] Bytecode provider name : javassist
    13:40:41,574 INFO [Environment] using JDK 1.4 java.sql.Timestamp handling
    13:40:41,730 INFO [Version] Hibernate EntityManager 3.3.1.GA
    13:40:42,168 INFO [Ejb3Configuration] found EJB3 Entity bean: be.model.Person
    13:40:42,293 INFO [AnnotationBinder] Binding entity from annotated class: be.model.Person
    13:40:42,371 INFO [EntityBinder] Bind entity be.model.Person on table Person
    13:40:42,496 INFO [DefaultListableBeanFactory] Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@7d8bb: defining beans [org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor,personService,entityManagerFactory,dataSource,transactionManager,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.transaction.interceptor.TransactionAttributeSourceAdvisor,personAction]; root of factory hierarchy
    13:40:42,496 ERROR [ContextLoader] Context initialization failed
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.interceptor.TransactionAttributeSourceAdvisor': Cannot create inner bean '(inner bean)' of type [org.springframework.transaction.interceptor.TransactionInterceptor] while setting bean property 'transactionInterceptor'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Cannot resolve reference to bean 'transactionManager' while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Cannot resolve reference to bean 'entityManagerFactory' while setting bean property 'entityManagerFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.hibernate.cfg.AnnotationConfiguration.getReflectionManager()Lorg/hibernate/annotations/common/reflection/ReflectionManager;
    Caused by:
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.interceptor.TransactionAttributeSourceAdvisor': Cannot create inner bean '(inner bean)' of type [org.springframework.transaction.interceptor.TransactionInterceptor] while setting bean property 'transactionInterceptor'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Cannot resolve reference to bean 'transactionManager' while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Cannot resolve reference to bean 'entityManagerFactory' while setting bean property 'entityManagerFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.hibernate.cfg.AnnotationConfiguration.getReflectionManager()Lorg/hibernate/annotations/common/reflection/ReflectionManager;
    Caused by:
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Cannot resolve reference to bean 'transactionManager' while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Cannot resolve reference to bean 'entityManagerFactory' while setting bean property 'entityManagerFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.hibernate.cfg.AnnotationConfiguration.getReflectionManager()Lorg/hibernate/annotations/common/reflection/ReflectionManager;
    Caused by:
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Cannot resolve reference to bean 'entityManagerFactory' while setting bean property 'entityManagerFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.hibernate.cfg.AnnotationConfiguration.getReflectionManager()Lorg/hibernate/annotations/common/reflection/ReflectionManager;
    Caused by:
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.hibernate.cfg.AnnotationConfiguration.getReflectionManager()Lorg/hibernate/annotations/common/reflection/ReflectionManager;
    Caused by:
    java.lang.NoSuchMethodError: org.hibernate.cfg.AnnotationConfiguration.getReflectionManager()Lorg/hibernate/annotations/common/reflection/ReflectionManager;
    at org.hibernate.ejb.EventListenerConfigurator.configure(EventListenerConfigurator.java:152)
    at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:888)
    at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:416)
    at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:126)
    at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:218)
    at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:251)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1198)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1167)





    Je me demande si c'est pas mon jdk 1.6 qui fait planter hibernate
    Ou si un package version n'est pas bon.


    Si qqun a une idée, moi je trouve pas... bien galère

Discussions similaires

  1. Erreur de démarrage de JBoss Embedded Alpha 3
    Par yashiro dans le forum Wildfly/JBoss
    Réponses: 0
    Dernier message: 24/11/2009, 15h54
  2. [Web Services] Spring-WS et JBoss
    Par rozwel dans le forum Spring
    Réponses: 3
    Dernier message: 23/04/2009, 15h04
  3. Erreur au démarrage de jboss 5.0.1
    Par Tsimplice dans le forum Wildfly/JBoss
    Réponses: 0
    Dernier message: 13/03/2009, 19h24
  4. [Data] integration spring jpa toplink jboss
    Par jpclavery dans le forum Spring
    Réponses: 1
    Dernier message: 23/04/2008, 11h41
  5. erreur lors deployement sous jboss?
    Par chakala dans le forum Wildfly/JBoss
    Réponses: 16
    Dernier message: 13/03/2007, 15h04

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