facebook

import com.sun.jersey.spi.resource.Singleton

  1. MyEclipse Archived
  2.  > 
  3. Documentation
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #316146 Reply

    ynaeht
    Member

    I am using MyEclipse version 9.0. I was following the tutorial trying to create CustomersResource class, but “import com.sun.jersey.spi.resource.Singleton” cannot be resolved. Should this be included in MyEclipse or do I have to download it and add to the library?

    Thanks,
    Ynaeht

    #316147 Reply

    support-swapna
    Moderator

    ynaeht,

    In the tutorial Section 4.2 Creating CustomersResource Class screenshot 2, you need to select ‘Singleton’ for Lifecycle.

    The import will automatically be added basing on the Lifecycle selected and you do not need to explicitly download it and add to the library.

    I followed the steps in the tutorial to the tee and could run the example without any issues. I suggest you give it a try again.

    let me know how this works for you.

    #316170 Reply

    ynaeht
    Member

    “Singleton” was selected. But I was using Java EE6. After switching the Java Compiler under the Properties to 1.5, that resolved the issue.

    Thanks,
    ynaeht

    #316192 Reply

    support-swapna
    Moderator

    ynaeht,

    Glad that you are all set.
    Do let us know if you have any other issues.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: import com.sun.jersey.spi.resource.Singleton

This topic is marked as closed to new replies, however your posting capabilities still allow you to do so.

You must be logged in to post in the forum log in