[webbeans-issues] [JBoss JIRA] Commented: (WBX-38) ServletWebBeanDiscovery should scan /META-INF/beans.xml
Dan Allen (JIRA)
jira-events at lists.jboss.org
Tue May 5 01:35:46 EDT 2009
[ https://jira.jboss.org/jira/browse/WBX-38?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12465687#action_12465687 ]
Dan Allen commented on WBX-38:
------------------------------
Turns out my test wouldn't work because the code I was testing was broken. I was looking for the resource /META-INF/beans.xml when it should have been META-INF/beans.xml (no leading slash). Once I fixed the code, I was able to create a test.
> ServletWebBeanDiscovery should scan /META-INF/beans.xml
> -------------------------------------------------------
>
> Key: WBX-38
> URL: https://jira.jboss.org/jira/browse/WBX-38
> Project: Web Beans Extensions
> Issue Type: Bug
> Components: Servlet Containers
> Affects Versions: Servlet Containers 1.0.0.CR1
> Reporter: Dan Allen
> Assignee: Dan Allen
> Fix For: Servlet Containers 1.0.0.CR2
>
> Original Estimate: 15 minutes
> Remaining Estimate: 15 minutes
>
> ServletWebBeanDiscovery.scan() looks for beans.xml rather than /META-INF/beans.xml. This should be fixed to match the spec. The intro to chapter 11 reads:
> Bean classes must be deployed in an EAR, WAR, EJB-JAR or JAR archive or directory in the application classpath that has a file named beans.xml in the metadata directory (META-INF, or WEB-INF in the case of a WAR). If a bean is deployed to a location that is not in the application classpath, or does not contain a file named beans.xml in the metadata directory, it will not be discovered by the container.
--
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 weld-issues
mailing list