This content has been marked as final.
Show 3 replies
-
1. Re: ClassNotFoundException JBossAS5 Web deployer
jaikiran Feb 18, 2009 10:20 AM (in response to alvo)Looks like a bug. The org.jboss.web.tomcat.service.injection.WebResourceHandler uses this:
private static void loadXmlResourceEnvRefs(InjectionContainer container, Collection<ResourceEnvironmentReferenceMetaData> refs) { ... if(resTypeName != null) { Class<?> resType = Class.forName(resTypeName);
The right thing would be to use the container's classloader to load the resource type (since the resource type can be application specific) :Class<?> resType = Class.forName(resTypeName,false,container.getClassloader());
-
2. Re: ClassNotFoundException JBossAS5 Web deployer
alvo Feb 19, 2009 4:31 AM (in response to alvo)Thank you, jaikiran.
I assume that this bug will be fixed and available at some time. Is there a issuetracker ID? ( https://jira.jboss.org/jira/browse/JBAS-3393 sounds similar, but apparently its different)
Cheers -
3. Re: ClassNotFoundException JBossAS5 Web deployer
jaikiran Feb 19, 2009 5:57 AM (in response to alvo)Fixed in the upcoming 5.0.1 GA https://jira.jboss.org/jira/browse/JBAS-6403