C
Claudio!
Hi!
I neet do use Digester inside a Servlet to parse an XML file.
Now, the problem is that Digester use the reflection to create on the
fly the objects associated to the various entity of the XML file.
The classes that Digester have to instantiate via reflection are
developped by me, and (for now) they stay under WEB-INF/classes.
The problem is that when the parsing start (inside the servlet),
Digester can't see that classes as the ClassNotFoundException arise.
Some days ago I've read that the problem is relative to the Tomcat's
classloader. At that time i put that class in a JAR under WEB-INF/lib
but this didn't work. So I moved it under WEB-INF/classes, but also
this seem to not work.
It works only if i put that class in a JAR under dir. "commons/lib" of
Tomcat.
It is normal? I want it under "WEB-INF/classes" if it is possible (the
deploy of application would be easier)
I'm using Java 1.4.2 and Tomcat 5.0.30.
Thank you for any help!!!
Claudio.
I neet do use Digester inside a Servlet to parse an XML file.
Now, the problem is that Digester use the reflection to create on the
fly the objects associated to the various entity of the XML file.
The classes that Digester have to instantiate via reflection are
developped by me, and (for now) they stay under WEB-INF/classes.
The problem is that when the parsing start (inside the servlet),
Digester can't see that classes as the ClassNotFoundException arise.
Some days ago I've read that the problem is relative to the Tomcat's
classloader. At that time i put that class in a JAR under WEB-INF/lib
but this didn't work. So I moved it under WEB-INF/classes, but also
this seem to not work.
It works only if i put that class in a JAR under dir. "commons/lib" of
Tomcat.
It is normal? I want it under "WEB-INF/classes" if it is possible (the
deploy of application would be easier)
I'm using Java 1.4.2 and Tomcat 5.0.30.
Thank you for any help!!!
Claudio.