cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Hartmann (JIRA)" <>
Subject [jira] Commented: (COCOON-2262) container.refresh() is called before embeddedServlet.init()
Date Tue, 21 Jul 2009 11:21:14 GMT


Andreas Hartmann commented on COCOON-2262:

Unfortunately the patch only works if the block containing the servlet is the only one that
is running. It looks like the servlet is registered as a listener to the context and onApplicationEvent()
is called when a different ServletFactoryBean is initialized, before the init() method of
the servlet has been called.

> container.refresh() is called before embeddedServlet.init()
> -----------------------------------------------------------
>                 Key: COCOON-2262
>                 URL:
>             Project: Cocoon
>          Issue Type: Bug
>          Components: - Servlet service framework
>    Affects Versions: 2.2-dev (Current SVN)
>            Reporter: Andreas Hartmann
>            Priority: Minor
>         Attachments: COCOON-2262.txt
> I get an NPE in an embedded servlet (CXFServlet from Apache CXF) because it references
the servletConfig when onApplicationEvent() is processed. Apparently this happens because
the ServletFactoryBean calls
>   container.refresh()
> before
>   this.embeddedServlet.init(blockServletConfig).

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message