I have a servlet . I want to use classes from a jar (torque-3.1.jar)
How / where do I add that jar to the classpath so the classloader can find them? I am getting:
java.lang.NoClassDefFoundError: org/apache/torque/Torque
at com.sun.ebank.web.Dispatcher.getData(Unknown Source)
at com.sun.ebank.web.Dispatcher.doGet(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
I am experimenting with tweaking the JBoss/Sun Dukes Bank example. I may want to use Torque and was going to try a few things.
To use Velocity I just added the velocity related jars to the war and it worked. My Torque jars are in the same place as the Velocity jars (WEB-INF/lib of the .war)
classpath (one word) that is. Don't want anyone to miss it on a search.
In most forums you can edit your own post. I do not see a way to do that here. I could have just fixed this instead of replying.