Can not use log4j extensions in log4j configuration, causes ClassNotFoundException
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
play framework |
New
|
Undecided
|
Unassigned | ||
1.0 |
Won't Fix
|
Undecided
|
Unassigned | ||
1.1 |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
I want to use my my own classes, extension of log4j classes, in my log4j configuration.
I wrote the classes and changed the log4j.properties accordingly.
For example:
public class MyAppender extends org.apache.
{}
And the log4j configuration
log4j.rootLogge
log4j.appender.
log4j.appender.
log4j.appender.
When I run the server in the command line I get java.lang.
When I run the server from Eclipse it works properly.
I think it works in Eclipse since the Eclipse classpath looks in the Eclipse compiled classes folder.
I tried to precompile the application (play precompile) but I get the same log4j error during precompilation.
Changed in play: | |
milestone: | none → 1.0.2 |
summary: |
- Can not use log4j extensions in log4j configuration, casues + Can not use log4j extensions in log4j configuration, causes ClassNotFoundException |
Did you try writing a plugin and putting your classes in src/, rather than putting them in the portion that gets compiled on the fly?