Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Catalina: IllegalStateException

 
Lalit Mehra
Ranch Hand
Posts: 384
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 384
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
!!! got the error ... !!!

had to mark the listener class as public ...

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic