in Tomcat 7, I need to load in a class from a specific jar in the war file, in /WEB-INF/lib/jasperreports-5.6.0.jar.
How can I get the following code to work?
The jar contains the class indicated but I apparently don't know how to properly qualify the jar in the first line so that it is found
URL[] classLoaderUrls = new URL[]{new URL("file://WEB-INF//lib//jasperreports-5.6.0.jar")};
URLClassLoader urlClassLoader = new URLClassLoader(classLoaderUrls);
Class<?> beanClass = urlClassLoader.loadClass("net.sf.jasperreports.engine.JasperRunManager");