permaculture playing cards*
The moose likes Servlets and the fly likes Catalina: IllegalStateException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Catalina: IllegalStateException" Watch "Catalina: IllegalStateException" New topic

Catalina: IllegalStateException

Lalit Mehra
Ranch Hand

Joined: Jun 08, 2010
Posts: 384

Hi all I was just going through the stuff once again and decided to do it the HeadFirst Way so chose the to implement the listener mechanism to an old book example and got this error ...

FAIL - Encountered exception java.lang.IllegalStateException: Container org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/Beer-v1] has not been started

on adding the following lines to the web.xml file

this is the listener class
Lalit Mehra
Ranch Hand

Joined: Jun 08, 2010
Posts: 384

!!! got the error ... !!!

had to mark the listener class as public ...

I agree. Here's the link:
subject: Catalina: IllegalStateException
Similar Threads
Servlet filter question
programmably reload servlet context data
Head First code compiling?
Problems with Tomcat
Problem invoking a servlet directly from FireFox browser