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

Error LlistenerStart

 
Bahman Robin
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,
I understand there are lots of Tomcat listenerStart error on the web happening in different situations. Might be it's due to the lack of stack trace.
Mine is one of them, might be there is a tiny mistake in somewhere, I don't know by now. I want to try it here too. This is the situation:
I was testing ServletContextListener then noticed the status of my web app directory (ListenerTest) showing on tomcat manager is "false".
Server log shows: error listenerStart.

web dir : webapps->ListenerTest->WEB-INF->web.xml, classes -> com -> example ->Dog.class, ListenerTester.class, MyServletContextListener.class.
CLASSPATH : /library/Tomcat6/lib/(servlet-api.jar)

Dog.class:

--------
ListenerTester class:

--------
MyServletContextListener class:

------------
web.xml:


I was running it on MAC OS. I appreciate your help.
 
Frits Walraven
Creator of Enthuware JWS+ V6
Saloon Keeper
Pie
Posts: 2419
95
Android Chrome Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Bahman,

Thanks for starting a new thread. Please use the code tags when posting code, that makes it easier to read.

I don't see any obvious mistakes. You can try to things: deploy the same web-app on another server (Tomcat5.5, Jboss, Glasfish) and the other option is to make the .war file by hand, just to verify that the structure is not the problem (war by hand)

Regards,
Frits
 
Bahman Robin
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It works now.
Thanks Frits for your help.
I created a war file and that's it.
But I still do not know what exactly the container was missing during running the test before creating war file.
cheers,
Bahman
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic