• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

cannot load servlet name :

 
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
When I start my webapp, I am getting the following error from tomcat -
cannot load servlet name: Timer: myCo.package.MyTimer

Another servlet( called DatabaseAccess) in the same package that has the <load-on-startup> set to 1 starts ok, so why doesn't MyTimer?
My web.xml file looks like this:
<servlet>
<servlet-name>DatabaseAccess</servlet-name>
<servlet-class>myCo.package.DatabaseAccess</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet>
<servlet-name>Timer</servlet-name>
<servlet-class>myCo.package.MyTimer</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
Thanks in advance
 
Peter Straw
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
- please ignore this post, the reason it wasn't working was that the init() had been commented out, so the servlet was prob loading ok but not doing what it was meant to do.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic