Results 1 to 5 of 5

Thread: possible bug in sts "enable spring aspects tooling"

  1. #1
    Join Date
    May 2009
    Posts
    24

    Default possible bug in sts "enable spring aspects tooling"

    using sts 2.1.0 sr01 eclipse 3.4.2 r342

    problem

    after creating a maven project and adding spring-aspects in the pom file, i try to "Enable Spring Aspects Tooling" but i get the following error:

    "Please add spring-aspects.jar to build path of <project_name> and run this command again"

    work around

    1. go into the maven repo and copy out spring-aspects-2.5.6.jar and move it someplace calling it spring-aspects.jar
    2. manually add the jar file in #1 to the build path
    3. "Enable Spring Aspects Tooling"


    another problem
    get a project error because the system is confused with both the spring-aspects.jar and the maven spring-aspects-2.5.6.jar in the classpath.

    another workaround around
    delete the the spring-aspects.jar from the build path and the error goes away and it "seems" that the functionality of the aspect tooling features still exists (even after i bounce sts)


    i think the problems is initially the system is looking for the exact string "spring-aspects.jar" in the classpath.
    Last edited by mpurdy1973; Oct 14th, 2009 at 05:02 PM. Reason: added sts version number

  2. #2

    Thumbs up Works like a charm

    Thanks for keeping this thread up to date. I was looking for a solution and here it is. Same problem exists in STS2.3.0

  3. #3
    Join Date
    Aug 2008
    Location
    Vancouver, BC
    Posts
    747

    Default

    Thanks for letting us know that this is still a problem. It slipped through the cracks earlier.

    An easier workaround is this:

    1. Find the Spring Aspects jar in the Referenced Libraries, or in some classpath container in your project
    2. Right click and select AspectJ Tools -> Add to Aspect Path


    I'll also work on fixing this task for when you select "Enable Spring Aspects tooling".
    Andrew Eisenberg, Ph.D.
    SpringSource, a division of VMware
    SpringSource Tools Team
    More about AJDT, Groovy-Eclipse, and Grails tooling

  4. #4
    Join Date
    Aug 2008
    Location
    Vancouver, BC
    Posts
    747

    Default

    Fix for this will be available in the next nightly build of STS.
    Andrew Eisenberg, Ph.D.
    SpringSource, a division of VMware
    SpringSource Tools Team
    More about AJDT, Groovy-Eclipse, and Grails tooling

  5. #5
    Join Date
    Aug 2010
    Location
    Goteborg, Sweden
    Posts
    434

    Default What happened?

    As you can gather from my other post: STS 2.5.0RELEASE failure of "enable spring aspects tooling" there seems to still be problems with this vital function in STS 2.5.0Release.

    Why does the workaround you suggested not appear to work in 2.5.0?

Posting Permissions

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