You know those times, when you have a problem with something and you
start talking to your co-worker, and he goes "uh-huh... uh-huh...". Then
you solve it, without him saying a single word.... 

So there you go... Problem solved. Thanks Malcolm :)

I had a copy of log4j.jar in my deployed war. Removing that from the war
file made Click play beautifully with log4j and jboss. Getting
classloader issues is normally a hint in that direction, only I didn't
see it :) Must be the heat...

Cheers,

WJ






On Mon, 2009-06-29 at 22:29 +1000, Malcolm Edgar wrote:

> Hi,
> 
> which version of Tomcat / JBoss are you running the application on?
> Where is you Log4j config file and JAR files located?
> 
> regards Malcolm Edgar
> 
> On Mon, Jun 29, 2009 at 10:19 PM, WarnerJan
> Veldhuis<[email protected]> wrote:
> > Hello,
> >
> > Two things that I want to mention about Log4JLogService:
> >
> > 1) The click.dtd says the value for element log-service, attribute classname
> > is fixed, which it's not. Side effect: it makes my IntelliJ XML parser
> > complain about illegal xml :)
> > 2) I get classloader issues when using the Log4JLogger. I know it can be a
> > million things, but has anyone of you ever ran into messages like these?
> >
> > 14:00:38,482 INFO  [TomcatDeployer           ] deploy, ctxPath=/Portal,
> > warUrl=.../tmp/deploy/tmp42639Portal-exp.war/
> > 14:00:38,678 ERROR [STDERR                        ] log4j:ERROR A
> > "org.jboss.logging.appender.FileAppender" object is not assignable to a
> > "org.apache.log4j.Appender" variable.
> > 14:00:38,696 ERROR [STDERR                        ] log4j:ERROR The class
> > "org.apache.log4j.Appender" was loaded by
> > 14:00:38,716 ERROR [STDERR                        ] log4j:ERROR
> > [WebappClassLoader
> >   delegate: false
> >   repositories:
> >     /WEB-INF/classes/
> > ----------> Parent Classloader:
> > java.net.factoryurlclassloa...@436ae706
> > ] whereas object of type
> > 14:00:38,716 ERROR [STDERR                        ] log4j:ERROR
> > "org.jboss.logging.appender.FileAppender" was loaded by
> > [org.jboss.system.server.noannotationurlclassloa...@bc92535].
> > 14:00:38,716 ERROR [STDERR                        ] log4j:ERROR Could not
> > instantiate appender named "FILE".
> >
> > I am using a very standard DailyRollingFileAppender (<appender
> > name="DAILYFILE" class="org.apache.log4j.DailyRollingFileAppender">)
> > .
> > Any clues?
> >
> > Cheers,
> >
> > WarnerJan

Reply via email to