This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Servlets and the fly likes cannot load servlet name : Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "cannot load servlet name :" Watch "cannot load servlet name :" New topic
Author

cannot load servlet name :

Peter Straw
Ranch Hand

Joined: Jan 08, 2002
Posts: 79
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

Joined: Jan 08, 2002
Posts: 79
- 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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: cannot load servlet name :
 
Similar Threads
Web applications with various configurations files
load on startup
Can i run a servlet on tomcat startup?
<load-on-startup>
Scheduler Servlet