Results 1 to 2 of 2

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

  1. #1
    Join Date
    Jan 2009
    Location
    Huntington Beach, CA
    Posts
    718

    Default 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. #2
    Join Date
    Jan 2009
    Location
    Huntington Beach, CA
    Posts
    718

    Default

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •