[weld-issues] [JBoss JIRA] Commented: (WELD-780) Place beans.xml under WEB-INF instead of WEB-INF/classes/META-INF in jsf/permalink example

Marek Schmidt (JIRA) jira-events at lists.jboss.org
Thu Jun 30 03:49:23 EDT 2011


    [ https://issues.jboss.org/browse/WELD-780?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12611922#comment-12611922 ] 

Marek Schmidt commented on WELD-780:
------------------------------------

Note that the same issue prevents the example to deploy on JBoss AS 7.0.0.CR1

> Place beans.xml under WEB-INF instead of WEB-INF/classes/META-INF in jsf/permalink example
> ------------------------------------------------------------------------------------------
>
>                 Key: WELD-780
>                 URL: https://issues.jboss.org/browse/WELD-780
>             Project: Weld
>          Issue Type: Task
>          Components: Examples
>    Affects Versions: 1.1.0.Beta2
>            Reporter: Sivakumar Thyagarajan
>            Assignee: Ales Justin
>            Priority: Minor
>              Labels: examples
>             Fix For: 1.1.2.Final
>
>
> As per Section 12.1 of CDI 1.0 specification: 
> > • The WEB-INF/classes directory of a war is a bean archive if there is a file named beans.xml in the WEB-INF directory of the war. 
> > • A directory in the JVM classpath is a bean archive if it has a file named beans.xml in the META-INF directory. 
> However the jsf/permalink sample bundles beans.xml under WEB-INF/classes/META-INF. This may not work in other containers (for instance see http://java.net/jira/browse/GLASSFISH-15009 ). So request to move the file (in weld-core): from 
> examples/jsf/permalink/src/main/resources/META-INF/beans.xml 
> to 
> examples/jsf/permalink/src/main/webapp/WEB-INF/beans.xml 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the weld-issues mailing list