Closed GoogleCodeExporter closed 9 years ago
[deleted comment]
This is the change I am using and works fine
static {
tryImplementation(new Runnable() {
public void run() {
useCommonsLogging();
}
});
tryImplementation(new Runnable() {
public void run() {
useLog4JLogging();
}
});
tryImplementation(new Runnable() {
public void run() {
useSlf4jLogging();
}
});
tryImplementation(new Runnable() {
public void run() {
useJdkLogging();
}
});
tryImplementation(new Runnable() {
public void run() {
useNoLogging();
}
});
}
Original comment by eduardo.macarron
on 30 Oct 2010 at 6:24
Glassfish loads slf4j and mybatis with these classloaders:
INFO: sun.misc.Launcher$AppClassLoader@fabe9
INFO: WebappClassLoader (delegate=true; repositories=WEB-INF/classes/)
Seems that MyBatis classes cannot see slf4j so Resources can load slf4j but it
later fails when trying to use it.
Fixed adding a probe for each logging adapter instead of just loading the
underliying 3rd party logging class.
See r3463
Original comment by eduardo.macarron
on 30 Dec 2010 at 12:17
Original issue reported on code.google.com by
eduardo.macarron
on 17 Oct 2010 at 6:20