I am writing a servlet that uses a package to convert text to pdf. This package uses java.util.Arraylist. When i compile the servlet with the command line everything works fine; when i publish it; i always get a classnotfoundexception : arraylist.
Now in order to find a solution, i wrote it in an application, and compiled it with the command line jdk 1.2.2 on the server and run the application. Everything worked fine then, the result was perfect. Now it did not give an arraylist error.
How can i do this in a servlet; considering everything works fine in an application, why doesn't it work in a servlet ??? The classpath must be correct because i can run the application .. or not ? Eventually they both use the same package; could it be that the classpath in the environment for doesn't work for a servlet ?
I am using Java Webserver 2.0 and JDK 1.2.2; i am using the classes found at : http://allserv.rug.ac.be/~blowagie/java-pdf/
; this is my classpath : C:\servlet.jar;.;c:\Softwa
When I add an extra jar file containing the java.util.arraylist in the classpath; i get some other strange errors (like java.lang.NoClassDefFoundE
aBox at com.sun.server.security.Se
piled Code)); ... plz help me