This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Svelte and Sapper in Action and have Mark Volkmann on-line!
See this thread for details.
Win a copy of Svelte and Sapper in Action this week in the JavaScript 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
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

getting error while implementing security for rest services

 
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: 624
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.
 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic