This week's book giveaway is in the Spring forum.
We're giving away four copies of Spring in Action (5th edition) and have Craig Walls on-line!
See this thread for details.
Win a copy of Spring in Action (5th edition) this week in the Spring forum!
  • 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
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!