When using eclipse, compiling the web app and running it on a server is relatively straight-forward. Eclipse knows where the apache
tomcat libraries are ( such as servlet-api.jar etc)
If you're writing an
ant script to compile the classes from the command line... I get an error which I understand where it comes from...basically...javac complains because it cannot find the javax.* libraries.
adding the servlet-api.jar under WEB-INF/lib resolved the problem but now Tomcat complains with the following:
INFO: validateJarFile(/Library/Tomcat/apache-tomcat-6.0.20/wtpwebapps/iSquirrel/WEB-INF/lib/servlet-api.jar) - jar not loaded. See
Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
anyone knows how to fix this?
Generally, what needs to be included in WEB-INF/lib so that the web app compiles correctly using command-line? I would suspect that the tomcat jar files are not needed as long as you include them in the classpath when compiling?
Thanks a lot