I have had trouble with this with all version of Tomcat actually, not just 4.1.17.
In my development environment on my workstation, I compile all my classes into C:\work\project-name_src\src. Also, I've set my <context> to point to C:\work\project-name_src\jsp. This works fine when starting Tomcat through my IDE, which includes the entire CLASSPATH when starting Tomcat. But, in order to get it to work outside of my IDE, as a normal process, I've decided I need to modify the CLASSPATH either through setclasspath.bat or catalina.bat. The problem is that as soon as I put C:\work\project-name_src\src (or \work\src, tried both ways) into the CLASSPATH in these scripts, it suddenly can't find servlet.jar. I get NoClassDefFoundErrors. If I remove my changes to the classpath, these errors go away, but I start getting NoClassDefFoundErrors for my application classes. So, I don't want to work from the webapps directory, because that would mean changes to my configuration in more than one place. I could setup an Ant script to do local dev deployments for me, but I really don't want to go that far. I just want to put my directory onto tomcat's classpath. Here's the change I made to catalina.bat, which looks very similar to the change I made in setclasspath.bat and then removed: set CLASSPATH=%CLASSPATH%;%CATALINA_HOME%\bin\bootstrap.jar;C:\work\project-name _src\src (I do not have a JSEE_HOME) What am I doing wrong? This is JDK1.4.1 and Tomcat 4.1.17 FULL. Ian.
