Also is the piece of code inside all.providers.ProviderServlet servlet class or a class method called from this servlet ? If it is under some other servlet the servlet config parameter will not be available.
you are overridding init(ServletConfig) method here. while overridding this method you should first call super.init(config). without that config won't be available to your webapp. a much better thing would be to override the public void init() method and provide your initialization code there.
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop