Hello, I can execute the following java code in a standalone application very well but when i put the same code in a web service and deploy it on the Tomcat 5.5 then it gives error:
exception classNotFoundException: can not find the class cib.expserver.plugin.basics.ExpressServer Some one please help me out in this regard. The code is following: mport java.io.*; import java.net.*; public class WebService { public byte[] run(byte[] inputFile) throws Exception { URL url = new URL("file:/c:Tud/Server/program/bin"); System.out.println("successfully created the url"); URL[] pluginURLs = new URL[1]; pluginURLs[0]=url; URLClassLoader pluginClassLoader = new URLClassLoader(pluginURLs); System.out.println("The class loader has been created successfully "); String pluginClassName = "cib.expserver.plugin.basics.ExpressParser"; // The following line of code gives the Exception when run // under Tomcat but runs fine in a standalone application Class pluginClass = pluginClassLoader.loadClass(pluginClassName); // The following line of code is not executed under Tomcat System.out.println("successfully loaded the class"); return inputFile; } -- View this message in context: http://www.nabble.com/problem-in-loading-class-file-tp14335434p14335434.html Sent from the Tomcat - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]