File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Error LlistenerStart Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Error LlistenerStart" Watch "Error LlistenerStart" New topic
Author

Error LlistenerStart

Bahman Robin
Greenhorn

Joined: Feb 15, 2009
Posts: 4
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
Bartender

Joined: Apr 07, 2010
Posts: 1717
    
  25

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

Joined: Feb 15, 2009
Posts: 4
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Error LlistenerStart