M
Michael Mangeng
Hi
I´ve created a little class which loads data from a config file, creates
a URLClassloader, adds some urls, uses the new classloader to load a
startup-class and invokes the main(...) method. The advantage is that i
can define "path/to/*.jar" in the cfg file instead to mention each jar file.
This works fine with our application. All works perfectly.
The Problem:
We embedded Tomcat5.0.16 in our application and now after startup tomcat
complains that it cannot locate e.g. HttpServlet class.
(ClassNotFoundException). All .jar files supplied with tomcat-embedded
version can be loaded by the URLClassLoader (tomcat itself, servlet,jsp
classes,...) If this would not be the case i would not be able to
startup tomcat.
I think that the exception occours while trying to launch the first
webapplication.
I know that tomcat uses its own classloaders - can anybody explain why
such a problem may arise?
thanks,
mike
I´ve created a little class which loads data from a config file, creates
a URLClassloader, adds some urls, uses the new classloader to load a
startup-class and invokes the main(...) method. The advantage is that i
can define "path/to/*.jar" in the cfg file instead to mention each jar file.
This works fine with our application. All works perfectly.
The Problem:
We embedded Tomcat5.0.16 in our application and now after startup tomcat
complains that it cannot locate e.g. HttpServlet class.
(ClassNotFoundException). All .jar files supplied with tomcat-embedded
version can be loaded by the URLClassLoader (tomcat itself, servlet,jsp
classes,...) If this would not be the case i would not be able to
startup tomcat.
I think that the exception occours while trying to launch the first
webapplication.
I know that tomcat uses its own classloaders - can anybody explain why
such a problem may arise?
thanks,
mike