• 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

"listener" tag in web.xml

 
Ranch Hand
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi ranchers,

For debugging and testing purpose , i used tomcat 6.0 and put my

listener

tag in web.xml as follow .

This configuration , run fine.
Now when i give this code to my colleague , which wants this code to be integrated with our web app which uses struts 1.2 and tomcat 5.5 .
Now my problem is, the listener tag is not validate into our web apps web.xml , when we run app, the tomcat throws exception at this listener tag , saying cant parse the web.xml,

Now give me some solution , what goes wrong here ..

Thanks,

Regards,
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What is the exact message printed in Tomcat's log ?
 
Ranch Hand
Posts: 341
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The <listener-class> tag takes the fully qualified class name. What I see that initially you might not have had packages during testing but, when you integrate the packages might exist.

Also, please post the error log, it will be helpful to comment on the actual problem.
 
Sagar Rohankar
Ranch Hand
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

What I see that initially you might not have had packages during testing but, when you integrate the packages might exist.


Yes Anand , that is one issue , and i solved it .. Plus ,1 more interesting thing i learned is that , the xml schema i am using here, i am using 2.5 , but my colleague uses 2.3 , which doest not support listener tag !! we solved it , thanks for the reply.

regards,
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

but my colleague uses 2.3 , which doest not support listener tag


Servlets 2.3 support listeners.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic