This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Other Open Source Projects and the fly likes java.lang.NoClassDefFoundError: javax/inject/Singleton in Jersey Framework Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "java.lang.NoClassDefFoundError: javax/inject/Singleton in Jersey Framework" Watch "java.lang.NoClassDefFoundError: javax/inject/Singleton in Jersey Framework" New topic
Author

java.lang.NoClassDefFoundError: javax/inject/Singleton in Jersey Framework

Alejandro Barrero
Ranch Hand

Joined: Aug 01, 2005
Posts: 302
I am creating my first Jersey Web Service with Jersey, in Eclipse, using jaxrs-ri-2.4.1. I am getting "java.lang.NoClassDefFoundError: javax/inject/Singleton"; however I have javax.inject-1.jar, with the class, in WEB_INFO\lib and in the libraries in the Build Path. I am also confused that I have to use jars not mentioned in "http://www.youtube.com/watch?v=4DY46f-LZ0M". I don't know what I am doing wrong.


Your help will be greatly appreciated,
Alejandro Barrero
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java.lang.NoClassDefFoundError: javax/inject/Singleton in Jersey Framework
 
Similar Threads
XML parsing by jaxb
Works through Jdeveloper not through Console
Problem with uri attribute of taglib
Unable to parse xml by jaxb in ejb module
Jersey jars