Mohamed Alatroush wrote:add this to the servlet definition at web.xml
<load-on-startup>1</load-on-startup>
for eg
<servlet>
<servlet-name>MyServlet</servlet-name>
<servlet-class>servlet.MyServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
true, but take care of the "load-on-startup" parameter.
it can depend the kind of server you are deploying on.
sun servers and websphere CAN use different numbers.
i remember at the time that on the sun server it had to be "-1" or it didn't work.
Don't know about
tomcat itself. also 1 i supose.