I am integrating a mvp4g into java Play. I am running into an
unexpected error, related to Thread based context classloader. When
the code gets to TypeOracleMediator, line 750 in the
resolveAnnotationValue method,
try {
return Class.forName(valueType.getClassName(), false,
Thread.currentThread().getContextClassLoader());
} catch (ClassNotFoundException e) {
logger.log(TreeLogger.ERROR, "Annotation error: cannot
resolve "
+ valueType.getClassName(), e);
return null;
}
}
I get a ClassNotFoundException. I double checked the returned
classloader and verified that the classpath does not include the
project classes directory.
How can I fix this problem? I don't see a way to add a classpath into
the classloader (it is a subclass or URLClassLoader). Should I simply
create a new URLClassLoader with the classes dir added as an url path?
--
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.