Problems with annotations

Splash Forums Rewrite Users Problems with annotations

This topic contains 6 replies, has 3 voices, and was last updated by  Lincoln Baxter III 3 years, 2 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #23907

    Will Durman
    Participant

    I have downloaded the sample bookstore app, and it appears that when I run it the following annotations are not being processed:

    @RequestAction
    @Deferred

    I am using JBoss AS 7, (with the Eclipse Juno IDE if it matters). The other Rewrite annotations appear to be working, as URL rewriting is functioning, but because the methods annotated with the above never are excecuted, the sample app does not load data as intended.

    Any hints on getting these annotations to be recognized?

    • This topic was modified 3 years, 2 months ago by  Will Durman.
    #23913

    Oh yeah, I just tested the bookstore app myself and something seems to be broken. I’ll have a look at it….

    #23914

    Got it. The dependencies are incorrect. Please REMOVE the following two from the pom.xml:

    
    <dependency>
      <groupId>org.ocpsoft.rewrite</groupId>
      <artifactId>rewrite-config-annotations</artifactId>
    </dependency>
    <dependency>
      <groupId>org.ocpsoft.rewrite</groupId>
      <artifactId>rewrite-annotations-impl</artifactId>
    </dependency>
    

    These are now part of rewrite-servlet and therefore having them in the pom messes up the annotation parsing.

    Thanks for pointing us to this. 🙂

    #23915
    #24010

    This will be updated in the next release of Rewrite. Thanks for your patience!

    #24011

    Will Durman
    Participant

    I removed the entries from pom.xml and the annotations now work as intended, thank you.

    #24032

    Great! Thanks for confirming!

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.

Comments are closed.