Announcement Announcement Module
Collapse
No announcement yet.
STS newbie problem Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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.

    Comment


    • #3
      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

      Comment


      • #4
        Thanks!!!!

        Comment


        • #5
          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.

          Comment


          • #6
            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

            Comment

            Working...
            X