[webbeans-dev] ejb-jar.xml is not in the root

Gavin King gavin at hibernate.org
Fri Nov 14 11:38:54 EST 2008


Web Beans only discovers stuff deployed in archives with web-beans.xml
files. Never in any other archive.

On Fri, Nov 14, 2008 at 8:50 AM, Pete Muir <pmuir at redhat.com> wrote:
> We also have a forum topic on this:
>
> http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4189397#4189397
>
> Here are some questions about the discover:
>
>> * any web-beans.xml file in any root directory of the application
>> classpath,
>
>> * any ejb-jar.xml file in any root directory of the application classpath
>> that also has a web-beans.xml file, and
>
>
> What does this mean? It seems more specific than the first one.
>
>> * any Java class in any archive or directory in the classpath that has a
>> web-beans.xml file in the root directory.
>
> I think this means:
>
> "give me all the classes from any shared (lib/) jar that has web-beans.xml
> in it's metadata path". Gavin, is that right?
>
>
> On 14 Nov 2008, at 23:39, Pete Muir wrote:
>
>> Whilst working on the web bean discovery, Ales and I hit a spec issue. In
>> 10.1 of the current spec 20081105 it says:
>>
>> * any ejb-jar.xml file in any root directory of the application classpath
>> that also has a web-beans.xml file, and
>>
>> but ejb-jar.xml is placed in META-INF/
>>
>> Also, Ales thinks that web-beans.xml should be in META-INF/ as this is
>> consistent with other specs.
>>
>> Also this causes some problems when doing a deployer for JBoss 5, Ales can
>> explain more, as I don't understand exactly why.
>> _______________________________________________
>> webbeans-dev mailing list
>> webbeans-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/webbeans-dev
>
> _______________________________________________
> webbeans-dev mailing list
> webbeans-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/webbeans-dev
>



-- 
Gavin King
gavin.king at gmail.com
http://in.relation.to/Bloggers/Gavin
http://hibernate.org
http://seamframework.org



More information about the weld-dev mailing list