/SPAM!/ [51%] No accessors generated

2013-03-06 Thread Benjamin Wulff

Hi all,

I'm using the SCR Maven Plugin and SCR Annotations in my project for 
over a year. Recently I tried to compile the project on a fresh system 
and noticed that all the services fail activation because SCR cannot 
find the accessor methods for binding dependencies. It seems that the 
bindXXX und unbindXXX methods are not generated anymore.


Same was the case when I delete the .m2/repository on the my development 
machine. When I now compile and deploy the modules into Felix, SCR 
complaints that it can't find the methods for binding services. When I 
exchanged the bundle in felix/load with the old jar (that was compiled 
before deleting the .m2 repo), the service got activated without 
problems. Inspecting the bundles reveals that the component descriptions 
are generated correctly tough.


What did I miss? I have the following deps in my base pom

  
org.apache.felix
org.apache.felix.scr
1.6.0
  
  
org.apache.felix
org.apache.felix.scr.annotations
1.7.0
  

The SCR plugin is called in the module poms like this

  


  
  
org.apache.felix
maven-scr-plugin

  
generate-scr-scrdescriptor

  scr

  

  
...

BTW updating to the most recent versions of the plugin (1.10.0) and 
annotations (1.80.0) did not show an effect.


Thanks,
Benjamin

-
To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
For additional commands, e-mail: users-h...@felix.apache.org



Re: MySQL in Apache Felix

2013-03-06 Thread BicoWang
Hi man ,
I am a new learner of OSGi,and I also encounter the same problem .So could
you please tell me how you solve this problem at last ?

Great thanks .



--
View this message in context: 
http://apache-felix.18485.n6.nabble.com/MySQL-in-Apache-Felix-tp4833482p5002427.html
Sent from the Apache Felix - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
For additional commands, e-mail: users-h...@felix.apache.org



Re: automatic pom.xml generation from an OSGi bundle MANIFEST.MF

2013-03-06 Thread Holger Hoffstätte
On 06.03.2013 14:30, Francis ANDRE wrote:
> I would like to mavenize a huge OSGi application. What is the best way
> to automaticaly produce the pom.xml from an existing MANIFEST.MF  OSGi
> bundle?

Unless you have a database/reverse-lookup mechanism that maps packages
to jars, the answer is "you cannot" (at least not automatically). Even
with said lookup you would need a strategy to decide which artifact
should be preferred over another when both provide the same package(s).
This should not be necessary in theory, but is in practice.

-h


-
To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
For additional commands, e-mail: users-h...@felix.apache.org



Re: Shutdown deadlock on OS X while doing AWT stuff

2013-03-06 Thread Dan Gravell
Yeah, it worked. I had to write a dynamic proxy to access the API because
Eclipse complains about access restrictions for com.apple.eawt but once I'd
written the code, exported the package from my system bundle fragment and
imported into the new bundle it all worked fine.

On Tue, Mar 5, 2013 at 5:51 PM, Dan Gravell
wrote:

> Thanks everyone. I was unaware of the Apple Application library and so
> I'll create a bundle for OS X which registers its own QuitHandler and see
> if that helps things.
>
> I'll pursue other suggestions afterwards.
>
> Dan
>
>
> On Tue, Mar 5, 2013 at 2:36 PM, Jan Willem Janssen <
> janwillem.jans...@luminis.eu> wrote:
>
>> -BEGIN PGP SIGNED MESSAGE-
>> Hash: SHA1
>>
>> On 3/5/13 3:23 PM, Dan Gravell wrote:
>> > Well, I could be explicitly stopping the framework, or the stop
>> > could occur when the OS is shutdown and it *appears* this
>> > com.apple.eawt._AppEventHandler kicks in and calls System.exit...
>> > Does that count as an explicit stop?
>>
>> FWIW: The eawt application-quit hook calls System.exit(0) by default,
>> see [1]. Either set another quit strategy or call
>> QuitResponse#cancelQuit in your QuitHandler.
>>
>> Hope this helps,
>>
>> [1]
>>
>> http://developer.apple.com/library/mac/documentation/Java/Reference/JavaSE6_AppleExtensionsRef/api/com/apple/eawt/QuitStrategy.html
>>
>> - --
>> Met vriendelijke groeten | Kind regards
>>
>> Jan Willem Janssen | Software Architect
>> +31 631 765 814
>>
>> /My world is revolving around PulseOn and Amdatu/
>>
>> Luminis Technologies B.V.
>> J.C. Wilslaan 29
>> 7313 HK   Apeldoorn
>> +31 88 586 46 30
>>
>> http://www.luminis-technologies.com
>> http://www.luminis.eu
>>
>> KvK (CoC) 09 16 28 93
>> BTW (VAT) NL8169.78.566.B.01
>> -BEGIN PGP SIGNATURE-
>> Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
>> Comment: GPGTools - http://gpgtools.org
>> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>>
>> iQIcBAEBAgAGBQJRNgL5AAoJEKF/mP2eHDc4EGsP/iWKEhx/EG9Gmu7iOO9XN05b
>> prFlolILB+STYP3akDBIuaI973H6UFofqdlCAiBcrbJWV2doXYcXzEv7aBIzSCLI
>> uZprA+z2dW9kaWp24QrOtNMH3bTR27a46/WSjiyAVEY3oYo+4GqKUwSzgTy4lFE0
>> P8eH1SzyFTZRwaa1engT8sieiEbgImR6o3GtFJlZqK9D0bBs28lF7U2kJFIvu+er
>> JlerOPwLN4VKe2DZO2iA6gS7NatQTcjXL0tkwmYY890cJhW4/v9RU1VHZOstf2PA
>> bWHN43dAE9J6r9MJY7fOdRx2uOYYM6rhlSZBqPIMMOInRcWHZ0SFuaqMpx9UzK/s
>> ZY0A1GGkZ2o4aNCzyI91CM9xF9w3Q/q+TxH2SUP0xQyTJ3LOWf4GCmwXw5O8rd7H
>> FAJK4ui6Pr98P2kmCWA/9wSrm5xVxuC3/pbzE5pYqT0wXvn00IIvlPF813fIszYC
>> xpL/zsyLt+SPjV/N0HQ1JBVoDZC6u/sGwkbwMbsl2HC79C+hEt1ELBOE5+BHwGW0
>> dOAOn0b5Hkq3tCLzWIdwhuXHpn1fLNcTvoMQ1LbP9pHC0Nh6nz1GbclRTIu8jRMo
>> zGGHJeltYPnGFLdAVUc10Mrq3O9abnWxDa1UB3KXLnr8GkzoGMVqS6/3142V/oTM
>> 8m58tIyf47Z28IxreoGy
>> =FS4a
>> -END PGP SIGNATURE-
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
>> For additional commands, e-mail: users-h...@felix.apache.org
>>
>>
>


automatic pom.xml generation from an OSGi bundle MANIFEST.MF

2013-03-06 Thread Francis ANDRE

Hi

I would like to mavenize a huge OSGi application. What is the best way to 
automaticaly produce the pom.xml from an existing MANIFEST.MF  OSGi bundle?


TIAFYA

FA

-
To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
For additional commands, e-mail: users-h...@felix.apache.org