Service is not getting Service ID in OSGI Bundle hence not starting ?

Hi ,
I am getting an unusual issue while deployement of service . I am using following syntax to write :
@Service(value=SomeService.class)
@Component(enabled=true,immediate = true, metatype = true, label = "Some Service")
Its not getting started and not getting service id as well.
Please help.

My OSGI-INF folder is not generating at all in the bundle.
How are you generating the bundle? maven? Is it a new one and never worked or does it stopped working suddenly?
Can you post the whole code?

Similar Messages

  • Coherence 3.5  as OSGi bundle

    Hi,
    We are starting out on an OSGi project which will use Coherence 3.5 as a data grid for storing and manipulating application data. I see that Coherence (as a separate product) is getting released as a Jar and not as an OSGi bundle. When I looked on the web, I see that Coherence (3.4) is getting packaged along with other Oracle products (CEP 10.3) as OSGi bundle (http://blogs.oracle.com/CEP/2008/10/oracle_complex_event_processin_1.html) and Oracle Fusion Middleware 11g.
    Let us know if we can expect to see Coherence getting released as an OSGi bundle in the near future.
    Till that time, Is there any guidance/recommendation on:
    1) Running Coherence in OSGi environment
    2) Accessing Coherence from an OSGi client application
    Thanks,
    Prakash

    1. Generally, it's easiest if there is membership in only one Coherence cluster per OSGi container. In other words, one member of one cluster per container.
    2. (From Stephen Felts, note that this was pre-3.5) Coherence currently uses the context classloader of the thread to find the default configuration file (coherence-cache-config.xml) and the JMX configuration (reports/report-group.xml). This is generally not the correct thing when running in OSGi. Applications will need to reset the context classloader before getting the class.
    ClassLoader oldLoader = Thread.currentThread().getContextClassLoader();
    ClassLoader newLoader = com.tangosol.net.CacheFactory.class.getClassLoader();
    Thread.currentThread().setContextClassLoader(newLoader);
    CacheFactory.getCache(cacheName);  //Start coherence cache instance
    Thread.currentThread().setContextClassLoader(oldLoader);"
    {code}
    3. (From Hal Hildebrand) There are issues that can come up specifically with respect to serialization with complex dependencies across bundles. Basically, OSGi allows classes to be hidden through the modules, so you have to be really careful as to the class loader you use for the cache.  Here's a simple scenario showing the issue: Let's say that we're using the class loader from Bundle A.  Bundle A imports the interface FOO from Bundle B.  Bundle A uses an implementation of FOO, FooImpl, from Bundle C.  However, Bundle C either doesn't import FooImpl (i.e. it's a private class) or Bundle A doesn't import the package from Bundle C. So, if you serialize FooImpl into the cache, what happen in the above scenario is that the cache will not be able to deserialize FooImpl using Bundle A's class loader.
    4. There are various issues around the use of static fields in Coherence. These are very "non OSGI like". It's generally an issue when you are trying to create a Coherence bundle and decide what APIs to expose. Some of the "builder" work that went into 3.5 was designed to help rectify this and make Coherence easier to use in OSGi.
    5. (From Jeff Trent, in lieu of having a Coherence bundle as part of the Coherence distribution) Bundlizing Coherence jar(s) is a prerequisite for using Coherence w/ OSGi.  For this, you can essentially lift the bundles out of (e.g.) CEP.  There are tools like BND (http://www.aqute.biz/Code/Bnd) integrated into Maven that really make this quite simple to do.
    The summary I have so far is that using Coherence in OSGi is easy for easy stuff today, but there are a number of things that we're developing to make the more complex use cases simple in the future.
    Peace,
    Cameron Purdy | Oracle Coherence
    http://coherence.oracle.com/                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • When i plug my itouch into my computeri get a pop-up that says "this ipod cannot be used because the apple mobile device service is not started." and when i plug it it my itouch name does not come up on my itunes, how do i start it and fix this?

    When I plug my iPod Touch 4g into my computer I get a pop-up that says "This iPod cannot be used because the Apple Mobile Device service is not started." And when I plug in my iTouch the name of the iTouch does not come up on my iTunes. How do I start the Apple Mobile Device? How do I fix this?

    I'd start with the following document with that one:
    iPhone, iPad, iPod touch: How to restart the Apple Mobile Device Service (AMDS) on Windows

  • Itunes not recognizing my Ipod anymore.  I get a message in itunes that says " This ipod cannot be used because the apple mobile device service is not started

    My itunes is no longer recognizing my new ipod when I plug it in . I am getting a message in itunes that says, " this ipod cannot be used because the apple mobile device is not started."  I have tried the troubleshooting tips but not sure what to do next. My itunes is updated to 10 and ipod has not been connected to itunes since Oct. Should I update my ipod to 6.1.3?  It is only at 6.0.1  I have not done this yet.  My itunes is saying version 10.  My ipod is not backed up on icloud so i do not know what I should do.  I use the same account as My iphone which is backed up by icloud.  Please help.  Need to put songs on my ipod.

    Hello R Hic,
    I found an article that goes over how to restart and troubleshoot the Apple Mobile Device Service on Windows. I would recommend following the steps listed in that article and that should resolve your issue.
    How to restart the Apple Mobile Device Service (AMDS) on Windows
    http://support.apple.com/kb/TS1567
    Hope that helps,
    Griff W.

  • When i plug in my Ipod i get a strange message "this device can not be used because the apple mobile device service is not started."

    What does "This ipod can not be used because the apple mobile device service is not started" mean.  After I updated my Itunes I get this message when I plug in my Ipod and it doesn't come up in Itunes.

    If you are using Windows 7, go to:
    Control Panel>Programs>Programs and Features
    Look for a program called 'Apple Mobile Device Support'
    Right-click on it
    Click 'repair'
    Wait until the repair operation is complete, and voila, your problem should be solved, itunes will recognise your iphone/ipod once more. This worked for me.

  • Just downloaded iTunes to new dell laptop, tried syncing my iPhone get an error message:  "this iPhone cannot be used because the Apple Mobile Device service is not started".  What does this mean? I have had this phone for over a year..

    Just downloaded iTunes to new dell laptop, tried syncing my iPhone get an error message:  "this iPhone cannot be used because the Apple Mobile Device service is not started".  What is the issue, had this phone over a year??

    I had this problem before. I like to disable extra services to speed up my computer and I disabled the Apple Mobile Device service and had to re-enable this.
    You can do that by going Control Panel>Administrative Tools>Services. Once you have gone to the services window, look for Apple Mobile Device and right-click. Select "Properties". There should be some information about the service as well as the label "Startup Type" with a drop-down menu beside it. If it says "disabled", that is your problem; Change the selection to anything except disabled (Automatic is easier and ensures that you can sync as soon as itunes opens).
    If this doesn't work, I would look into your anti-virus' settings. Good Luck!

  • I'm trying to sync a new i phone to i tunes.  I get message that says cannot be used because the apple mobile device service is not started.  Any idea what I can do to solve this issue?

    I'm trying to sync a new iphone into i tunes.  I'm getting a message that says that this iphone cannot be used because the apple mobile device service is not started.  Any idea what I can do to solve this issue?

    See Here...
    AMDS for Windows
    http://support.apple.com/kb/TS1567
    AMDS for Mac
    http://support.apple.com/kb/ht1747

  • 2nd day w/my ipad2.  Have spent 5 hours trying to get my ipod music to play on the ipad..it has been downloaded and synced. When I click on itunes , I get a window that says "Apple mobile device service is not started."  I get music symbol when click ipod

    2nd day w/my ipad2.  Have spent 5 hours trying to get my ipod music to play on the ipad..it has been downloaded and synced. When I click on itunes , I get a window that says "Apple mobile device service is not started."  I get music symbol when click ipod.

    http://support.apple.com/kb/ts1567

  • I am getting an error in itunes when I connect my iphone that says that the apple mobile device service is not started?

    When pluging my iphone into my computer I get the following message in itunes "This Iphone can not be used because the apple mobile device service is not started. Does anyone know how to fix this.

    I think I remember hearing that if you quit iTunes with your device still connected, then open iTunes up again, it should work.
    EDIT: Here, this might help: http://support.apple.com/kb/ts1567

  • HT4236 I get an error message with I try to plug into itunes;  This iPhone cannot be used because the Apple Mobile Device service is not started.

    I get an error message with I try to plug into itunes;
    This iPhone cannot be used because the Apple Mobile Device service is not started.

    http://support.apple.com/kb/TS1567

  • When I try to sync my iPhone, I get an error message that says "This iPhone cannot be used because the Apple Mobile Device Service is not started.  There's no explanation of what to do to fix it.

    When I try to sync my iPhone, I get an error message that says "This iPhone cannot be used because the Apple Mobile Device Service is not started.  There's no explanation of what to do to fix it.

    Follow  this article:
    How to restart the Apple Mobile Device Service (AMDS) on Windows

  • I am trying to get music off another computer but when i go to plug in my phone it says Apple Mobile device service is not started

    I am trying to get music off another computer but when i go to plug in my phone it says Apple Mobile device service is not started

    Hi Mileymarie,
    Welcome to the Support Communities!  The article below will help you troubleshoot the issue you are having with your iPhone connecting to your PC:
    How to restart the Apple Mobile Device Service (AMDS) on Windows
    http://support.apple.com/kb/ts1567
    If an iPhone, iPad, or iPod touch is not recognized in iTunes on Windows, the Apple Mobile Device Service (AMDS) may need to be restarted. Alternatively, you may see the following error when connecting your device:"This [device] cannot be used because the Apple Mobile Device Service is not started."
    This document explains how to restart the Apple Mobile Device Service on Windows XP, Windows Vista, and Windows 7.
         Restart the Apple Mobile Device Service (AMDS)
    Set the Apple Mobile Device Service Startup type to Automatic
    Remove and reinstall iTunes and AMDS
    I hope this information helps ....
    - Judy

  • I just got an iphone and am trying to connect it to my itunes account.  Getting the message " This iphone cannot be used because the Apple Mobile Device service is not started.  How do I start it?  Have already been back to the store with it and no change

    I just got an iphone and am trying to connect it to my itunes account.  Getting the message " This iphone cannot be used because the Apple Mobile Device service is not started.  How do I start it?  Have already been back to the store with it and no change.

    http://tinyurl.com/3hs3g2u

  • I get a Notice of..."This iPad cannot be used because the apple mobile device service is not started....what is this and how do I fix it..Help please

    I get a notice when trying to sync my iPad. "this iPad cannot be used because the Apple Mobile Device Service is not started".....What is this and how can I fix it? Help please

    Here is a YouTube video which should guide you through a solution:  http://www.youtube.com/watch?v=VLFAo-FWLxE

  • I am unable to sync with my computer, I get a message ; This iphone cannot be used because the Apple Mobile Device service is not started.e

    I am all of a sudden unable to sync my iphone with my computer. I get the following error message: This iphone cannot be used because The Apple Mobile Device service is not started.

    my iphone with my computer
    Windows?
    Instructions here >   iPhone, iPad, iPod touch: How to restart the Apple Mobile Device Service (AMDS) on Windows

Maybe you are looking for

  • How to publish a single Muse page to site that also has a Wordpress site

    I have a site (ddmdigital.com) that has Wordpress on it. I need to create several unrelated, stand-alone Muse pages that I would also like to put on that site...not to be accessed from the Wordpress site, just accessed from the site itself. For examp

  • Help with Photos on the iPad

    Is there any waay to get photos (not iPhoto) on the iPad to keep your albums in the order htat you have them arranged in iPhoto on the Mac? And to add a photo to an alabum (say, fro mthe Saved Photos)? And of course, the perennial: to have Photos sho

  • Flash Player not working in Win7 64bit machine

    Greetings. I have spent the past couple of weeks combing through first the help files, and then these forums looking at what should be the same problem I have. Even now up to the past couple of minutes it seems someone besides me is having this issue

  • How can I make applications, documents, and downloads open directly in finder?

    Options doesn't offer this as  a choice; I just get list or stack. tnx

  • About the genuine ear pods?

    I just bought the apple earpods with mic and remote. I cant really tell whether it is a genuine or the fake one. It has Written Designed by Apple in California Assembeled in China. DTV2482E8TWA And it has the grey net like things in the ear piece. It