Re: Strange ClassNotFoundException: org.slf4j.Logger

2009-01-18 Thread Thiago HP
On Fri, Jan 16, 2009 at 6:36 PM, Martijn Brinkers wrote: > But I'm using run-jetty-run successfully for a long time already. I only > had to add -Dorg.mortbay.jetty.webapp.parentLoaderPriority=true to the > VM-arguments box in the run-jetty-run debug configuration (in Eclipse) It still doesn't wo

Re: Strange ClassNotFoundException: org.slf4j.Logger

2009-01-16 Thread Ulrich Stärk
Indeed. That works. Next time I shouldn't rely on what other's are saying doesn't work :) Thanks Martijn. Uli Martijn Brinkers schrieb: But I'm using run-jetty-run successfully for a long time already. I only had to add -Dorg.mortbay.jetty.webapp.parentLoaderPriority=true to the VM-arguments

Re: Strange ClassNotFoundException: org.slf4j.Logger

2009-01-16 Thread Martijn Brinkers
But I'm using run-jetty-run successfully for a long time already. I only had to add -Dorg.mortbay.jetty.webapp.parentLoaderPriority=true to the VM-arguments box in the run-jetty-run debug configuration (in Eclipse) Martijn On Fri, 2009-01-16 at 20:52 +0100, Ulrich Stärk wrote: > Found the proble

Re: Strange ClassNotFoundException: org.slf4j.Logger

2009-01-16 Thread Ulrich Stärk
Found the problem: http://docs.codehaus.org/display/JETTY/Classloading By default Jetty hides org.slf4j.* from webapp context classloaders, therefore the Form component can't see it. This can be fine-tuned by calling org.mortbay.jetty.webapp.WebAppContext.setServerClasses(String[]) which the ru

Re: Strange ClassNotFoundException: org.slf4j.Logger

2009-01-16 Thread Ulrich Stärk
I'm having the exact same problem and I checked that it's not there twice... weird... Uli Joachim Van der Auwera schrieb: I assume slf4j is on the classpath twice... Thiago HP wrote: Hi! I'm having a very strange exception when trying to run a T5 application (www.arsmachina.com.br/project/e

Re: Strange ClassNotFoundException: org.slf4j.Logger

2009-01-14 Thread Joachim Van der Auwera
I assume slf4j is on the classpath twice... Thiago HP wrote: Hi! I'm having a very strange exception when trying to run a T5 application (www.arsmachina.com.br/project/example): Error obtaining injected value for field org.apache.tapestry5.corelib.components.Form.logger: java.lang.ClassNotFound

Re: Strange ClassNotFoundException: org.slf4j.Logger

2009-01-14 Thread Thiago HP
On Wed, Jan 14, 2009 at 9:19 AM, Martijn Brinkers wrote: > Have you tried setting parentLoaderPriority? Hi! Thanks for your answer, but it didn't work. That wiki page talks about @Inject'ng a Logger, but in my case the problem happens when instantiating (or getting) a Logger for a Form component.

Re: Strange ClassNotFoundException: org.slf4j.Logger

2009-01-14 Thread Martijn Brinkers
Have you tried setting parentLoaderPriority? See: http://wiki.apache.org/tapestry/Tapestry5HowToSetupEclipseRunJettyRun Martijn On Wed, 2009-01-14 at 09:11 -0200, Thiago HP wrote: > Hi! > > I'm having a very strange exception when trying to run a T5 > application (www.arsmachina.com.br/projec

Strange ClassNotFoundException: org.slf4j.Logger

2009-01-14 Thread Thiago HP
Hi! I'm having a very strange exception when trying to run a T5 application (www.arsmachina.com.br/project/example): Error obtaining injected value for field org.apache.tapestry5.corelib.components.Form.logger: java.lang.ClassNotFoundException: org.slf4j.Logger It seems to be a Tapestry classloadi