Announcement Announcement Module
Collapse
No announcement yet.
Using @Secured only, does it require javax.annotations for DenyAll Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Using @Secured only, does it require javax.annotations for DenyAll

    So, I have been running my app locally in Tomcat with no problem. I am now moving to Jetty and Heroku with Neo4J. After making changes to the pom and Heroku stuff I can't run my app.

    I get

    Code:
     Error creating bean with name 'graphDatabaseService' defined in URL [jar:file:/Users/bytor99999/Java/JavaProjects/EventGate/target/repo/com/perfectworldprogramming/eventgate/eventgate/0.1.0/eventgate-0.1.0.jar!/META-INF/spring/applicationContext-graph.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: javax/annotation/security/DenyAll
    So that would mean I needed @DenyAll in my classpath, but I am not using it, didn't need it before. Maybe that jar is included in Tomcat.

    Thanks

    Mark

  • #2
    Sorry, stupid me, looking at my xml file, being the prankster that I am I have

    <global-method-security jsr250-annotations="enabled" secured-annotations="enabled"/>

    So I am sure that that made javax.annotation needed.

    Mark

    Comment

    Working...
    X