You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Achim Nierbeck <bc...@googlemail.com> on 2015/08/01 10:49:19 UTC

Re: PAX CDI not bootstrapping

Hi guys,

I'm currently on migrating Pax-Web 6 to Jetty 9.3
it needs some changes therefore it'll take a bit longer.
Another constraint is, it'll require Java 8.
This will break a lot of other projects down the river especially cxf
Another reason to have it in Pax Web 6 and not 4.2

regards, Achim


2015-07-31 14:20 GMT+02:00 Tom Barber <to...@meteorite.bi>:

> Haha! I didn't see that one yesterday. Whoop, but late though :)
>
>
> https://themagicaltrout.wordpress.com/2015/07/30/accessing-your-beans-in-a-serviceendpoint-class-using-apache-karaf/
> this late night blog rambling explains my current solution, although CDI
> would be nicer.
>
> Thanks Andreas.
>
> Tom
>
> On Fri, Jul 31, 2015 at 12:42 PM, Andreas Kuhtz <an...@gmail.com>
> wrote:
>
>> Hi,
>>
>> Just found this: https://bugs.eclipse.org/bugs/show_bug.cgi?id=453834
>>
>> Your CDI-problem with websocket could be solved with jetty-9.3.x :-)
>>
>> Regards,
>> Andreas
>>
>> 2015-07-30 20:00 GMT+02:00 Tom Barber <to...@meteorite.bi>:
>>
>>> Yeah I had one in there as well. CDI does run by there is a disconnect
>>> between websockets and CDI that seems to be a blocker at the moment.
>>>
>>> Tom
>>> On 30 Jul 2015 18:21, "Christian Schneider" <ch...@die-schneider.net>
>>> wrote:
>>>
>>>> Your beans.xml should be in src/main/resources/META-INF
>>>>
>>>> Christian
>>>> Am 30.07.2015 12:49 nachm. schrieb "Tom Barber" <
>>>> tom.barber@meteorite.bi>:
>>>>
>>>>> Okay gang,
>>>>>
>>>>> I've tried 0.13.0-SNAPSHOT and I still can't for the life of me figure
>>>>> out why I don't get my dependency injected.
>>>>>
>>>>> Here is a stripped out version:
>>>>> https://github.com/buggtb/broken-cdi-example I'm sure its something
>>>>> obvious but I can't figure it out.
>>>>>
>>>>> Thanks
>>>>>
>>>>> Tom
>>>>>
>>>>> On Wed, Jul 29, 2015 at 11:47 PM, Tom Barber <to...@meteorite.bi>
>>>>> wrote:
>>>>>
>>>>>> Knowing my coding prowess, i wouldn't say nicely, but i'll give it a
>>>>>> shot and ask questions another day!
>>>>>>
>>>>>> Thanks Achim!
>>>>>>
>>>>>>
>>>>>> On Wed, Jul 29, 2015 at 11:42 PM, Achim Nierbeck <
>>>>>> bcanhome@googlemail.com> wrote:
>>>>>>
>>>>>>> If you switch to use pax-cdi 0.13.0-SNAPSHOT it'll work nicely with
>>>>>>> Pax-Web 4.x and Karaf 4.
>>>>>>> I just pushed the changes and deployed the snapshot to the ops4j
>>>>>>> snapshot repo.
>>>>>>>
>>>>>>> regards, Achim
>>>>>>>
>>>>>>> 2015-07-30 0:02 GMT+02:00 Tom Barber <to...@meteorite.bi>:
>>>>>>>
>>>>>>>> Boo, actually I resolved that weirdness, that was due to me
>>>>>>>> overriding the default classpath, but when it starts I don't get any beans
>>>>>>>> injected which gives me a sad face.......
>>>>>>>>
>>>>>>>> Tom
>>>>>>>>
>>>>>>>> On Wed, Jul 29, 2015 at 10:38 PM, Achim Nierbeck <
>>>>>>>> bcanhome@googlemail.com> wrote:
>>>>>>>>
>>>>>>>>> Hi Tom,
>>>>>>>>>
>>>>>>>>> I'm not sure what happened to your setup,
>>>>>>>>> but actually that shouldn't be of an issue.
>>>>>>>>> I just tested it and stumbled over another thing.
>>>>>>>>> The latest pax-cdi bundles aren't compatible with Jetty 9.1 and
>>>>>>>>> Servlet 3.1
>>>>>>>>>
>>>>>>>>> I'm gonna look at it.
>>>>>>>>>
>>>>>>>>> regards, Achim
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> 2015-07-29 18:04 GMT+02:00 Tom Barber <to...@meteorite.bi>:
>>>>>>>>>
>>>>>>>>>> Hello chaps
>>>>>>>>>>
>>>>>>>>>> Running Karaf 4 and PAX CDI I'm running into an issue wiring it
>>>>>>>>>> all up. I have
>>>>>>>>>>
>>>>>>>>>> Require-Capability: org.ops4j.pax.cdi.extension;
>>>>>>>>>> filter:="(&(extension=p
>>>>>>>>>>  ax-cdi-extension)(version>=0.12)(!(version>=0.13)))",osgi.extender;
>>>>>>>>>> fil
>>>>>>>>>>  ter:="(osgi.extender=pax.cdi)"
>>>>>>>>>>
>>>>>>>>>> In my Manifest but when it starts it complains of stuff like:
>>>>>>>>>>
>>>>>>>>>> Caused by: java.lang.ClassNotFoundException:
>>>>>>>>>> WEB-INFes.com.mytool.filemanager.websocket.FileManagerObj not found by
>>>>>>>>>> com.mytool.filemanager-client
>>>>>>>>>>
>>>>>>>>>> Which is weird, mostly because where does WEB-IFes come from?
>>>>>>>>>>
>>>>>>>>>> Anyway I can't work it out, where those errors come from and
>>>>>>>>>> whilst my bundle does come up my beans aren't injected, does anyone have a
>>>>>>>>>> good idea?
>>>>>>>>>>
>>>>>>>>>> Thanks
>>>>>>>>>>
>>>>>>>>>> Tom
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>>
>>>>>>>>> Apache Member
>>>>>>>>> Apache Karaf <http://karaf.apache.org/> Committer & PMC
>>>>>>>>> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
>>>>>>>>> Committer & Project Lead
>>>>>>>>> blog <http://notizblog.nierbeck.de/>
>>>>>>>>> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>>>>>>>>>
>>>>>>>>> Software Architect / Project Manager / Scrum Master
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>>
>>>>>>> Apache Member
>>>>>>> Apache Karaf <http://karaf.apache.org/> Committer & PMC
>>>>>>> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
>>>>>>> Committer & Project Lead
>>>>>>> blog <http://notizblog.nierbeck.de/>
>>>>>>> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>>>>>>>
>>>>>>> Software Architect / Project Manager / Scrum Master
>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>
>


-- 

Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>
Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>

Software Architect / Project Manager / Scrum Master