I will look into it. Can you please create an jira issue here:
http://issues.ops4j.org/browse/PAXWEB

On Thu, Apr 9, 2009 at 12:01 AM, Josh Holtzman <[email protected]> wrote:
> 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
>



-- 
Alin Dreghiciu
http://www.ops4j.org - New Energy for OSS Communities - Open
Participation Software.
http://www.qi4j.org - New Energy for Java - Domain Driven Development.
Looking for a job.
Sent from Cluj-Napoca, CJ, Romania

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

Reply via email to