Re: [Wicket-user] SLF4J and wicket

2007-04-27 Thread Gwyn Evans
On Thursday, April 26, 2007, 8:46:08 PM, Igor [EMAIL PROTECTED] wrote: and this is a problem only for things that are deployed into a SHARED classpath. no body (at least i hope not) is sharing wicket.jar between multiple web applications. so there is no problem. Well, I did have a look at

Re: [Wicket-user] SLF4J and wicket

2007-04-26 Thread Johan Compagner
11:57 AM Please respond to wicket-user@lists.sourceforge.net To wicket-user@lists.sourceforge.net cc Subject Re: [Wicket-user] SLF4J and wicket btw, im using 1.3.0-incubating-SNAPSHOT On 4/25/07, Bjön Limell [EMAIL PROTECTED] wrote: Sure

Re: [Wicket-user] SLF4J and wicket

2007-04-26 Thread Johan Compagner
Subject Re: [Wicket-user] SLF4J and wicket btw, im using 1.3.0-incubating-SNAPSHOT On 4/25/07, Bjön Limell [EMAIL PROTECTED] wrote: Sure! ERROR org.apache.wicket.util.lang.Objects Error serializing object class test.page.SignInPage[object

Re: [Wicket-user] SLF4J and wicket

2007-04-26 Thread Eelco Hillenius
. - Justin *Bjön Limell [EMAIL PROTECTED]* Sent by: [EMAIL PROTECTED] 04/25/2007 11:57 AM Please respond to wicket-user@lists.sourceforge.net To wicket-user@lists.sourceforge.net cc Subject Re: [Wicket-user] SLF4J and wicket

Re: [Wicket-user] SLF4J and wicket

2007-04-26 Thread Johan Compagner
. - Justin *Bjön Limell [EMAIL PROTECTED]* Sent by: [EMAIL PROTECTED] 04/25/2007 11:57 AM Please respond to wicket-user@lists.sourceforge.net To wicket-user@lists.sourceforge.net cc Subject Re: [Wicket-user

Re: [Wicket-user] SLF4J and wicket

2007-04-26 Thread Eelco Hillenius
*Bjön Limell [EMAIL PROTECTED]* Sent by: [EMAIL PROTECTED] 04/25/2007 11:57 AM Please respond to wicket-user@lists.sourceforge.net To wicket-user@lists.sourceforge.net cc Subject Re: [Wicket-user

Re: [Wicket-user] SLF4J and wicket

2007-04-26 Thread Igor Vaynberg
Please respond to wicket-user@lists.sourceforge.net To wicket-user@lists.sourceforge.net cc Subject Re: [Wicket-user] SLF4J and wicket btw, im using 1.3.0-incubating-SNAPSHOT

Re: [Wicket-user] SLF4J and wicket

2007-04-26 Thread Johan Compagner
On 4/26/07, Igor Vaynberg [EMAIL PROTECTED] wrote: why not just make them static? http://wiki.apache.org/jakarta-commons/Logging/StaticLog - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE

Re: [Wicket-user] SLF4J and wicket

2007-04-26 Thread Igor Vaynberg
yeah yeah yeah. and this is a problem only for things that are deployed into a SHARED classpath. no body (at least i hope not) is sharing wicket.jar between multiple web applications. so there is no problem. -igor On 4/26/07, Johan Compagner [EMAIL PROTECTED] wrote: On 4/26/07, Igor

Re: [Wicket-user] SLF4J and wicket

2007-04-26 Thread Eelco Hillenius
why not just make them static? Earlier this thread: (me) I would prefer to either have log fields as static in components... We were just discussing what people could do if they didn't want those loggers as static variables. Personally, I have no problem with them being static. Eelco

Re: [Wicket-user] SLF4J and wicket

2007-04-26 Thread Igor Vaynberg
what they would do is simple they would do the lazylookup you showed, but instead of using a field they would use the metadata store. that way you get a non-static logger, and do not incur a memory footprint hit. -igor On 4/26/07, Eelco Hillenius [EMAIL PROTECTED] wrote: why not just make

Re: [Wicket-user] SLF4J and wicket

2007-04-26 Thread Eelco Hillenius
what they would do is simple they would do the lazylookup you showed, but instead of using a field they would use the metadata store. that way you get a non-static logger, and do not incur a memory footprint hit. The memory foot print would still be there if you use the Component's meta

Re: [Wicket-user] SLF4J and wicket

2007-04-26 Thread Igor Vaynberg
not really. you would remove the logger in ondetach. it isnt a permanent footprint - that is it doesnt take up a slot in all subclasses. -igor On 4/26/07, Eelco Hillenius [EMAIL PROTECTED] wrote: what they would do is simple they would do the lazylookup you showed, but instead of using a

Re: [Wicket-user] SLF4J and wicket

2007-04-26 Thread Johan Compagner
on which class is it then bound? we use private static loggers now so they are really bind to the class. But if you are storing them in the meta data then they are not really bind to the class but more the the resulting class/instance so never Component itself. Don't know if that really matters

Re: [Wicket-user] SLF4J and wicket

2007-04-26 Thread Igor Vaynberg
like i said in my previous response, ditto. for wicket private static is fine. -igor On 4/26/07, Johan Compagner [EMAIL PROTECTED] wrote: on which class is it then bound? we use private static loggers now so they are really bind to the class. But if you are storing them in the meta data then

Re: [Wicket-user] SLF4J and wicket

2007-04-26 Thread Peter Ertl
@lists.sourceforge.net To wicket-user@lists.sourceforge.net cc Subject Re: [Wicket-user] SLF4J and wicket btw, im using 1.3.0-incubating-SNAPSHOT On 4/25/07, Bjön Limell [EMAIL PROTECTED] wrote: Sure! ERROR org.apache.wicket.util.lang.Objects Error serializing object class test.page.SignInPage

Re: [Wicket-user] SLF4J and wicket

2007-04-26 Thread Eelco Hillenius
great, a neat way to make logging even cheaper... instantiate all the time for each and every message :-) It doesn't get instantiated every time. For instance Log4jLoggerFactory creates one instance lazily and then does a map lookup. Of course, it is still more expensive then just referring

Re: [Wicket-user] SLF4J and wicket

2007-04-26 Thread Philip A. Chapman
Unless I am missing something, why not do it like this: private transient Logger logger; private Logger getLogger() { if (logger == null) { logger = LoggerFactory.getLogger(Foo.class); } } public void myMethod() { ... getLogger().debug(Something here); } On Thu,

Re: [Wicket-user] SLF4J and wicket

2007-04-26 Thread Igor Vaynberg
because if we put that into Component for example, all components will have a logger take up a memory slot -igor On 4/26/07, Philip A. Chapman [EMAIL PROTECTED] wrote: Unless I am missing something, why not do it like this: private transient Logger logger; private Logger getLogger() {

[Wicket-user] SLF4J and wicket

2007-04-25 Thread Bjön Limell
Hi. Anyone had success with slf4j and wicket pages? Im getting serializeable exceptions with jcl104-over-slf4j-1.3.1.jar: org.apache.wicket.util.io.WicketSerializeableException: No Serializable constructor found for class org.apache.commons.logging.impl.SLF4JLocationAwareLog At the moment I

Re: [Wicket-user] SLF4J and wicket

2007-04-25 Thread Eelco Hillenius
It might be a bug in our custom serialization. Could you please paste the full stack trace please? Eelco On 4/25/07, Bjön Limell [EMAIL PROTECTED] wrote: Hi. Anyone had success with slf4j and wicket pages? Im getting serializeable exceptions with jcl104-over-slf4j-1.3.1.jar:

Re: [Wicket-user] SLF4J and wicket

2007-04-25 Thread Bjön Limell
Sure! ERROR org.apache.wicket.util.lang.Objects Error serializing object class test.page.SignInPage [object=[Page class = test.page.SignInPage, id = 1, version = 0]] org.apache.wicket.util.io.WicketSerializeableException: No Serializable constructor found for class

Re: [Wicket-user] SLF4J and wicket

2007-04-25 Thread Bjön Limell
btw, im using 1.3.0-incubating-SNAPSHOT On 4/25/07, Bjön Limell [EMAIL PROTECTED] wrote: Sure! ERROR org.apache.wicket.util.lang.Objects Error serializing object class test.page.SignInPage [object=[Page class = test.page.SignInPage, id = 1, version = 0]]

Re: [Wicket-user] SLF4J and wicket

2007-04-25 Thread Eelco Hillenius
Could you try to suggestion in the error message to put: Objects.setObjectStreamFactory(new IObjectStreamFactory.DefaultObjectStreamFactory()) in your Application's init method and see if all works ok then? Meanwhile, I hope Johan notes this error and takes a look. Eelco On 4/25/07, Bjön

Re: [Wicket-user] SLF4J and wicket

2007-04-25 Thread Matej Knopp
Why would you want to serializable a log?! -Matej On 4/25/07, Bjön Limell [EMAIL PROTECTED] wrote: Hi. Anyone had success with slf4j and wicket pages? Im getting serializeable exceptions with jcl104-over-slf4j-1.3.1.jar: org.apache.wicket.util.io.WicketSerializeableException: No

Re: [Wicket-user] SLF4J and wicket

2007-04-25 Thread Martijn Dashorst
On 4/25/07, Matej Knopp [EMAIL PROTECTED] wrote: Why would you want to serializable a log?! Isn't the recommendation of one of the logging guru's to not make the loggers static, but just members or local vars? If you make them non-static members, they'll get serialized. Martijn -- Learn Wicket

Re: [Wicket-user] SLF4J and wicket

2007-04-25 Thread Eelco Hillenius
Yeah, I would prefer to either have log fields as static in components or get them just in time rather than keeping references to them. Keeping references in instances kind of combines the worst of both. Eelco On 4/25/07, Peter Ertl [EMAIL PROTECTED] wrote: looks like the logging guru is wrong

Re: [Wicket-user] SLF4J and wicket

2007-04-25 Thread Bjön Limell
Thats what i have heard too. At least JCL isnt thread-safe. Dont really know about slf4j On 4/25/07, Martijn Dashorst [EMAIL PROTECTED] wrote: On 4/25/07, Matej Knopp [EMAIL PROTECTED] wrote: Why would you want to serializable a log?! Isn't the recommendation of one of the logging guru's to

Re: [Wicket-user] SLF4J and wicket

2007-04-25 Thread Justin Morgan
by: [EMAIL PROTECTED] 04/25/2007 11:57 AM Please respond to wicket-user@lists.sourceforge.net To wicket-user@lists.sourceforge.net cc Subject Re: [Wicket-user] SLF4J and wicket btw, im using 1.3.0-incubating-SNAPSHOT On 4/25/07, Bjön Limell [EMAIL PROTECTED] wrote: Sure! ERROR

Re: [Wicket-user] SLF4J and wicket

2007-04-25 Thread Bjön Limell
. - Justin *Bjön Limell [EMAIL PROTECTED]* Sent by: [EMAIL PROTECTED] 04/25/2007 11:57 AM Please respond to wicket-user@lists.sourceforge.net To wicket-user@lists.sourceforge.net cc Subject Re: [Wicket-user] SLF4J and wicket btw, im using 1.3.0-incubating-SNAPSHOT On 4/25/07, Bjön

Re: [Wicket-user] SLF4J and wicket

2007-04-25 Thread Eelco Hillenius
is the Log4J (v1.2) logging system. So far I really like slf4j, BTW. - Justin *Bjön Limell [EMAIL PROTECTED]* Sent by: [EMAIL PROTECTED] 04/25/2007 11:57 AM Please respond to wicket-user@lists.sourceforge.net To wicket-user@lists.sourceforge.net cc Subject Re: [Wicket-user] SLF4J

Re: [Wicket-user] SLF4J and wicket

2007-04-25 Thread Bjön Limell
To wicket-user@lists.sourceforge.net cc Subject Re: [Wicket-user] SLF4J and wicket btw, im using 1.3.0-incubating-SNAPSHOT On 4/25/07, Bjön Limell [EMAIL PROTECTED] wrote: Sure! ERROR org.apache.wicket.util.lang.Objects Error serializing object class

Re: [Wicket-user] SLF4J and wicket

2007-04-25 Thread Eelco Hillenius
respond to wicket-user@lists.sourceforge.net To wicket-user@lists.sourceforge.net cc Subject Re: [Wicket-user] SLF4J and wicket btw, im using 1.3.0-incubating-SNAPSHOT On 4/25/07, Bjön Limell [EMAIL PROTECTED] wrote: Sure! ERROR

Re: [Wicket-user] SLF4J and wicket

2007-04-25 Thread Matej Knopp
cc Subject Re: [Wicket-user] SLF4J and wicket btw, im using 1.3.0-incubating-SNAPSHOT On 4/25/07, Bjön Limell [EMAIL PROTECTED] wrote: Sure! ERROR org.apache.wicket.util.lang.Objects Error serializing object class test.page.SignInPage [object=[Page class

Re: [Wicket-user] SLF4J and wicket

2007-04-25 Thread Bjön Limell
@lists.sourceforge.net To wicket-user@lists.sourceforge.net cc Subject Re: [Wicket-user] SLF4J and wicket btw, im using 1.3.0-incubating-SNAPSHOT On 4/25/07, Bjön Limell [EMAIL PROTECTED] wrote: Sure! ERROR