Announcement Announcement Module
No announcement yet.
Running Spring Security Tutorial Example in Spring Tool Suite Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Running Spring Security Tutorial Example in Spring Tool Suite

    I have posted a blog on Running the Spring Security Tutorial in Spring Tool Suite. There is also a screencast link on the blog for those that want to see it in action.

  • #2
    Nice job Rob, and nice to see you blogging some of your expertise


    • #3
      The CAS and PreAuth sample applications require a little additional setup to run in STS. I have posted another blog that explains how to run each of them.


      • #4
        build path issues

        Hi Rob,

        I have been following you explanation to run the spring security samples but I have an issue with the a reference to the none existing paths /core/build/classes and/or /core/build/resources in most of the projects.

        I have done one thing differently though in my sequence, in stead of running ./gradlew eclipse i have run:
        1. ./gradlew
        Then noticed I needed to run ./gradlew eclipse in order to import eclipse project
        2. ./gradlew eclipse
        ==> build path issues as described above so I tried
        3. ./gradlew cleanEclipse eclipse
        ==> still having the same build path issues

        The referenced paths to the core spring project that don' exists:
        - /core/build/classes
        - /core/build/resources

        When I look in the directory structure I find following paths
        - /core/bin
        - /core/src/main/resources
        - /core/src/test/resources

        I could probably reference to these paths in the other projects, but I don't think that should be necessary.
        Just wondering what I could have done wrong. I have experience with ant, but I am rather new to the gradle thing.

        Looking forward to hearing your thoughts on this.
        In the mean time I'll try to re install from zero and now immediatly use ./gradlew eclipse since that is the only thing I can see i've done differently.

        ... quick update, i have redone the steps using ./gradlew eclipse right away but same issues with build path ...


        Last edited by Ruben056; Aug 13th, 2013, 06:08 AM. Reason: update extra info


        • #5
          I had to add a workaround for GRADLE-1116...Try pulling in the latest from master


          • #6
            Thanks much better ,

            FYI ... I get one xml schema validation error in file:
            /spring-security-samples-contacts-xml-3.2.x/src/main/resources/applicationContext-security.xml line 33 XML Problem

            cvc-complex-type.2.4.a: Invalid content was found starting with element 'headers'. One of '{"":intercept-url, "":access-denied-handler, "":form-login, "":openid-login, "":x509, "":jee, "":http-basic, "":logout, "":session-management, "":remember-me, "":anonymous, ""ort-mappings, "":custom-filter, "":request-cache, "":expression-handler}' is expected.




            • #7
              Your IDE has probably got a cached version of the schema (headers was recently added)


              • #8
                Ah ok, thx