MyEclipse Forums
This thread has been locked & this forum has been archived.
Please post new topics to General Development
View previous topic Printable version Log in to check your private messages View next topic
Author Message
ynaeht
Post subject: import com.sun.jersey.spi.resource.Singleton  PostPosted: Apr 19, 2011 - 04:11 AM
Registered Member
Registered Member


Joined: Apr 19, 2011
Posts: 4

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
 
 View user's profile Send private message  
Reply with quote Back to top
support-swapna
Post subject: RE: import com.sun.jersey.spi.resource.Singleton  PostPosted: Apr 19, 2011 - 06:17 AM



Joined: Nov 11, 2010
Posts: 2491

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.

_________________
Swapna
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
ynaeht
Post subject:   PostPosted: Apr 19, 2011 - 03:58 PM
Registered Member
Registered Member


Joined: Apr 19, 2011
Posts: 4

"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
 
 View user's profile Send private message  
Reply with quote Back to top
support-swapna
Post subject:   PostPosted: Apr 20, 2011 - 08:04 AM



Joined: Nov 11, 2010
Posts: 2491

ynaeht,

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

_________________
Swapna
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits