[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-1246) pages.xml fails to load during application startup

Mike Quilleash (JIRA) jira-events at lists.jboss.org
Sun May 13 12:56:52 EDT 2007

    [ http://jira.jboss.com/jira/browse/JBSEAM-1246?page=comments#action_12362151 ] 
Mike Quilleash commented on JBSEAM-1246:

I have a application scope component that has @Startup and tries to call getPage() during its @Create method.  The @Create gets called during application startup.  It is not possible in this use-case to remove the @Startup.

I am dynamically adding page actions to certain pages depending on components installed in the system.  The components get scanned at startup and page actions installed.  At the moment I am hacking round this problem by reflectively calling createPage() in Pages.

> pages.xml fails to load during application startup
> --------------------------------------------------
>                 Key: JBSEAM-1246
>                 URL: http://jira.jboss.com/jira/browse/JBSEAM-1246
>             Project: JBoss Seam
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.2.1.GA
>         Environment: Any
>            Reporter: Mike Quilleash
> pages.xml will not be found by the resource loader when the Pages component is @Created during startup ie outside a JSF request.  One of my components that queries the Pages component is causing the component to be created and look for its pages outside a JSF request.
> The only resource lookup that can succeed for something in WEB-INF is the ExternalContext.getResource() but this is not available outside a JSF request. 
> Using ServletContext.getResource() will work instead however this is not portable to Portlets etc.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the seam-issues mailing list