]
Karl Nicholas updated WFLY-11411:
---------------------------------
Steps to Reproduce:
Eg.
See attached files.
was:
Eg.
{{@ApplicationPath("/rs")
public class JaxRsActivator extends Application {
@Override
public Set<Class<?>> getClasses() {
Set<Class<?>> classes = new HashSet<>();
classes.add(RestSever.class);
return classes;
}
}
}}
and in other project
{{@Path("/")
public class RestSever {
@Path("")
@GET
@Produces(MediaType.TEXT_PLAIN)
public String getStatutesRoots() {
return "string";
}
}}}
ModuleClassLoader fails with ClassNotFoundException when class in a
jar file
----------------------------------------------------------------------------
Key: WFLY-11411
URL:
https://issues.jboss.org/browse/WFLY-11411
Project: WildFly
Issue Type: Bug
Components: Class Loading
Affects Versions: 11.0.0.Final, 14.0.0.Final
Environment: Wildfly 11, 14, Java 1.8, Windows 10
Reporter: Karl Nicholas
Priority: Major
Simple REST service with Application activator in project and Rest Server in another
project with jar file fails to load.
Works okay with EAR project structure but not with simpler WAR project structure.
Caused by: java.lang.ClassNotFoundException: rest.service.server.RestSever from [Module
"deployment.restserver7.war" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:198)
at
org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:412)
at
org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:400)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:116)