-
1. Re: Log4j start-up errors in Servicemix.
njiang May 14, 2009 11:38 PM (in response to pchandler)It looks like a pax logging service starting up issue.
Did you change any thing on the Fuse ESB 4.0.4?
And What's your system environment ?
-
2. Re: Log4j start-up errors in Servicemix.
pchandler May 19, 2009 10:23 AM (in response to njiang)Did you change any thing on the Fuse ESB 4.0.4?
And What's your system environment ? No.
And What's your system environment ?
servicemix> info
ServiceMix
ServiceMix home /export/home/xxxxx/1/pchandler/programs/fuse
ServiceMix base /export/home/xxxxx/1/pchandler/programs/fuse
ServiceMix version 1.0.3.0-fuse
JVM
Java Virtual Machine Java HotSpot(TM) 64-Bit Server VM version 11.3-b02
Vendor Sun Microsystems Inc.
Uptime 20 hours 21 minutes
Total compile time 12.837 seconds
Threads
Live threads 77
Daemon threads 36
Peak 78
Total started 12177
Memory
Current heap size 73,727 kbytes
Maximum heap size 466,048 kbytes
Committed heap size 130,752 kbytes
Pending objects 0
Garbage collector Name = 'PS Scavenge', Collections = 149, Time = 0.750 seconds
Garbage collector Name = 'PS MarkSweep', Collections = 0, Time = 0.000 seconds
Classes
Current classes loaded 7,700
Total classes loaded 7,700
Total classes unloaded 0
Operating system
Name Linux version 2.6.9-78.0.13.ELsmp
Architecture amd64
Processors 4
-
3. Re: Log4j start-up errors in Servicemix.
pchandler May 19, 2009 5:27 PM (in response to pchandler)Also, a co-worker is getting this error on the default install:
log4j:ERROR A "org.apache.log4j.ConsoleAppender" object is not assignable to a "org.apache.log4j.Appender" variable.
log4j:ERROR The class "org.apache.log4j.Appender" was loaded by
log4j:ERROR whereas object of type
log4j:ERROR "org.apache.log4j.ConsoleAppender" was loaded by .
log4j:ERROR Could not instantiate appender named "A1".
DEBUG Scheduling task ManagedService Update: pid=org.ops4j.pax.logging
log4j:WARN No appenders could be found for logger (org.apache.felix.configadmin).
log4j:WARN No appenders could be found for logger (org.apache.servicemix.kernel.filemonitor.FileMonitor).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN No appenders could be found for logger (org.ops4j.pax.logging.pax-logging-service).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN Please initialize the log4j system properly.
log4j:ERROR A "org.apache.log4j.FileAppender" object is not assignable to a "org.apache.log4j.Appender" variable.
log4j:ERROR The class "org.apache.log4j.Appender" was loaded by
log4j:ERROR whereas object of type
log4j:ERROR "org.apache.log4j.FileAppender" was loaded by .
log4j:ERROR Could not instantiate appender named "out".
log4j:ERROR A "org.apache.log4j.FileAppender" object is not assignable to a "org.apache.log4j.Appender" variable.
log4j:ERROR The class "org.apache.log4j.Appender" was loaded by
log4j:ERROR whereas object of type
log4j:ERROR "org.apache.log4j.FileAppender" was loaded by .
log4j:ERROR Could not instantiate appender named "out".
-
4. Re: Log4j start-up errors in Servicemix.
stlewis May 20, 2009 9:07 AM (in response to pchandler)Is it possible that there's something in your classpath that's causing this, have you tried unsetting the CLASSPATH variable in your environment to see if that helps? Also have you tried 4.1 to see if it still occurs there? I haven't seen this personally on Linux so it's hard to say what's going on but it's likely going to be down to something in your environment.
-
5. Re: Log4j start-up errors in Servicemix.
pchandler May 20, 2009 2:17 PM (in response to stlewis)In ServiceMix: 4.1
./servicemix
log4j:ERROR A "org.apache.log4j.ConsoleAppender" object is not assignable to a "org.apache.log4j.Appender" variable.
log4j:ERROR The class "org.apache.log4j.Appender" was loaded by log4j:ERROR whereas object of type log4j:ERROR "org.apache.log4j.ConsoleAppender" was loaded by .
log4j:ERROR Could not instantiate appender named "A1".
log4j:ERROR A "org.apache.log4j.ConsoleAppender" object is not assignable to a "org.apache.log4j.Appender" variable.
log4j:ERROR The class "org.apache.log4j.Appender" was loaded by log4j:ERROR whereas object of type log4j:ERROR "org.apache.log4j.ConsoleAppender" was loaded by .
log4j:ERROR Could not instantiate appender named "A1".
log4j:ERROR A "org.apache.log4j.ConsoleAppender" object is not assignable to a "org.apache.log4j.Appender" variable.
log4j:ERROR The class "org.apache.log4j.Appender" was loaded by log4j:ERROR whereas object of type log4j:ERROR "org.apache.log4j.ConsoleAppender" was loaded by .
log4j:ERROR Could not instantiate appender named "A1".
log4j:ERROR A "org.apache.log4j.FileAppender" object is not assignable to a "org.apache.log4j.Appender" variable.
log4j:ERROR The class "org.apache.log4j.Appender" was loaded by log4j:ERROR whereas object of type log4j:ERROR "org.apache.log4j.FileAppender" was loaded by .
log4j:ERROR Could not instantiate appender named "out".
____ _ __ __ _
/ ___| ___ _ ____ () ___ ___| \/ (_)_ __
\___ \ / _ \ '__\ \ / / |/ __/ _ \ |\/| | \ \/ /
___) | __/ | \ V /| | (_| __/ | | | |> <
|____/ \___|_| \_/ |_|\___\___|_| |_|_/_/\_\
ServiceMix Kernel (1.1.0.0-fuse)
ServiceMix (4.1.0.0-fuse)
-
6. Re: Log4j start-up errors in Servicemix.
pchandler May 20, 2009 3:09 PM (in response to stlewis)I unset my CLASSPATH and the errors cleared!
Using/traversing the Uses/shells existing CLASSPATH to find servicemix log4j artifacts (i.e., jars, appenders, property files, ...) - interesting?
Thanks again,
Peter.