David Smith wrote:
> I mean the path to cib.expserver.plugin.basics.ExpressServer, which your
> tomcat is complaining about not being able to find.
>
> Anyway... taking a closer look at the code you posted, I think the URI
> you are using won't work
>
> file:/c:Tud/Server/program/bin should probab
lugin.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.pri
I mean the path to cib.expserver.plugin.basics.ExpressServer, which your
tomcat is complaining about not being able to find.
Anyway... taking a closer look at the code you posted, I think the URI
you are using won't work
file:/c:Tud/Server/program/bin should probably be more like
file:///c:/
Try using:
URLClassLoader pluginClassLoader =
new URLClassLoader(pluginURLs,
Thread.currentThread().getContextClassLoader());
-Tim
Faisal wrote:
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
Name);
>>// The following line of code is not executed under Tomcat
>>System.out.println("successfully loaded the class");
>>
>>
>>return inputFile;
>>}
>>
>>
>
>
>
Hi Faisal.
Could you post a few very important additional details?
Tomcat version
Platform
Tomcat relative path to the class/jar you're having trouble with.
--David
Faisal wrote:
Hello,
I can execute the following java code in a standalone application very well
but when i put the same code i
putFile;
}
--
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.a