• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Error LlistenerStart

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Creator of Enthuware JWS+ V6
Posts: 3411
320
Android Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic