deltaspike-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dan Allen <dan.j.al...@gmail.com>
Subject Re: Issues with arquillian archives on WebLogic 12c -> wrong beans.xml file location
Date Mon, 20 Feb 2012 15:35:58 GMT
On Mon, Feb 20, 2012 at 10:33, Dan Allen <dan.j.allen@gmail.com> wrote:

> On Mon, Feb 20, 2012 at 10:18, Pete Muir <pmuir@redhat.com> wrote:
>
>>
>> On 20 Feb 2012, at 15:10, Dan Allen wrote:
>>
>> > The location of beans.xml in a war that Rudy suggests is correct,
>> according
>> > to the spec.
>> >
>> > We've discussed this issue frequently on various mailinglists and forums
>> > because the general consensus is that a web archive should support honor
>> > either location. The roadblock at the moment is that the only valid
>> > location according to the spec document is WEB-INF/beans.xml, per
>> chapter
>> > 12.1.
>> >
>> > 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.
>> >> ...
>> >>
>> >>   - In an application deployed as a war, the container searches every
>> >>   bean archive bundled with or referenced by the war. The bean
>> archives might
>> >>   be library jars or the WEB-INF/classes directory.
>> >>
>> >> Arquillian requires the BeanManager to be available to the war, so the
>> > beans.xml needs to be placed in the compliant location.
>> >
>> > Note that CDI implementations have added support for
>> > WEB-INF/classes/beans.xml to support jetty:run and tomcat:run
>> development
>> > deployments. Those are non-standard atm.
>>
>
Correct, that should have read WEB-INF/classes/META-INF/beans.xml (I was
missing the META-INF).


>  >
>> > I believe this is a spec change requested for CDI 1.1 (though I don't
>> see
>> > it atm).
>>
>> It is. I'm not sure if there is an issue either, so feel free to create
>> one.
>>
>
> My search turned up empty, so I'll take the liberty to create one.
>
> -Dan
>
>
-- 
Dan Allen
Principal Software Engineer, Red Hat | Author of Seam in Action
Registered Linux User #231597

http://google.com/profiles/dan.j.allen
http://mojavelinux.com
http://mojavelinux.com/seaminaction

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message