Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

adding listener to web.xml messes up everything  RSS feed

 
Monica Moncho
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello,

does anybody know why adding the <listener> tag to the web.xml makes none of my JSPs be found by Tomcat?

This is how the web.xml looks like. Without the listener part, my JSPs show up, with it, I get the request resource is not available error.


Thanks!
 
James Swan
Ranch Hand
Posts: 403
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check to make sure you don't have a typo in the listner tag, eg. servetclasses... vs servletclasses...
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66141
141
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Most likely the web app isn't loading because of an error either locating the listener class or while the listener was executing.

It took me 2 seconds to spot the typo:



wanna bet that's the problem?
[ July 27, 2005: Message edited by: Bear Bibeault ]
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66141
141
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<bumping heads!>
 
Monica Moncho
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
oh my......

hoe embarrasing. To think I took the listener tag and located at the beginning, at the end, in the middle.....

thanks, and please don't tell anyway, I'm embarrased.
 
Jack Wiesenthaler
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Monica Moncho:
oh my......

hoe embarrasing.


I believe that should be how embarrassing
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66141
141
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No problem Monica.

Reminds me of the time I spent hours staring at a piece of code trying to find the problem, only to have someone come up behind me, point at the screen and say "what's that semi-colon doing there?"
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!