I have just migrated our gwt app from 1.5 to 1.6. Everything is fine
except that slf4j classes can't be loaded on hosted mode. We actually
use slf4j in our web app to log our own stuff. The problem is that
the hosted mode class loader don't allow server classes to be loaded
from the outside world. It checks the class name against a list of
server classes that jetty hard-codes somewhere, and that list contains
the org.slf4f package.
WebAppClassLoaderExtension.findClass(String name) {
@Override
protected Class<?> findClass(String name) throws
ClassNotFoundException {
...
// Don't allow server classes to be loaded from the outside.
if (isServerPath(name)) {
throw e;
}
...
}
}
isServerPath is defined by the subclass:
public class WebAppClassLoader
{
public boolean isServerPath(String name)
{
...
String[] server_classes = _context.getServerClasses();
// if the name is in the list, return true (basically).
}
Where _context is a:
public class WebAppContext extends Context
{
...
private String[] _serverClasses = {"-
org.mortbay.jetty.plus.jaas.", "org.mortbay.jetty.", "org.slf4j."};
// TODO
hide all mortbay classes
...
public String[] getServerClasses()
{
return _serverClasses;
}
}
Does anybody know how to workaround this issue?
Cheers,
Célio
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---