Re: ClassNotFoundException when I put PrettyFaces jar into my classpath

Splash Forums PrettyFaces Users ClassNotFoundException when I put PrettyFaces jar into my classpath Re: ClassNotFoundException when I put PrettyFaces jar into my classpath

#20045

@lincoln: No, there is nothing special about the annotation scanning that could lead to something like that. Effectively I’m just using ServletContext.getResource() and JarInputStreams to find .class files and then load them by name via ClassLoader.loadClass(). This should not be problematic.

Do you have any details about the ClassLoader.loadClass() vs Class.forName(..., classLoader) thing? I thought ClassLoader.loadClass() is the way to go and therefore also use it in the PrettyFaces code. I would be very interested in learning about the advantage of Class.forName(..., classLoader)!