Hi! Found it! The way you comment out is not correct. So the Logger is seen twice. Use <!-- -- MLET CODE = "org.jboss.logging.Logger" ARCHIVE="jboss.jar" CODEBASE="../../lib/ext/"> -- /MLET> --> to comment jboss.conf. Vincent. > -----Message d'origine----- > De : [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]De la part de elouan > Envoye : mardi 6 mars 2001 9:59 > A : JBoss-User > Objet : [Fwd: Re: [jBoss-User] log4j & jboss-embeddedTomcat] > > > Vincent Harcq wrote: > > > Well by re-looking at the error and the code of Logger.java, > it seems you > > have 2 instances of org.jboss.logging.Logger in jboss.conf. > > > > Could it be that? > > > > Vincent. > > Well it is not the case, > as it was stated in the direction i did comments the previous log stuff, > and add the new comment log stuff. > > More ideas ? > Regards, > Elouan. > > here is my jboss.conf just in case: > <MLET CODE = "org.jboss.logging.Logger" ARCHIVE="jboss.jar" > CODEBASE="../../lib/ext/"> > </MLET> > <MLET CODE = "org.jboss.util.ClassPathExtension" ARCHIVE="jboss.jar" > CODEBASE="../../lib/ext/"> > <ARG TYPE="java.lang.String" VALUE="../../lib/ext/log4j.jar"> > </MLET> > <MLET CODE = "org.jboss.contrib.log4j.Log4jService" ARCHIVE="elog4j.jar" > CODEBASE="../../lib/ext/"> > <ARG TYPE="java.lang.String" VALUE="../conf/default/log4j.properties"> > </MLET> > > <!-- > <MLET CODE = "org.jboss.logging.Logger" ARCHIVE="jboss.jar" > CODEBASE="../../lib/ext/"> > </MLET> > > > <MLET CODE = "org.jboss.logging.ConsoleLogging" ARCHIVE="jboss.jar" > CODEBASE="../../lib/ext/"> > <ARG TYPE="java.lang.String" VALUE="Information,Warning,Error"> > <ARG TYPE="java.lang.String" VALUE="[{2}] {4}"> > </MLET> > --> > > <MLET CODE = "org.jboss.util.Info" ARCHIVE="jboss.jar" > CODEBASE="../../lib/ext/"> > </MLET> > > <MLET CODE = "org.jboss.util.ClassPathExtension" ARCHIVE="jboss.jar" > CODEBASE="../../lib/ext/"> > <ARG TYPE="java.lang.String" VALUE="../../log/"> > </MLET> > > <!-- > <MLET CODE = "org.jboss.logging.FileLogging" ARCHIVE="jboss.jar" > CODEBASE="../../lib/ext/"> > <ARG TYPE="java.lang.String" VALUE="Information,Debug,Warning,Error"> > <ARG TYPE="java.lang.String" VALUE="[{2}] {4}"> > </MLET> > --> > <MLET CODE = "org.jboss.util.ClassPathExtension" ARCHIVE="jboss.jar" > CODEBASE="../../lib/ext/"> > <ARG TYPE="java.lang.String" VALUE="../../tmp/"> > </MLET> > > <MLET CODE = "org.jboss.util.ClassPathExtension" ARCHIVE="jboss.jar" > CODEBASE="../../lib/ext/"> > <ARG TYPE="java.lang.String" VALUE="../../db/"> > </MLET> > > <MLET CODE = "org.jboss.util.ClassPathExtension" ARCHIVE="jboss.jar" > CODEBASE="../../lib/ext/"> > <ARG TYPE="java.lang.String" VALUE="./"> > </MLET> > > <MLET CODE = "org.jboss.util.ClassPathExtension" ARCHIVE="jboss.jar" > CODEBASE="../../lib/ext/"> > <ARG TYPE="java.lang.String" > VALUE="../../../jakarta-tomcat-3.2.1/lib/"> > <ARG TYPE="java.lang.String" VALUE="Tomcat"> > </MLET> > > <!-- Uncomment to add Jetty classes to classpath (make sure Arg1 ends in > a slash) > -- MLET CODE = "org.jboss.util.ClassPathExtension" > ARCHIVE="jboss.jar" CODEBASE="../../lib/ext/"> > -- ARG TYPE="java.lang.String" VALUE="path to Jetty/lib/ e.g. > /usr/local/Jetty3/lib/"> > -- ARG TYPE="java.lang.String" VALUE="Jetty"> > -- /MLET> > --> > > <MLET CODE = "org.jboss.configuration.ConfigurationService" > ARCHIVE="jboss.jar,../xml.jar" CODEBASE="../../lib/ext/"> > </MLET> > > <MLET CODE = "org.jboss.util.Shutdown" ARCHIVE="jboss.jar" > CODEBASE="../../lib/ext/"> > </MLET> > > <MLET CODE = "org.jboss.util.ServiceControl" ARCHIVE="jboss.jar" > CODEBASE="../../lib/ext/"> > </MLET> > > > > > > -----Message d'origine----- > > De : [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED]]De la part de elouan > > Envoye : vendredi 2 mars 2001 10:35 > > A : JBoss-User > > Objet : Re: [jBoss-User] log4j & jboss-embeddedTomcat > > > > > > Hi, > > well the direction in the contrib module and in > > http://geocities.com/phox_2/ are the same. > > But I believe these direction works with JBoss standalone, not with the > > Embedded Tomcat... > > So i am still without light on that topic. > > > > any ideas ? > > > > Best regards, > > Elouan. > > > > > > > > Vincent Harcq wrote: > > > > > >> Get the module "contrib" from the CVS. > >> There is a LOG4J directory which explain you how to configure JBoss > to use > >> LOG4J instead of the JBoss logger. > >> It is mainly used to log JBoss messages but you can also use > it in your > > > > EJB. > > > >> Vincent. > >> > >> -----Message d'origine----- > >> De : [EMAIL PROTECTED] > >> [mailto:[EMAIL PROTECTED]]De la part de elouan > >> Envoye : jeudi 1 mars 2001 19:28 > >> A : JBoss-User > >> Objet : [jBoss-User] log4j & jboss-embeddedTomcat > >> > >> > >> Hello gurus, > >> > >> I have set up a configuration jboss+embeddedtomcat+cocoon (the last > >> embbeded version as of the 25 february, and cocoon 1.8.2), > and i want to > >> use Log4j with that. > >> > >> I have followed the direction stated in http://geocities.com/phox_2/ > >> ( except i made the change in jboss.conf instead of jboss.jmcl ) > >> but it raise the Exceptions Belows, basicly it states that there is > >> already a service called Log. > >> > >> I have tried to figured out where there is a a service called Log that > >> is definied but i couldn't find it. i had already commented > the one from > >> Jboss (as stated in the previous link). > >> > >> I have notice that there is a log4j.jar already in the path. > Could it be > >> that i made a complete fool of myself trying to install log4j where it > >> is already install as part of Tomcat ? > >> > >> Can someone please give the light in this ? > >> > >> Best Regards, > >> Elouan > >> >> > >> javax.management.InstanceAlreadyExistsException: > DefaultDomain:service=Log > >> at > >> com.sun.management.jmx.RepositorySupport.addMBean(RepositorySupport.j > >> ava:134) > >> at > >> com.sun.management.jmx.MBeanServerImpl.internal_addObject(MBeanServer > >> Impl.java:2352) > >> at > >> com.sun.management.jmx.MBeanServerImpl.createMBean(MBeanServerImpl.ja > >> va:523) > >> at > javax.management.loading.MLet.getMBeansFromURL(MLet.java:523) > >> at > javax.management.loading.MLet.getMBeansFromURL(MLet.java:369) > >> at org.jboss.Main.<init>(Main.java:160) > >> at org.jboss.Main$1.run(Main.java:94) > >> at java.security.AccessController.doPrivileged(Native Method) > >> at org.jboss.Main.main(Main.java:90) > >> > >> > >> > >> -- > >> -------------------------------------------------------------- > >> To subscribe: [EMAIL PROTECTED] > >> To unsubscribe: [EMAIL PROTECTED] > >> > >> > >> > >> > >> -- > >> -------------------------------------------------------------- > >> To subscribe: [EMAIL PROTECTED] > >> To unsubscribe: [EMAIL PROTECTED] > > > > > > > > > > -- > > -------------------------------------------------------------- > > To subscribe: [EMAIL PROTECTED] > > To unsubscribe: [EMAIL PROTECTED] > > > > > > > > > > -- > > -------------------------------------------------------------- > > To subscribe: [EMAIL PROTECTED] > > To unsubscribe: [EMAIL PROTECTED] > > > > > -- > -------------------------------------------------------------- > To subscribe: [EMAIL PROTECTED] > To unsubscribe: [EMAIL PROTECTED] > > -- -------------------------------------------------------------- To subscribe: [EMAIL PROTECTED] To unsubscribe: [EMAIL PROTECTED]
