• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Devaka Cooray
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

getting error while implementing security for rest services  RSS feed

 
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am tryng to implement security to me webservices. getting below errors

The type org.glassfish.jersey.FeaturesAndProperties cannot be resolved. It is indirectly referenced from required .class files

The hierarchy of the type CustomApplication is inconsistent

below is the code in which I am getting these erros.

 
Ranch Hand
Posts: 614
9
BSD Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From the information provided, it looks like you did not added the JAR into the classpath which contains the class org.glassfish.jersey.FeaturesAndPropertiesies.
Some class in your code is importing a class (say XYZ.java) in xxxxx.jar that you have added.
And XYZ.java is trying to import another class org.glassfish.jersey.FeaturesAndPropertiesies which you did not add in the classpath.
You have to find the JAR containing org.glassfish.jersey.FeaturesAndPropertiesies and add it.

Are you using maven to build your project. Maven ensures all the dependencies are added to classpath.
Provide the full compilation error which you are getting.
If you are using any IDE, try cleaning the project and rebuilding. Sometimes this kind of error occurs in Eclipse.
 
somashaker goud
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Tapas.
 
How do they get the deer to cross at the signs? Or to read this tiny ad?
Programmatically Create PDF Using Free Spire.PDF with Java
https://coderanch.com/wiki/703735/Programmatically-Create-PDF-Free-Spire
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!