https://groups.google.com/d/topic/google-guice/KxOiGv6g2Qw/discussion
No offense, but when I see these "static Logger" posts my frontal lobe immediately shuts down. The above link should get you going. Please feel free to do further searches of the group and www.stackoverflow.com. The short-cut rule-of-thumb you may be looking for is: if you have a class that leverages Guice, via a Module with a binding for that class, which you configure Guice with via "Guice.createInjector(new MyModule());" , then using that same statement in your listener will work as well. In short, if your unit test works, barring that static/singleton issue I mentioned, it should also work in the web app if configured correctly. Feel free to post you web.xml, your Listener code, the code for the module your listener uses, and an abbreviated class. I would be more than happy to look at it. -- You received this message because you are subscribed to the Google Groups "google-guice" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-guice/-/45chuKl8K9QJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-guice?hl=en.
