Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Open Source Projects
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
paul wheaton
Jeanne Boyarsky
Ron McLeod
Sheriffs:
Paul Clapham
Liutauras Vilda
Devaka Cooray
Saloon Keepers:
Tim Holloway
Roland Mueller
Bartenders:
Forum:
Other Open Source Projects
Log4j appender,stdout Error
peter aerts
Ranch Hand
Posts: 32
I like...
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hello.
I have this Error when i run tomcat.i want to know that is it important? and how can i fix it?
please help me.
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 [org.apache.catalina.loader.StandardClassLoader@50d89c] whereas object of type log4j:ERROR "org.apache.log4j.ConsoleAppender" was loaded by [WebappClassLoader delegate: false repositories: /WEB-INF/classes/ ----------> Parent Classloader: org.apache.catalina.loader.StandardClassLoader@50d89c ]. log4j:ERROR Could not instantiate appender named "stdout".
This is my log4j.properties.
### direct log messages to stdout ### log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.Target=System.out log4j.appender.stdout.layout=org.apache.log4j.PatternLayout log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n ### direct messages to file hibernate.log ### #log4j.appender.file=org.apache.log4j.FileAppender #log4j.appender.file.File=hibernate.log #log4j.appender.file.layout=org.apache.log4j.PatternLayout #log4j.appender.file.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n ### set log levels - for more verbose logging change 'info' to 'debug' ### log4j.rootLogger=warn, stdout #log4j.logger.org.hibernate=info log4j.logger.org.hibernate=debug ### log HQL query parser activity log4j.logger.org.hibernate.hql.ast.AST=debug ### log just the SQL log4j.logger.org.hibernate.SQL=debug ### log JDBC bind parameters ### log4j.logger.org.hibernate.type=debug ### log schema export/update ### log4j.logger.org.hibernate.tool.hbm2ddl=debug log4j.logger.com.university=info log4j.logger.com.university.dao=debug ### log HQL parse trees log4j.logger.org.hibernate.hql=debug ### log cache activity ### log4j.logger.org.hibernate.cache=debug ### log transaction activity log4j.logger.org.hibernate.transaction=debug ### log JDBC resource acquisition log4j.logger.org.hibernate.jdbc=debug ### enable the following line if you want to track down connection ### ### leakages when using DriverManagerConnectionProvider ### log4j.logger.org.hibernate.connection.DriverManagerConnectionProvider=trace #debug Hibernate DAO com.university.dao=debug
Martijn Verburg
author
Posts: 3285
13
I like...
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hm weird, your config appears to be correct, are there multiple versions of Log4j in the classpath? (perhaps one with
tomcat
nd one with your application).
Cheers, Martijn,
Twitter
.
peter aerts
Ranch Hand
Posts: 32
I like...
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Thank you so much Martijn Verburg.
I think you are a professional.
I had two log4j.jar with diffrent version.
I have no error now.
thank you.
Martijn Verburg
author
Posts: 3285
13
I like...
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Happy to help, glad you resolved it
.
Cheers, Martijn,
Twitter
.
We find this kind of rampant individuality very disturbing. But not this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
what'a wrong woth my HQL query?????
Hibernate 3 -> Logging queries to file with log4j
Problem configuring Hibernate and JPA in Eclipse
[Log4j] Defining multiple loggers
Trying to get verbose log4j info
More...