Tomcat is Java related, I think this is the best place for this question.. If not let me know.
Ive just installed Tomcat, which is nice. Examples are all working, im running through port 80, nice nice nice, got my new test app working, nicer.
When i try to import a class however, one that is common across all apps and resides in d:\classes, (which in turn is in my classpath) it breaks !
I have looked at the docs. Apparently Tomcat does not look in the System classpath by default. By default Tomcat looks in the following for classloading ( this is from the site )
/WEB-INF/classes of your web application
/WEB-INF/lib/*.jar of your web application
Bootstrap classes of your JVM
System class loader classses (described above)
So, i put all of my d:\classes in $CATALINA_HOME/common/clas
ses .. i expected my app to pick these classes up, but it does not and i still get a NoClassDefFoundError on the class my app trys to get hold of.
So, i need to know why i cant get these common classes to be visible to Tomcat when they should be.
As an interesting side note (this may be related) my helloworld servlet in a new app i created works by using the servlet class name :
However I cant use the web.xml of my application to call it something else.. ie :
does not work ! Looks as though maybe my application is not set up correctly, could that be causing this ?
lots of info there, any help would be appreciated.
The secret lemonade drinker