[seam-issues] [JBoss JIRA] Commented: (SEAMXML-3) seam-xml cannt real beans.xml from the servlet context

Dan Allen (JIRA) jira-events at lists.jboss.org
Fri Apr 2 00:58:37 EDT 2010


    [ https://jira.jboss.org/jira/browse/SEAMXML-3?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12523593#action_12523593 ] 

Dan Allen commented on SEAMXML-3:
---------------------------------

Quoting Stuart:

"To solve it, I will register a listener with a web fragment to get hold of the ServletContext. This will work in a war deployment, but not an ear (in an ear the Listener would need to be registered manually in web.xml in each war, because as I understand it web fragments are only picked up from WEB-INF/lib )."

You should also consider using the resource loading SPI that was added to Weld Extensions. Unfortunately, it does not support loading resources from the servlet context as of yet. So perhaps you could look into adding the support to that library, hence solving your problem here.

> seam-xml cannt real beans.xml from the servlet context
> ------------------------------------------------------
>
>                 Key: SEAMXML-3
>                 URL: https://jira.jboss.org/jira/browse/SEAMXML-3
>             Project: Seam XML Bean Config
>          Issue Type: Bug
>            Reporter: Stuart Douglas
>
> seam-xml needs access to the servlet context to get access to WEB-INF/beans.xml.

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

        


More information about the seam-issues mailing list