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
Partager