| |

VerySource

 Forgot password?
 Register
Search
View: 803|Reply: 7

log problem

[Copy link]

2

Threads

8

Posts

8.00

Credits

Newbie

Rank: 1

Credits
8.00

 China

Post time: 2020-2-9 20:00:01
| Show all posts |Read mode
In my hibernate project,
Exception: log4j: WARN No appenders could be found for logger (org.apache.catalina.startup.Embedded).
log4j: WARN Please initialize the log4j system properly.
log4j: WARN No appenders could be found for logger (org.apache.commons.beanutils.ConvertUtils).
log4j: WARN Please initialize the log4j system properly.
log4j: WARN No appenders could be found for logger (org.apache.commons.digester.Digester).
log4j: WARN Please initialize the log4j system properly.

What causes it? How to deal with it? Thank you
Reply

Use magic Report

0

Threads

10

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 China

Post time: 2020-4-5 21:30:01
| Show all posts
It may be that the configuration file is missing.
Reply

Use magic Report

0

Threads

7

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

Post time: 2020-4-6 13:30:02
| Show all posts
Cannot find the configuration file, it may be the wrong path
Reply

Use magic Report

2

Threads

8

Posts

8.00

Credits

Newbie

Rank: 1

Credits
8.00

 China

 Author| Post time: 2020-4-10 17:00:01
| Show all posts
Which configuration file? The project can run, but it is these warnings
log4j: WARN No appenders could be found for logger (org.apache.catalina.startup.Embedded).
log4j: WARN Please initialize the log4j system properly.
log4j: WARN No appenders could be found for logger (org.apache.commons.beanutils.ConvertUtils).
log4j: WARN Please initialize the log4j system properly.
log4j: WARN No appenders could be found for logger (org.apache.commons.digester.Digester).
log4j: WARN Please initialize the log4j system properly.

Please be specific, I am a novice
Reply

Use magic Report

0

Threads

63

Posts

42.00

Credits

Newbie

Rank: 1

Credits
42.00

 China

Post time: 2020-4-11 09:00:02
| Show all posts
Because you use tomcat struts, and the printed classes are all used in tomcat / struts, they all use the commons-logging lib, commons-logging find log4j in the classpath, use log4j But your log4j didn't configure corresponding appenders for them, so it will alarm. Can be ignored
Reply

Use magic Report

0

Threads

18

Posts

11.00

Credits

Newbie

Rank: 1

Credits
11.00

 China

Post time: 2020-4-11 12:00:01
| Show all posts
It should be a path problem
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-4-12 08:30:01
| Show all posts
tellyoumade it very clear
Reply

Use magic Report

2

Threads

8

Posts

8.00

Credits

Newbie

Rank: 1

Credits
8.00

 China

 Author| Post time: 2020-4-12 22:00:02
| Show all posts
I probably understand what it means. Where can I configure log4j appender?
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list