I'm setting up an embedded database with my struts app, which works by creating a local database copy on startup. To do this, I need to place the relevant code in a servlet that is called on tomcat start-up, but I'm having problems calling this file.
I've set the servlet-classs in my web.xml like this:
I thought that this entry was sufficient but obviously not. Can anyone spot what I might be doing wrong?
My build.xml file then copies this to WEB-INF/classes/org/kew/alpine/datalayer which is where tomcat reads it from. I have a number of other class files in there which run as I expect them to. The init file just doesn't seem to be running on startup.