Return-Path: X-Original-To: apmail-openwebbeans-user-archive@www.apache.org Delivered-To: apmail-openwebbeans-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AE0EBB7A0 for ; Mon, 16 Jan 2012 09:29:48 +0000 (UTC) Received: (qmail 65216 invoked by uid 500); 16 Jan 2012 09:29:48 -0000 Delivered-To: apmail-openwebbeans-user-archive@openwebbeans.apache.org Received: (qmail 65138 invoked by uid 500); 16 Jan 2012 09:29:45 -0000 Mailing-List: contact user-help@openwebbeans.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@openwebbeans.apache.org Delivered-To: mailing list user@openwebbeans.apache.org Received: (qmail 64980 invoked by uid 99); 16 Jan 2012 09:29:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Jan 2012 09:29:41 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ovaraksin@googlemail.com designates 209.85.160.178 as permitted sender) Received: from [209.85.160.178] (HELO mail-gy0-f178.google.com) (209.85.160.178) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Jan 2012 09:29:34 +0000 Received: by ghrr14 with SMTP id r14so1616685ghr.9 for ; Mon, 16 Jan 2012 01:29:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=Msw7l6IgQ2MV0gnz1Evit1Q3JvoscdwfdU53ZbTRU/A=; b=pqsmrfgvS7m6/q/NR/EVoNJa85/hQFrlevDJEl0nSUvdV6BT4l2fqzI72x0S9kSE11 t8o8xbZEf4UDAVylEdzKcQmo+jNnFjxAqMxATMAqNu8PPNqwMEkqFGzZWj2ZxJxekmje IiOYSTZvFhbGr1flmRVaEe5uMoLHxBgpbPOLo= MIME-Version: 1.0 Received: by 10.236.77.170 with SMTP id d30mr14619415yhe.67.1326706153453; Mon, 16 Jan 2012 01:29:13 -0800 (PST) Received: by 10.100.190.9 with HTTP; Mon, 16 Jan 2012 01:29:13 -0800 (PST) In-Reply-To: References: <1326384573.4862.YahooMailNeo@web38207.mail.mud.yahoo.com> <1326387029.62322.YahooMailNeo@web38206.mail.mud.yahoo.com> <1326397074.82075.YahooMailNeo@web27803.mail.ukl.yahoo.com> <4F0F3CEA.4030105@googlemail.com> <1326399109.86497.YahooMailNeo@web27801.mail.ukl.yahoo.com> <4F0F47E2.1050704@googlemail.com> Date: Mon, 16 Jan 2012 10:29:13 +0100 Message-ID: Subject: Re: Yan: Yan: Help! OWB on JBoss 5.x not running From: Oleg Varaksin To: user@openwebbeans.apache.org Content-Type: multipart/alternative; boundary=20cf300514b4ff77fd04b6a1d80d X-Virus-Checked: Checked by ClamAV on apache.org --20cf300514b4ff77fd04b6a1d80d Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi guys, Scannotation adopted by OWB can't handle VFS (I've reviewed AnnotationDB). As result OWB is useless in JBoss > 5.x. I suggest to use Reflections framework (advanced variant of scannotation) - http://code.google.com/p/reflections/ Reflections can handle VFS. OWB could use this workaround at least http://code.google.com/p/reflections/issues/detail?id=3D76 Unfortunately, b= ut even Reflections has trouble with JBoss' VFS. There is a reported issue http://code.google.com/p/reflections/issues/detail?id=3D93 But I think we c= an use this workaround for "content" then http://stackoverflow.com/questions/4899371/why-cant-i-open-a-jboss-vfs-url I could try to extend / improve scanning in OWB, but I haven't commit rights. Should I create an issue ticket? I think this is an important issue for all JBoss users. Another option would be to re-implement scanning from scratch with VFS. VFS is an abstraction layer and I guess, we could handle proper all kinds of URLs and protocolls then. This would be transparent and convenient without any hacks with checking some substrings in URLs, etc. By the way, the check private String isJarUrl(String urlPath) in AnnotationDB is not correct in my opinion. AFAIK JBoss' JAR URLs don't end with "!/" in common case. They look e.g. as follows: vfszip:/E:/Servers= / jboss-5.0.1.GA/server/web/deployers/ejb3.deployer/jboss-ejb3-deployer.jar/T= he same is for WARs. I saw in debugger that my WAR file was handled as a single file and not as an archive. Cheers. Oleg. Ok. We can probably do this trick > http://stackoverflow.com/questions/4899371/why-cant-i-open-a-jboss-vfs-ur= lBut where? In AnnotationDB or FileIterator? > > Hi Oleg! >> >> You might also take a look at the OWB Abstract AbstractMetaDataDiscovery= . >> I already had to pull the AnnotationDb class into OWB itself because I >> needed to fix a scannotation bug. >> >> >> If you need help, lots of us are most times also online on our IRC chann= el >> >> >> irc.freenode.net #openwebbeans >> >> So we can explain you a bit more interactive about which parts to take >> care off. >> >> >> LieGrue, >> strub >> >> >> >> ----- Original Message ----- >> >>> From: Oleg Varaksin >>> To: user@openwebbeans.apache.org >>> Cc: >>> Sent: Thursday, January 12, 2012 9:04 PM >>> Subject: Re: Yan: Yan: Help! OWB on JBoss 5.x not running >>> >>> Hi Mark, >>> >>> Unfortunately, but we have to stick with JBoss 5.0.1 due to customers >>> environment. It runs very well with JSF 2 and PrimeFaces, by the way. I >>> will see what I can do with OWB and this JBoss version. If I will be >>> able to get it running, I will publish here my solution. I'm going to >>> try to fix this issue at this edge first >>> >>> Caused by: java.lang.RuntimeException: java.lang.NullPointerException >>> at >>> >>> org.scannotation.archiveiterator.FileIterator.(FileIterator.java:= 28) >>> at >>> >>> org.apache.webbeans.corespi.scanner.AnnotationDB.scanUrlPath(Annotation= DB.java:312) >>> at >>> >>> org.apache.webbeans.corespi.scanner.AnnotationDB.scanArchives(Annotatio= nDB.java:260) >>> at >>> >>> org.apache.webbeans.web.scanner.WebScannerService.configure(WebScannerS= ervice.java:68) >>> ... 62 more >>> Caused by: java.lang.NullPointerException >>> at >>> >>> org.scannotation.archiveiterator.FileIterator.create(FileIterator.java:= 35) >>> at >>> >>> org.scannotation.archiveiterator.FileIterator.(FileIterator.java:= 24) >>> >>> Exchange Weld by writing a module Def. for OWB sounds good. OWB rocks. >>> Good luck with your intention. >>> >>> Greetings from Black Forest (Germany). >>> >>> Oleg Varaksin >>> My blog: http://ovaraksin.blogspot.com/ >>> My project: http://code.google.com/p/primefaces-extensions/ >>> >>> hi! >>>> >>>> +1 to the vfs problem. >>>> >>>> Also please note that JBoss5.1 vfs is broken anyway because it doesn'= t >>>> >>> get cleaned up properly. In our environment the update from JBoss4 to >>> JBoss5 >>> caused our Disks (60GB free space) to be filled up all 2 days ... >>> >>>> We went back to JBoss4 for this legacy application. jb6 is not really >>>> good >>>> >>> as well, but JBoss AS7.1 was really good. Too bad it ships with Weld >>> instead of >>> OWB ;) >>> >>>> There is an option to exchange Weld by writing a module Definition fo= r >>>> OWB. >>>> >>> Maybe I'll do this when I find some free time (which is unlikely to >>> happen >>> soon). >>> >>>> LieGrue, >>>> strub >>>> >>>> >>>> ________________________________ >>>>> From: Gurkan Erdogdu >>>>> To: >>>>> >>>> "user@openwebbeans.apache.org" >>> >>>> Sent: Thursday, January 12, 2012 5:50 PM >>>>> Subject: Yan: Yan: Help! OWB on JBoss 5.x not running >>>>> >>>>> >>>>> Problem is that scannotation has problems with JBoss 5 VFS. IMO, you >>>>> >>>> have to get scannotation source and update it to work with vfs:// >>> protocol. >>> >>>> >>>>> Gurkan >>>>> >>>>> >>>>> >>>>> >>>>> ________________________________ >>>>> Kimden: Oleg Varaksin >>>>> Kime: user@openwebbeans.apache.org >>>>> G=C3=B6nderildi=C4=9Fi Tarih: 12 Ocak 2012 18:38 Per=C5=9Fembe >>>>> Konu: Re: Yan: Help! OWB on JBoss 5.x not running >>>>> >>>>> Hi Gurkan, >>>>> >>>>> I have scannotation-1.0.2.jar below WEB-INF/lib. This is already the >>>>> last version. Do you think, I should place it into JBoss lib folder = by >>>>> reason of JBoss classloader? >>>>> >>>>> Thanks. Oleg. >>>>> >>>>> 2012/1/12 Gurkan Erdogdu: >>>>> >>>>>> Hi Oleg, >>>>>> >>>>>> Problem is that OWB Scannotation uses file related logic to resolve >>>>>> >>>>> metadata >>> >>>> etc. Probably current scanner implementation (using scannotation) >>>>>> >>>>> must be >>> >>>> updated for JBoss. In JBoss there is a vfs:// related URLs that may >>>>>> >>>>> not work >>> >>>> with current scanner. >>>>>> >>>>>> Regards; >>>>>> >>>>>> Gurkan Erdogdu >>>>>> CTO, http://software.mechsoft.com.tr >>>>>> >>>>>> ________________________________ >>>>>> Kimden: Oleg Varaksin >>>>>> Kime: user@openwebbeans.apache.org >>>>>> G=C3=B6nderildi=C4=9Fi Tarih: 12 Ocak 2012 16:02 Per=C5=9Fembe >>>>>> Konu: Re: Help! OWB on JBoss 5.x not running >>>>>> >>>>>> Hi Rudi, >>>>>> >>>>>> Thanks for your reply! Yes, I have an empty beans.xml >>>>>> >>>>>> >>>>>> >>>>> xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance"; >>>>>> xsi:schemaLocation=3D"http://java.sun.com/xml/ns/javaee >>>>>> http://java.sun.com/xml/ns/javaee/beans_1_0.xsd";> >>>>>> >>>>>> >>>>>> >>>>>> I don't use geronimo-interceptor because >>>>>> >>>>> javax.enterprise.cdi-api >>> >>>> already includes jboss-interceptor. But I will try it. >>>>>> >>>>>> Thanks. Oleg. >>>>>> >>>>>> 2012/1/12 Rudy De Busscher: >>>>>> >>>>>>> Hello Oleg, >>>>>>> >>>>>>> Did you define a (empty) beans.xml file under web-inf directory >>>>>>> >>>>>> ? >>> >>>> When I useOWB in Tomcat (different thing but for OWB comparable >>>>>>> >>>>>> to a J2EE >>> >>>> 5 >>>>>>> server like Jboss 5) I have these dependencies (some of them, >>>>>>> >>>>>> you don't >>> >>>> have >>>>>>> at this moment) >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>> >>>>> >>>>>>> org.apache.openwebbeans >>> >>>> >>>>>>> openwebbeans-impl >>> >>>> ${owb.version} >>>>>>> runtime >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> org.apache.openwebbeans >>> >>>> openwebbeans-resource >>>> >>>>> ${owb.version} >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> org.apache.geronimo.specs >>> >>>> >>>>>>> geronimo-interceptor_1.1_spec >>> >>>> >>>>>>> ${geronimo_interceptor.version} >>> >>>> >>>>>>> >>>>>>> >>>>>>> >>>> >>>>> >>>>>>> >>>>>>> org.apache.openwebbeans >>> >>>> >>>>>>> openwebbeans-jsf >>> >>>> ${owb.version} >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> org.apache.openwebbeans >>> >>>> openwebbeans-web >>>> >>>>> ${owb.version} >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> org.apache.geronimo.specs >>> >>>> >>>>>>> geronimo-jcdi_1.0_spec >>> >>>> >>>>>>> ${geronimo_cdi.version} >>> >>>> >>>> >>>>> >>>>>>> >>>>>>> >>>>>>> org.apache.geronimo.specs >>> >>>> >>>>>>> geronimo-atinject_1.0_spec >>> >>>> >>>>>>> ${geronimo_atinject.version} >>> >>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> org.apache.openwebbeans >>>> >>>>> >>>>>>> openwebbeans-spi >>> >>>> ${owb.version} >>>>>>> >>>>>>> >>>>>>> >>>>>>> 1.1.2 >>>>>>> >>>>>>> 1.0 >>> >>>> >>>>>>> 1.0 >>> >>>> >>>>>>> 1.0 >>> >>>> >>>>>>> >>>> >>>>> Regards >>>>>>> Rudy >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> Rudy De Busscher >>>>>>> http://www.c4j.be >>>>>>> >>>>>>> >>>>>>> On 12 January 2012 14:05, Oleg >>>>>>> >>>>>> Varaksin wrote: >>> >>>> Hello, >>>>>>>> >>>>>>>> I'm new in this mailing list and I'm trying to use >>>>>>>> >>>>>>> OpenWebBeans along >>> >>>> with JSF 2. Our app server is JBoss 5.0.1.GA. There is >>>>>>>> >>>>>>> already a post >>> >>>> from Thomas and answer from Mark about the OWB and JBoss >>>>>>>> >>>>>>> 5.x. >>> >>>> Unfortunately, but I can not get deployed a simple demo web >>>>>>>> >>>>>>> app in >>> >>>> JBoss 5.0.1. I would be very thankful if somebody could >>>>>>>> >>>>>>> help me. I >>> >>>> show my confguration at >>>>>>>> >>>>>>> first. >>>> >>>>> My pom.xml with dependencies: http://paste.kde.org/185492/ >>>>>>>> >>>>>>>> My JSF beans are simple. They use @Named, @ViewScoped and >>>>>>>> @SessionScoped annotations. @SessionScoped is defined as >>>>>>>> javax.enterprise.context.SessionScoped and @ViewScoped as >>>>>>>> >>>>>>> an extension >>> >>>> ViewScopedExtension.java placed under >>>>>>>> src/main/java/org/apache/webbeans/jsf/scopes. Here is it: >>>>>>>> http://paste.kde.org/185504/ >>>>>>>> >>>>>>>> I have an empty beans.xml below resources/META-INF and a >>>>>>>> >>>>>>> text file >>> >>>> javax.enterprise.inject.spi.Extension below >>>>>>>> resources/META-INF/services. The content of this text file >>>>>>>> >>>>>>> is only one >>> >>>> line: >>>>>>>> >>>>>>> org.apache.webbeans.jsf.scopes.ViewScopedExtension >>>> >>>>> My web.xml has a listener >>>>>>>> org.apache.webbeans.servlet.WebBeansConfigurationListener. >>>>>>>> >>>>>>> Here is >>> >>>> this configuration: http://paste.kde.org/185510/ >>>>>>>> >>>>>>>> Now, if I try to deploy this small web app, I get an >>>>>>>> >>>>>>> exception that >>> >>>> "Initialization of the WebBeans container has >>>>>>>> >>>>>>> failed". Here is the >>> >>>> entire log-file: http://paste.kde.org/185522/ >>>>>>>> >>>>>>>> Do you have an idea what is wrong here? Missing >>>>>>>> >>>>>>> dependencies or wrong >>> >>>> OWB config.? It works fine without OWB. >>>>>>>> >>>>>>>> Thanks a lot in advance for your replies! >>>>>>>> >>>>>>>> Oleg Varaksin >>>>>>>> >>>>>>>> Blog: http://ovaraksin.blogspot.com/ >>>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>> >>>>> >>>>> > > --20cf300514b4ff77fd04b6a1d80d Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi guys,

Scannotation adopted by OWB can't handle VFS (I've= =20 reviewed AnnotationDB). As result OWB is useless in JBoss > 5.x. I=20 suggest to use Reflections framework (advanced variant of scannotation) - http://code.google.com/p= /reflections/ Reflections can handle VFS. OWB=20 could use this workaround at least=20 http= ://code.google.com/p/reflections/issues/detail?id=3D76 Unfortunately,= =20 but even Reflections has trouble with JBoss' VFS. There is a reported= =20 issue http://code.google.com/p/reflections/issues/detail?id=3D93 But I=20 think we can use this workaround for "content" then=20 http://stackoverflow.com/questions/4899371/why-cant-i-open-a-jb= oss-vfs-url

I could try to extend / improve scanning in OWB, but I haven't commit=20 rights. Should I create an issue ticket? I think this is an important=20 issue for all JBoss users. Another option would be to re-implement=20 scanning from scratch with VFS. VFS is an abstraction layer and I guess, we could handle proper all kinds of URLs and protocolls then. This=20 would be transparent and convenient without any hacks with checking some substrings in URLs, etc. By the way, the check

private String isJar= Url(String urlPath)

in AnnotationDB is not correct in my opinion. AFAIK JBoss' JAR URLs don&#= 39;t=20 end with "!/" in common case. They look e.g. as follows:=20 vfszip:/E:/Servers/jboss-5.0.1.GA/server/web/deployers/e= jb3.deployer/jboss-ejb3-deployer.jar/ The same is for WARs. I saw in debugger that my WAR file was handled as a single file and not as an archive.

Cheers. Oleg.


Ok. We can probab= ly do this trick http://stackoverflow.com/que= stions/4899371/why-cant-i-open-a-jboss-vfs-url But where? In Annotation= DB or FileIterator?

Hi Oleg!

You might also take a look at the OWB Abstract AbstractMetaDataDiscovery. I= already had to pull the AnnotationDb class into OWB itself because I neede= d to fix a scannotation bug.


If you need help, lots of us are most times also online on our IRC channel<= br>

irc.freenode.net = #openwebbeans

So we can explain you a bit more interactive about which parts to take care= off.


LieGrue,
strub



----- Original Message -----
From: Oleg Varaksin<ovaraksin@googlemail.com>
To: user@= openwebbeans.apache.org
Cc:
Sent: Thursday, January 12, 2012 9:04 PM
Subject: Re: Yan: Yan: Help! OWB on JBoss 5.x not running

Hi Mark,

Unfortunately, but we have to stick with JBoss 5.0.1 due to customers
environment. It runs very well with JSF 2 and PrimeFaces, by the way. I
will see what I can do with OWB and this JBoss version. If I will be
able to get it running, I will publish here my solution. I'm going to try to fix this issue at this edge first

Caused by: java.lang.RuntimeException: java.lang.NullPointerException
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0at
org.scannotation.archiveiterator.FileIterator.<init>(FileIterator.jav= a:28)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0at
org.apache.webbeans.corespi.scanner.AnnotationDB.scanUrlPath(AnnotationDB.j= ava:312)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0at
org.apache.webbeans.corespi.scanner.AnnotationDB.scanArchives(AnnotationDB.= java:260)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0at
org.apache.webbeans.web.scanner.WebScannerService.configure(WebScannerServi= ce.java:68)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0... 62 more
Caused by: java.lang.NullPointerException
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0at
org.scannotation.archiveiterator.FileIterator.create(FileIterator.java:35)<= br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0at
org.scannotation.archiveiterator.FileIterator.<init>(FileIterator.jav= a:24)

Exchange Weld by writing a module Def. for OWB sounds good. OWB rocks.
Good luck with your intention.

Greetings from Black Forest (Germany).

Oleg Varaksin
My blog: http:= //ovaraksin.blogspot.com/
My project: http://code.google.com/p/primefaces-extensions/

=C2=A0hi!

=C2=A0+1 to the vfs problem.

=C2=A0Also please note that JBoss5.1 vfs is broken anyway because it doesn= 't
get cleaned up properly. In our environment the update from JBoss4 to JBoss= 5
caused our Disks (60GB free space) to be filled up all 2 days ...
=C2=A0We went back to JBoss4 for this legacy application. jb6 is not reall= y good
as well, but JBoss AS7.1 was really good. Too bad it ships with Weld instea= d of
OWB ;)
=C2=A0There is an option to exchange Weld by writing a module Definition f= or OWB.
Maybe I'll do this when I find some free time (which is unlikely to hap= pen
soon).
=C2=A0LieGrue,
=C2=A0strub


=C2=A0________________________________
=C2=A0From: Gurkan Erdogdu<gurkanerdogdu@yahoo.com>
=C2=A0To:
"use= r@openwebbeans.apache.org"<user@openwebbeans.apache.org>
=C2=A0Sent: Thursday, January 12, 2012 5:50 PM
=C2=A0Subject: Yan: Yan: Help! OWB on JBoss 5.x not running


=C2=A0Problem is that scannotation has problems with JBoss 5 VFS. IMO, you=
have to get scannotation source and update it to work with vfs:// protocol.=

=C2=A0Gurkan




=C2=A0________________________________
=C2=A0Kimden: Oleg Varaksin<ovaraksin@googlemail.com>
=C2=A0Kime: user@openwebbeans.apache.org
=C2=A0G=C3=B6nderildi=C4=9Fi Tarih: 12 Ocak 2012 18:38 Per=C5=9Fembe
=C2=A0Konu: Re: Yan: Help! OWB on JBoss 5.x not running

=C2=A0Hi Gurkan,

=C2=A0I have scannotation-1.0.2.jar below WEB-INF/lib. This is already the=
=C2=A0last version. Do you think, I should place it into JBoss lib folder = by
=C2=A0reason of JBoss classloader?

=C2=A0Thanks. Oleg.

=C2=A02012/1/12 Gurkan Erdogdu<gurkanerdogdu@yahoo.com>:
=C2=A0Hi Oleg,

=C2=A0Problem is that OWB Scannotation uses file related logic to resolve<= br>
metadata
=C2=A0etc. Probably current scanner implementation (using scannotation)
must be
=C2=A0updated for JBoss. In JBoss there is a vfs:// related URLs that may<= br>
not work
=C2=A0with current scanner.

=C2=A0Regards;

=C2=A0Gurkan Erdogdu
=C2=A0CTO, h= ttp://software.mechsoft.com.tr

=C2=A0________________________________
=C2=A0Kimden: Oleg Varaksin<ovaraksin@googlemail.com>
=C2=A0Kime: user@openwebbeans.apache.org
=C2=A0G=C3=B6nderildi=C4=9Fi Tarih: 12 Ocak 2012 16:02 Per=C5=9Fembe
=C2=A0Konu: Re: Help! OWB on JBoss 5.x not running

=C2=A0Hi Rudi,

=C2=A0Thanks for your reply! Yes, I have an empty beans.xml

=C2=A0<?xml version=3D"1.0" encoding=3D"UTF-8"?>=
=C2=A0<beans xmlns=3D"http://java.sun.com/xml/ns/javaee";
=C2=A0xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance";<= br> =C2=A0 =C2=A0 =C2=A0 xsi:schemaLocation=3D"http://java.sun.com/xml/ns/javaee=
=C2=A0http://java.sun.com/xml/ns/javaee/beans_1_0.xsd";><= br>
=C2=A0</beans>

=C2=A0I don't use geronimo-interceptor because
javax.enterprise.cdi-api
=C2=A0already includes jboss-interceptor. But I will try it.

=C2=A0Thanks. Oleg.

=C2=A02012/1/12 Rudy De Busscher<rdebusscher@gmail.com>:
=C2=A0Hello Oleg,

=C2=A0Did you define a (empty) beans.xml file under web-inf directory
?
=C2=A0When I useOWB in Tomcat (different thing but for OWB comparable
to a J2EE
=C2=A05
=C2=A0server like Jboss 5) I have these dependencies (some of them,
you don't
=C2=A0have
=C2=A0at this moment)

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <!-- JSR-299 Impl -->

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <dependency>

<groupId>org.apache.openwebbeans</groupId>

<artifactId>openwebbeans-impl</artifactId>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <version>${owb.vers= ion}</version>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <scope>runtime</= scope>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 </dependency>

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <dependency>

<groupId>org.apache.openwebbeans</groupId>
=C2=A0<artifactId>openwebbeans-resource</artifactId>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <version>${owb.vers= ion}</version>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 </dependency>

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <!-- Interceptor API -->
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <dependency>

<groupId>org.apache.geronimo.specs</groupId>

<artifactId>geronimo-interceptor_1.1_spec</artifactId>

<version>${geronimo_interceptor.version}</version>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 </dependency>


=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <!-- JSF Plugin -->
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <dependency>

<groupId>org.apache.openwebbeans</groupId>

<artifactId>openwebbeans-jsf</artifactId>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <version>${owb.vers= ion}</version>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 </dependency>

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <!-- Web Plugin -->
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <dependency>

<groupId>org.apache.openwebbeans</groupId>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <artifactId>openweb= beans-web</artifactId>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <version>${owb.vers= ion}</version>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 </dependency>

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <!-- JSR 299 API -->
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <dependency>

<groupId>org.apache.geronimo.specs</groupId>

<artifactId>geronimo-jcdi_1.0_spec</artifactId>

<version>${geronimo_cdi.version}</version>
=C2=A0</dependency>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <!-- JSR 330 API -->
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <dependency>

<groupId>org.apache.geronimo.specs</groupId>

<artifactId>geronimo-atinject_1.0_spec</artifactId>

<version>${geronimo_atinject.version}</version>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 </dependency>

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <!-- SPI API -->
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <dependency>

=C2=A0<groupId>org.apache.openwebbeans</groupId>

<artifactId>openwebbeans-spi</artifactId>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <version>${owb.vers= ion}</version>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 </dependency>

=C2=A0 =C2=A0 =C2=A0 <properties>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <owb.version>1.1.2</owb.versio= n>

<geronimo_interceptor.version>1.0</geronimo_interceptor.version>= ;

<geronimo_cdi.version>1.0</geronimo_cdi.version>

<geronimo_atinject.version>1.0</geronimo_atinject.version>

=C2=A0</properties>
=C2=A0Regards
=C2=A0Rudy


=C2=A0--
=C2=A0Rudy De Busscher
=C2=A0http://www.c4j.be


=C2=A0On 12 January 2012 14:05, Oleg
Varaksin<o= varaksin@googlemail.com> =C2=A0 wrote:
=C2=A0Hello,

=C2=A0I'm new in this mailing list and I'm trying to use
OpenWebBeans along
=C2=A0with JSF 2. Our app server is JBoss 5.0.1.GA. There is
already a post
=C2=A0from Thomas and answer from Mark about the OWB and JBoss
5.x.
=C2=A0Unfortunately, but I can not get deployed a simple demo web
app in
=C2=A0JBoss 5.0.1. I would be very thankful if somebody could
help me. I
=C2=A0show my confguration at
=C2=A0first.
=C2=A0My pom.xml with dependencies: http://paste.kde.org/185492/

=C2=A0My JSF beans are simple. They use @Named, @ViewScoped and
=C2=A0@SessionScoped annotations. @SessionScoped is defined as
=C2=A0javax.enterprise.context.SessionScoped and @ViewScoped as
an extension
=C2=A0ViewScopedExtension.java placed under
=C2=A0src/main/java/org/apache/webbeans/jsf/scopes. Here is it:
=C2=A0http://pa= ste.kde.org/185504/

=C2=A0I have an empty beans.xml below resources/META-INF and a
text file
=C2=A0javax.enterprise.inject.spi.Extension below
=C2=A0resources/META-INF/services. The content of this text file
is only one
=C2=A0line:
=C2=A0org.apache.webbeans.jsf.scopes.ViewScopedExtension
=C2=A0My web.xml has a listener
=C2=A0org.apache.webbeans.servlet.WebBeansConfigurationListener.
Here is
=C2=A0this configuration: http://paste.kde.org/185510/

=C2=A0Now, if I try to deploy this small web app, I get an
exception that
=C2=A0"Initialization of the WebBeans container has
failed". Here is the
=C2=A0entire log-file: http://paste.kde.org/185522/

=C2=A0Do you have an idea what is wrong here? Missing
dependencies or wrong
=C2=A0OWB config.? It works fine without OWB.

=C2=A0Thanks a lot in advance for your replies!

=C2=A0Oleg Varaksin

=C2=A0Blog: h= ttp://ovaraksin.blogspot.com/










--20cf300514b4ff77fd04b6a1d80d--