i am trying to deploy on web app in tomcat container, i have one third party jar api, which is working perfectly when run from eclipse but when i try to run the build using Ant tool it is not able to find that jar library which is referenced in one of class file. Needless to say I have added that library into my Any class path
David Newton wrote:I'm not sure exactly what you're asking, or if you're asking two separate questions.
For the build, make sure the jar is on the compilation classpath. For the web app, make sure the jar is packaged in WEB-INF/lib.
i will need your help to resolve this error.
I have added that file into class path
Windows -> Ant -> runtime -> global entries
Further they are put inside WEB-INF/lib folder too
there is more information on the background of this app that is this is not a something from scratch we are using one vendors API (Thinkmap visualizer) to build our app, which is some what J2EE standard. This application creates a thinkmap project wizard in eclipse "New project". so i have a special directory structure just like other web apps, this wizard also creates few xml files that configures database connections and other settings how to display the data in the applet. most of the time all customization can be achieved by editing those xml files but in some cases we have to add our own java classes there, one if java class i added is using yet another external jar library, which is not getting into compilation path.
Another interesting thing is this wizard has its own way to create deployable package, it has one packager library that does all jobs with Ant. this packager is neglecting my external libs
Sorry to confuse you more, please ask for more details if you need