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)
I was running it on MAC OS. I appreciate your help.
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)
Joined: Feb 15, 2009
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.