Announcement Announcement Module
Collapse
No announcement yet.
Cannot download extensions Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    Hi!

    Originally posted by dlaidlaw View Post
    I have the same problem as above. Grails does not show up as something that can be installed from that p2 update site. See the attached screen shot - it shows everything in the repo. I have a brand new install of STS 2.8.1 on a Mac with a new, empty workspace.

    I Grails is in that repo, I cannot see it.
    Can you post the screenshot somewhere else? This forum reduces the resolution of those images too much to see anything... :-(

    Thanks!
    -Martin

    Comment


    • #17
      Sure, the picture is at: http://dl.dropbox.com/u/10405258/Scr...20.56%20AM.png

      Comment


      • #18
        A solution for me!

        I saw a way back in the eclipse error log the following error: Unable to read repository at file:/Users/dlaidlaw/springsource/sts-2.8.1.RELEASE/p2/org.eclipse.equinox.p2.repository/cache/content1961774278.jar.

        I tried to look at the file contents (jar -tvf) but jar could not open it. So I stopped STS, removed all the files in that folder, and restarted STS. STS then began to repopulate that folder again automatically. When it finished I was able to install Grails support using the Dashboard Extensions with no problems.

        I guess somehow a corrupt file got into that cache folder. None of the recent messages in the eclipse error log indicated anything even remotely like a corrupt file.

        Comment


        • #19
          Hey Don!

          Ah, a corrupted p2 cache, very good find. Glad to hear you found the root cause and solved it!!!
          Thanks for letting us know!!!

          Cheers,
          -Martin

          Comment


          • #20
            I'm jealous because I think my issue is not the same, lol.

            Martin, I've tried increasing the timeout. Unfortunately, it just made it take longer to error out.

            I'm going through the process again in hopes that I can identify any local files in the error logs like Don found.

            Comment


            • #21
              Is it possible for me to configure some alternate repositories that also have the Grails and Groovy software?

              Comment


              • #22
                I've not found any indication that my issues are dependent upon a local file. I still get errors like the ones below when I attempt the installation of Grails and Groovy plugins. The really frustrating part is I can download the offending jars with Firefox with no issues. Is there not a way to download them manually and install them locally?


                An error occurred while collecting items to be installed
                session context wasprofile=com.springsource.sts.ide, phase=org.eclipse.equinox.internal.p2.engine.phase s.Collect, operand=, action=).
                Unable to read repository at http://download.eclipse.org/tools/aj...1123094400.jar.
                Read timed out
                Unable to read repository at http://download.springsource.com/rel...00-RELEASE.jar.
                Read timed out
                Unable to read repository at http://download.springsource.com/rel...00-RELEASE.jar.
                Read timed out
                Unable to read repository at http://download.springsource.com/rel...00-RELEASE.jar.
                Read timed out
                Unable to read repository at http://download.springsource.com/rel...00-RELEASE.jar.
                Read timed out
                Unable to read repository at http://dist.springsource.org/snapsho...100-e37-M1.jar.
                Read timed out
                Unable to read repository at http://dist.springsource.org/snapsho...100-e37-M1.jar.
                Read timed out
                Unable to read repository at http://dist.springsource.org/snapsho...100-e37-M1.jar.
                Read timed out
                Unable to read repository at http://dist.springsource.org/snapsho...100-e37-M1.jar.
                Read timed out
                Last edited by barnesjd; Feb 16th, 2012, 02:30 PM.

                Comment


                • #23
                  Hey!

                  You can download the complete STS update site from the official download pages as a ZIP and can use that as a local archive to install from:
                  http://www.springsource.com/downloads/sts

                  The only thing that is missing from that update site is the Groovy-Eclipse part, which you would need to download from the codehaus website:
                  http://ci.repository.codehaus.org/gr...pshot/e37/old/

                  HTH,
                  Martin

                  Comment


                  • #24
                    Thanks Martin! I was able to get the Groovy-Eclipse project installed. However, I still have issues with Grails. The behavior was much the same as when I try installing from the online repository. So I took a look around in the contents of the zip file and found that the jar files are corrupted! I downloaded the zip file a second time in case it was a bad transfer, but the problem persists.

                    Let me know if you have some ideas about this issue. Thanks a million for helping me get the Groovy plugin. That will help tremendously as I need the most help there as I am new to the language.

                    Thanks,
                    Joe

                    Comment


                    • #25
                      Hi Joe!

                      I tried this again myself and I am able to successfully install the Grails support into an STS installation from the downloaded and locally accessed update site, so the JAR files seem to be fine within that ZIP file. Maybe you have a virus scanning firewall in between that is causing damage to the ZIP files? I've seen this before where ZIP files of a certain size aren't getting through the firewall without damage... Did you verify the integrity of the downloaded ZIP file with the fingerprints?

                      -Martin

                      Comment


                      • #26
                        Sorry, I incorrectly thought the jars were invalid. Long-story short, I thought I had 7-zip as the default application for *.jar files, but instead it was java's jar trying to execute the jar. So the jars are fine. The zip file fingerprints match.

                        What I have found is that STS complains about not being able to download some jars, even though I am using a local update site. In particular, I get the list below (same as before, but just pasting again for convenience). Just to reiterate, I can download these jars via Firefox, so I really don't believe that proxies, firewalls, etc play a factor. Given the success we had with the codehaus update site, it appears to me that this is only an issue of STS retrieving information (jars anyway) from the internet.

                        So is there a way I can point STS at the local copies I have of the jars below?

                        An error occurred while collecting items to be installed
                        session context wasprofile=com.springsource.sts.ide, phase=org.eclipse.equinox.internal.p2.engine.phase s.Collect, operand=, action=).
                        Unable to read repository at http://download.eclipse.org/tools/aj...1123094400.jar.
                        Read timed out
                        Unable to read repository at http://download.eclipse.org/tools/aj...1123094400.jar.
                        Read timed out
                        Unable to read repository at http://download.eclipse.org/tools/aj...11207-1200.jar.
                        Read timed out
                        Unable to read repository at http://download.eclipse.org/tools/aj...11207-1200.jar.
                        Read timed out
                        Unable to read repository at http://download.eclipse.org/tools/aj...11207-1200.jar.
                        Read timed out
                        Unable to read repository at http://download.eclipse.org/tools/aj...11207-1200.jar.
                        Read timed out

                        Comment


                        • #27
                          Hey Joe!

                          You can find archived update sites for AJDT here:
                          http://www.eclipse.org/ajdt/downloads/

                          Take one of the recent dev builds listed down that page.

                          Did you check the proxy settings of your browser and compared them with the proxy/network settings in Eclipse/STS? Or did you try to use the "Native" version of the network settings? Maybe that helps Eclipse to contact those repos.

                          HTH,
                          Martin

                          Comment


                          • #28
                            Thanks Martin, we got it working! Once I added the developer version of ajdt, I was able to install the Grails software from my local site. Thanks a million for all the help. Now I can finally get rolling with Grails.

                            BTW, I checked my proxy settings. I didn't see any mismatches there.

                            Thanks!
                            Joe

                            Comment


                            • #29
                              Hey Joe!

                              Glad to hear its now working...
                              I would still be interested in finding out why the regular remote-update-site-install doesn't work for you, but I have no more ideas for a further problem analysis at hand. Can you try the "native" setting for the network connection (without setting the proxies manually)? You sounded like there are proxy settings involved....

                              Cheers,
                              -Martin

                              Comment


                              • #30
                                Martin,

                                The proxies have been set to "Native" all along. There certainly aren't any proxy settings involved here.

                                Joe

                                Comment

                                Working...
                                X