Re: spring injected bean cannot be found

2011-02-15 Thread Andreas Pieber
Hey Marco, 1) please feel free to start a new thread for a new question :) 2) I'm sure that there has to be a notation in the log. I'm not exactly sure what you're doing here but I assume the following: bundleA imports InterfaceX; // this thing get autoinjected private InterfaceX x; bundleB

Re: spring injected bean cannot be found

2011-02-15 Thread jb
Do you use blueprint for that or pure OSGi services ? Could we have the spring file and the complete stack trace ? Regards JB -Original Message- From: Marco Firrincieli Date: Tue, 15 Feb 2011 17:20:41 To: user@karaf.apache.org Reply-To: user@karaf.apache.org Subject: spring injected bean

Re: spring injected bean cannot be found

2011-02-15 Thread Guillaume Nodet
On Tue, Feb 15, 2011 at 17:19, Andreas Pieber wrote: > Hey Marco, > > 1) please feel free to start a new thread for a new question :) > > 2) I'm sure that there has to be a notation in the log. I'm not exactly sure > what you're doing here but I assume the following: > > bundleA > > imports Interf

RE: spring injected bean cannot be found

2011-02-15 Thread Marco Firrincieli
Re: spring injected bean cannot be found Do you use blueprint for that or pure OSGi services ? Could we have the spring file and the complete stack trace ? Regards JB From: Marco Firrincieli Date: Tue, 15 Feb 2011 17:20:41 +0100 To: user@karaf.apac

Re: spring injected bean cannot be found

2011-02-15 Thread Andreas Pieber
> The autowired doesn’t seem to work. > > > > > Ps: @Andreas, is this not a new thread? > > > > > > > > > > > > > > From: j...@nanthrax.net [mailto:j...@nanthrax.net] > Sent: martedì 15 febbraio 2011 17:21 > To:

RE: spring injected bean cannot be found

2011-02-15 Thread Marco Firrincieli
rco Firrincieli Subject: Re: spring injected bean cannot be found ah ok, this can't work this way... in bundlaA only the spring files in bundleA count; if you define the autowiring things in bundleA-spring-file it will work; BUT bundleA-spring-files have no idea of bundleb-spring-files...

Re: spring injected bean cannot be found

2011-02-15 Thread Andreas Pieber
er [mailto:anpie...@gmail.com] > Sent: martedì 15 febbraio 2011 17:42 > To: user@karaf.apache.org; Marco Firrincieli > Subject: Re: spring injected bean cannot be found > > ah ok, this can't work this way... in bundlaA only the spring files in > bundleA count; if you defin

RE: spring injected bean cannot be found

2011-02-15 Thread Marco Firrincieli
Sent: martedì 15 febbraio 2011 18:10 To: user@karaf.apache.org; Marco Firrincieli Subject: Re: spring injected bean cannot be found Yeah, as said: don't use new, but rather use spring-dm to export BundleBClass as a service (you have to add an interface therefore) and import it into bundleACl

Re: spring injected bean cannot be found

2011-02-15 Thread Andreas Pieber
andreas > > > -Original Message- > From: Andreas Pieber [mailto:anpie...@gmail.com] > Sent: martedì 15 febbraio 2011 18:10 > To: user@karaf.apache.org; Marco Firrincieli > Subject: Re: spring injected bean cannot be found > > Yeah, as said: don't use new, bu

RE: spring injected bean cannot be found

2011-02-15 Thread Marco Firrincieli
Alright. Just one more thing. My activator (inside bundleA) is not a spring project. so where do I put this mailto:anpie...@gmail.com] Sent: martedì 15 febbraio 2011 18:42 To: user@karaf.apache.org; Marco Firrincieli Subject: Re: spring injected bean cannot be found On Tue, Feb 15, 2011 at 06

Re: spring injected bean cannot be found

2011-02-15 Thread Andreas Pieber
g project. > > so where do I put this > > > -Original Message- > From: Andreas Pieber [mailto:anpie...@gmail.com] > Sent: martedì 15 febbraio 2011 18:42 > To: user@karaf.apache.org; Marco Firrincieli > Subject: Re: spring injected bean cannot be found > >

RE: spring injected bean cannot be found

2011-02-16 Thread Marco Firrincieli
is (servicetracker). From: Andreas Pieber [anpie...@gmail.com] Sent: 15 February 2011 19:13 To: user@karaf.apache.org; Marco Firrincieli Subject: Re: spring injected bean cannot be found Either you create a spring-bundle or you simply user e.g. ServiceTracker to ret

Re: spring injected bean cannot be found

2011-02-18 Thread Andreas Pieber
ruary 2011 19:13 > To: user@karaf.apache.org; Marco Firrincieli > Subject: Re: spring injected bean cannot be found > > Either you create a spring-bundle or you simply user e.g. ServiceTracker to > retrieve the service in the activator > > kind regards, > andreas > > On Tu