Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 37

Thread: STS 2.2.0 isn't configuring grails plugins in classpath

  1. #11
    Join Date
    Nov 2005
    Posts
    3

    Default Spaces in install path

    I had the errors about "could not find the main class com.springsource.sts.grails.core.model..." and moving STS to a place with no spaces in the path fixed it. Thanks for the tip.

    Please can you update http://www.grails.org/STS+Integration (unless this fact is already documented somewhere?). Otherwise how is anyone supposed to know? Paths with spaces are not exactly a new OS feature so I just assumed it would work without thinking about it.

  2. #12
    Join Date
    Aug 2004
    Location
    Duesseldorf, Germany
    Posts
    1,210

    Default

    fletchgqc,

    I consider this to be a bug that needs fixing. I will fix this asap and make sure that we publish an updated build.

    Christian
    Christian Dupuis
    SpringSource, a division of VMware
    Lead, SpringSource Tools Team
    http://www.springsource.com
    http://twitter.com/cdupuis

  3. #13
    Join Date
    Jul 2009
    Posts
    7

    Default

    Attached is a sample project which uses the FilterPane plugin. In my project I create a 'MyService' service and add a import 'import com.zeddware.grails.plugins.filterpane.*' which gives the error 'The import com.zeddware cannot be resolved.

    Hope this helps

  4. #14
    Join Date
    Jul 2009
    Posts
    7

    Default

    Forgot the file, looks to big to upload here. I think the above description should be enough?

  5. #15
    Join Date
    Oct 2009
    Posts
    3

    Default

    I got the same problem and had to create a new workspace once I'd moved springsource from program files before it worked, but all good now.


    Quote Originally Posted by ajevans85 View Post
    Thanks for this. I just added a grails instalation 'C:\grails-1.1.1' and now when I 'Refresh Dependencies' or start sts I get the below error.

    I've also tried the deleting / reimporting project.

    Code:
    java.lang.NoClassDefFoundError: com/springsource/sts/grails/core/model/GrailsBuildSettings
    Caused by: java.lang.ClassNotFoundException: com.springsource.sts.grails.core.model.GrailsBuildSettings
    	at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
    	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)

  6. #16
    Join Date
    Aug 2004
    Location
    Duesseldorf, Germany
    Posts
    1,210

    Default

    All, the "space path" issue has now been fixed.

    Quote Originally Posted by ajevans85 View Post
    Attached is a sample project which uses the FilterPane plugin. In my project I create a 'MyService' service and add a import 'import com.zeddware.grails.plugins.filterpane.*' which gives the error 'The import com.zeddware cannot be resolved.
    Please note that after running "grails install-plugin filterpane" it is required to manually run "Refresh Dependencies" from the project's context menu (Grails Tools). This will add the filterpane source folders and JARs to the classpath.

    HTH

    Christian
    Last edited by Christian Dupuis; Nov 2nd, 2009 at 03:28 PM.
    Christian Dupuis
    SpringSource, a division of VMware
    Lead, SpringSource Tools Team
    http://www.springsource.com
    http://twitter.com/cdupuis

  7. #17
    Join Date
    Oct 2009
    Posts
    11

    Default

    I don't quite understand this fix, can you elaborate ?

  8. #18
    Join Date
    Nov 2009
    Posts
    4

    Default

    I just installed STS (2.2.0.200910210131-RELEASE) accepting all the defaults on WinVista. The installation was initially unusable with Grails because it installed to C:\Program Files\springsource\ and the space in the pathname causes a known problem. The installation should at least suggest installing to a location without a space in the path.

    I then moved the springsource directory to c:\springsource. Now I get the same NoClassDefFoundError as ajEvans85.

    I'll try running the install again to see if it works better if I specify the install location to be one without a space in the path.

  9. #19
    Join Date
    Oct 2009
    Posts
    11

    Default

    Same here. I reinstalled to c:\tools\springsource and got further than before.

    Now I'm working through this error:
    http://forum.springsource.org/showth...d=1#post267883

    by the way, I read next release will have a fix for this space problem jwb

  10. #20
    Join Date
    Aug 2004
    Location
    Duesseldorf, Germany
    Posts
    1,210

    Default

    All,

    if you update the STS' Grails Support from the nightly snapshot update site you'll should not see the path problems anymore.

    Use the following update site and only install the Grails feature: http://www.springsource.com/snapshot/e3.5 (this URL *only* works in Eclipse/STS and not with your browser).

    Let me know if that fixes the path issues.

    Christian
    Christian Dupuis
    SpringSource, a division of VMware
    Lead, SpringSource Tools Team
    http://www.springsource.com
    http://twitter.com/cdupuis

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
  •