Results 1 to 6 of 6

Thread: STS newbie problem

  1. #1
    Join Date
    Oct 2011
    Posts
    3

    Default STS newbie problem

    OK, this is my first time with STS. I just installed STS 2.8.0, created a workspace, and created a Spring Template Project > Spring MVC Project. I didn't add or change any code yet, but all the libraries seem to be broken...
    I have a lot of red in the imports in the source code.
    The Problems view shows a lot of missing JARs like:
    Missing artifact junit:junit:jar:4.7 pom.xml ‪/hello‬ line 1 Maven Dependency Problem
    The Projet > Properties > Libraries shows all Maven dependencies missing their JARs, for example:
    junit-4.7.jar is missing from: C:\Documents and Settings\Admin\.m2\repository\junit\junit\4.7

    Am I doing something wrong?

  2. #2
    Join Date
    Oct 2011
    Posts
    3

    Default progress

    I made progress by cleaning some caches and doing "Update dependencies" and "Update Project Configuration" - (force update of snapshots/release).
    Now it seems the jars got downloaded.
    I still have one problem: Can not find the tag library descriptor for "http://java.sun.com/jsp/jstl/core" home.jsp ‪/hello/src/main/webapp/WEB-INF/views‬ line 1 JSP Problem
    But - the "Hello World" now works.

  3. #3
    Join Date
    Sep 2008
    Location
    Hamburg, Germany
    Posts
    1,637

    Default

    Hi!

    Good to hear you made progress with regards to the Maven classpath of your project. The problem with the tag lib descriptor is this one here:

    https://issuetracker.springsource.com/browse/STS-2249

    So you can fix this my changing "http://java.sun.com/jsp/jstl/core" to "http://java.sun.com/jstl/core". I will also update the template project to reflect this.

    HTH,
    Martin
    Martin Lippert
    SpringSource, a division of VMware
    SpringSource Tools Team
    http://www.springsource.com
    http://twitter.com/martinlippert

  4. #4
    Join Date
    Oct 2011
    Posts
    3

    Default

    Thanks!!!!

  5. #5
    Join Date
    Feb 2012
    Location
    Cape Town, RSA
    Posts
    5

    Default

    Quote Originally Posted by Martin Lippert View Post
    Hi!

    Good to hear you made progress with regards to the Maven classpath of your project. The problem with the tag lib descriptor is this one here:

    https://issuetracker.springsource.com/browse/STS-2249

    So you can fix this my changing "http://java.sun.com/jsp/jstl/core" to "http://java.sun.com/jstl/core". I will also update the template project to reflect this.

    HTH,
    Martin
    Thank you for this; hasn't the template project been updated yet? Just installed STS and ran into this issue as well.

  6. #6
    Join Date
    Sep 2008
    Location
    Hamburg, Germany
    Posts
    1,637

    Default

    Hi!

    No, the template hasn't been updated yet. It doesn't seem to be obvious that changing the URL is the "right" solution for this. But I will discuss this with the template owners to figure out how the solution should look like. Just do a clean build of the project (Project menu -> clean) and the error marker will go away.

    Cheers,
    -Martin
    Martin Lippert
    SpringSource, a division of VMware
    SpringSource Tools Team
    http://www.springsource.com
    http://twitter.com/martinlippert

Tags for this Thread

Posting Permissions

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