This week's book giveaways are in the iOS and Features new in Java 8 forums.
We're giving away four copies each of Barcodes with iOS: Bringing together the digital and physical worlds and Core Java for the Impatient and have the authors on-line!
See this thread and this one for details.
The moose likes EJB and other Java EE Technologies and the fly likes unable to resolve class javax.annotation.security.DeclareRoles Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Barcodes with iOS this week in the iOS forum
or Core Java for the Impatient in the Java 8 forum!

JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "unable to resolve class javax.annotation.security.DeclareRoles" Watch "unable to resolve class javax.annotation.security.DeclareRoles" New topic
Author

unable to resolve class javax.annotation.security.DeclareRoles

Siegfried Heintze
Ranch Hand

Joined: Aug 11, 2000
Posts: 388
How do I resolve this error?
What do I need to add to my pom.xml to include the required libraries?

Actually, I'm compiling this with groovy 2.0 -- is that relevant?

Siegfried Heintze
Ranch Hand

Joined: Aug 11, 2000
Posts: 388
problem solved with this line of groovy code:



In otherwords, this was not a groovy or java syntax problem or installation problem. It was a classpath/pom.xml problem. Apparently javax classes need to be explicitly downloaded. Hmmm... News to me!

Thanks
Siegfried
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10378
    
174

javax classes aren't always part of the JRE. This thread might help understand the difference http://www.coderanch.com/t/466100/GUI/java/javax-stand

[My Blog] [JavaRanch Journal]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: unable to resolve class javax.annotation.security.DeclareRoles