tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <>
Subject Re: load-on-startup problem
Date Thu, 15 Nov 2007 18:48:29 GMT
Hash: SHA1


loredana loredana wrote:
> I had an application where I had a
> <load-on-startup>1</load-on-startup> tag in my web.xml for one of my
> servlets so that whenever tomcat starts, it will run some code from
> the init() method.

Note that this practice is deprecated: use a ServletContextListener instead.

> Couple of days ago I moved my project to another
> computer on a new tomcat installation and after a while I decided to
> remove the load on startup tag from web.xml  and I also deleted the
> code in the init() method in my servlet. Weird thing is, whenever I
> start tomcat now, I look in catalina.out and at startup I can see
> some exceptions from that servlet, like tomcat would still try to run
> the servlet at startup. Why is tomcat still trying to load the
> servlet on startup? deleting load-on startup from web.xml is not
> enough? do I still have to configure something else? 10x a lot

Are you sure you cleaned-out the old installation? It may be running the
code that is there. Also make sure you have purged your log files in
case that is somehow confusing the issue (looking at old logs).

- -chris

Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla -


To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message