I'm trying to deploy a servlet and a servlet listener using Pax Web's extended HTTP service. My servlet (actually, it's JBoss' resteasy servlet) calls getServletContext() in it's init(ServletConfig) method, and an exception is thrown:

java.lang.IllegalStateException: ServletConfig has not been initialized
at javax.servlet.GenericServlet.getServletContext(GenericServlet.java:185)

I have a few questions about pax web:

1) When I register a servlet, does pax call that servlet's init() method?
2) servlet.getServletConfig() seems to be null.  Is this expected?
3) getServletContext() is also null, causing genericServlet to throw an exception.

Do I need to rewrite these servlets so they do not rely on traditional servlet-spec stuff, or am I missing some critical step(s)?

Thanks,
Josh

--
Josh Holtzman
Educational Technology Services, UC Berkeley
[email protected]



_______________________________________________
general mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/general

Reply via email to