|
|
|
Re: Vaadin + Virgo not working... [message #676491 is a reply to message #676465] |
Sat, 04 June 2011 20:21 |
|
Seems like Vaadin tries to load the application class:
// Gets the application class name
final String applicationClassName = servletConfig
.getInitParameter("application");
if (applicationClassName == null) {
throw new ServletException(
"Application not specified in servlet parameters");
}
try {
applicationClass = (Class<? extends Application>) getClassLoader()
.loadClass(applicationClassName);
} catch (final ClassNotFoundException e) {
throw new ServletException("Failed to load application class: "
+ applicationClassName);
}
The ClassNotFound is wrapped in the ServletException you get.
The class loader used here is:
protected ClassLoader getClassLoader() throws ServletException {
// Gets custom class loader
final String classLoaderName = getApplicationOrSystemProperty(
"ClassLoader", null);
ClassLoader classLoader;
if (classLoaderName == null) {
classLoader = getClass().getClassLoader();
} else {
try {
final Class<?> classLoaderClass = getClass().getClassLoader()
.loadClass(classLoaderName);
final Constructor<?> c = classLoaderClass
.getConstructor(new Class[] { ClassLoader.class });
classLoader = (ClassLoader) c
.newInstance(new Object[] { getClass().getClassLoader() });
} catch (final Exception e) {
throw new ServletException(
"Could not find specified class loader: "
+ classLoaderName, e);
}
}
return classLoader;
}
I suspect that the problem here is that Vaadin tries to load your class with its own class loader (vaadin bundle's one).
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.07870 seconds