Re: log4j, JBoss, EJBs

2003-09-17 Thread Stefan Puiu
Thank you for the suggestion, that works indeed, now I can redeploy the app and the tests work. Of course the security issue for which the guard object was created is left open (as far as I understood, now other apps can change my RepositorySelector by using null as the guard), but hey, life is

Re: log4j, JBoss, EJBs

2003-09-16 Thread Stefan Puiu
Jake, thank you for your enlightenment, but what do you mean by "the setting of the LoggerFactory"? The LogManager.setRepositorySelector() method is called only once in my code (which I've largely borrowed from the examples Mark pointed me to btw). My LoggerFactory and RepositorySelector subcla

Re: log4j, JBoss, EJBs

2003-09-16 Thread Ceki Gülcü
Exactly. Once can also set a 'null' guard in the first place. At 10:11 AM 9/16/2003 -0500, Jacob Kjome wrote: At 04:06 PM 9/16/2003 +0300, you wrote: Now, what in the world does "Cause: java.lang.IllegalArgumentException: Attempted to reset the LoggerFactory without possessing the guard." mean? T

Re: log4j, JBoss, EJBs

2003-09-16 Thread Jacob Kjome
At 04:06 PM 9/16/2003 +0300, you wrote: Now, what in the world does "Cause: java.lang.IllegalArgumentException: Attempted to reset the LoggerFactory without possessing the guard." mean? The "guard" is a simple object that protects against re-setting of the LoggerFactory by anyone but the one who

Re: log4j, JBoss, EJBs

2003-09-16 Thread Stefan Puiu
ass and RepositorySelector impl, in there if you choose to use the workaround above. Good luck, Mark -Original Message- From: Stefan Puiu [mailto:[EMAIL PROTECTED] Sent: Monday, September 15, 2003 11:21 AM To: Log4J Users List Subject: Re: log4j, JBoss, EJBs Hello and thank you for the qui

Re: log4j, JBoss, EJBs

2003-09-16 Thread Stefan Puiu
Mark -Original Message- From: Stefan Puiu [mailto:[EMAIL PROTECTED] Sent: Monday, September 15, 2003 12:16 PM To: Log4J Users List Subject: Re: log4j, JBoss, EJBs All static loggers are created in the code, not in the configuration file, as far as I know, I've included a log4j.xml sam

RE: log4j, JBoss, EJBs

2003-09-15 Thread Mark.Priest
&m=106340752929541&w=2. Good luck, Mark -Original Message- From: Stefan Puiu [mailto:[EMAIL PROTECTED] Sent: Monday, September 15, 2003 12:16 PM To: Log4J Users List Subject: Re: log4j, JBoss, EJBs All static loggers are created in the code, not in the configuration file, as

Re: log4j, JBoss, EJBs

2003-09-15 Thread Stefan Puiu
Mark -Original Message- From: Stefan Puiu [mailto:[EMAIL PROTECTED] Sent: Monday, September 15, 2003 11:21 AM To: Log4J Users List Subject: Re: log4j, JBoss, EJBs Hello and thank you for the quick reply, Sorry, I've forgotten to attach my stack trace, here it is now. The error message

RE: log4j, JBoss, EJBs

2003-09-15 Thread Mark.Priest
2003 11:21 AM To: Log4J Users List Subject: Re: log4j, JBoss, EJBs Hello and thank you for the quick reply, Sorry, I've forgotten to attach my stack trace, here it is now. The error message is quite confusing and probably doesn't indicate the source of the problem (the class which all

Re: log4j, JBoss, EJBs

2003-09-15 Thread Stefan Puiu
Hello and thank you for the quick reply, Sorry, I've forgotten to attach my stack trace, here it is now. The error message is quite confusing and probably doesn't indicate the source of the problem (the class which allegedly isn't found exists in the ear file of the application). Yes, JBoss us

RE: log4j, JBoss, EJBs

2003-09-15 Thread Mark.Priest
Stefan, I cannot seem to find your stack trace so I am not sure exactly what the nature of your problem is. I suspect that you have your version of the Logger class in the system classpath of the JBoss app server. That would require you to restart JBoss. If your log classes are deployed with