• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

getting error while implementing security for rest services

 
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Tapas.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic