Yes,I'm an idiot. I had an empty context listener class by the same name in another module that was loaded in the JVM before the module the real context listener class lived in. thank you
On Sun, Jul 31, 2011 at 3:56 AM, Andrea Aime <[email protected]> wrote: > On Sun, Jul 31, 2011 at 7:48 AM, Alessandro Ferrucci > <[email protected]> wrote: >> Hello, >> I have a custom ServletContextListener that I've packaged and added to >> webapps/geoserver/WEB-INF/lib >> >> I've added a <listener> entry to web.xml >> >> <listener> >> <listener-class>myContextListenerClass</listener-class> >> </listener> >> >> this is configured as the last listener in the web.xml. >> >> The Context listener is not getting invoked when I start geoserver, is >> there anything more I need to do that I'm forgetting? I'm running >> under jetty. > > Not really? Listeners are managed by the web container, GeoServer > cannot do anything to prevent them from running. > The two steps you need to do, normally, are: > - declare the listener in web.xml > - make sure the listener class in in WEB-INF/classes (or if it's in a jar, > in WEB-INF/lib) > - make sure all the libraries that the class depends on are in the > classpath as well > > Besides that, I'd just monitor the jetty logs (not the geoserver ones) > for errors > > Hope this helps > > Cheers > Andrea > >> thanks >> -- >> Signed, >> Alessandro Ferrucci >> >> ------------------------------------------------------------------------------ >> Got Input? Slashdot Needs You. >> Take our quick survey online. Come on, we don't ask for help often. >> Plus, you'll get a chance to win $100 to spend on ThinkGeek. >> http://p.sf.net/sfu/slashdot-survey >> _______________________________________________ >> Geoserver-users mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/geoserver-users >> >> > > > > -- > ------------------------------------------------------- > Ing. Andrea Aime > GeoSolutions S.A.S. > Tech lead > > Via Poggio alle Viti 1187 > 55054 Massarosa (LU) > Italy > > phone: +39 0584 962313 > fax: +39 0584 962313 > > http://www.geo-solutions.it > http://geo-solutions.blogspot.com/ > http://www.youtube.com/user/GeoSolutionsIT > http://www.linkedin.com/in/andreaaime > http://twitter.com/geowolf > > ------------------------------------------------------- > -- Signed, Alessandro Ferrucci ------------------------------------------------------------------------------ Got Input? Slashdot Needs You. Take our quick survey online. Come on, we don't ask for help often. Plus, you'll get a chance to win $100 to spend on ThinkGeek. http://p.sf.net/sfu/slashdot-survey _______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
