import new graisl project - no grails on classpath/build path

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

import new graisl project - no grails on classpath/build path

Ray Tayek
hi, just made a new grails project with 1.2-m4 and imported it into eclipse 20090920-1017, groovy plugin version is: ersion: 2.0.0.xx-20091019-1600-M1-e35.

after importing, the groovy nature seems to be on, but says build path error for groovy.lang.Object, so i sis an: "add groovy libs to classpath" from the context menu in eclipse which fixed that. the .classpath file (please see .classpath file below) has: "<classpathentry kind="con" path="GROOVY_SUPPORT"/>" now (not sure if it had it before i did this.

now it can't find GrailsUnitTestCase. previous versions of .classpath files have had lines like: "<classpathentry kind="var" path="GRAILS_HOME/ant/lib/ant.jar"/>" in them.

how do i get the grails stuff on the build path?

thanks

<?xml version="1.0" encoding="UTF-8"?>
<classpath>
         <classpathentry kind="src" path="src/java"/>
         <classpathentry kind="src" path="src/groovy"/>
         <classpathentry kind="src" path="grails-app/conf"/>
         <classpathentry kind="src" path="grails-app/controllers"/>
         <classpathentry kind="src" path="grails-app/domain"/>
         <classpathentry kind="src" path="grails-app/services"/>
         <classpathentry kind="src" path="grails-app/taglib"/>
         <classpathentry kind="src" path="test/integration"/>
         <classpathentry kind="src" path="test/unit"/>
         <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
         <classpathentry kind="con" path="com.springsource.sts.grails.core.CLASSPATH_CONTAINER"/>
         <classpathentry kind="con" path="GROOVY_SUPPORT"/>
         <classpathentry kind="output" path="web-app/WEB-INF/classes"/>
</classpath>

---
co-chair http://ocjug.org/

Reply | Threaded
Open this post in threaded view
|

Re: import new graisl project - no grails on classpath/build path

Andrew Eisenberg
Hi Ray,

You should not need the GROOVY_SUPPORT classpath entry in your
.classpath.  This should be included in the Grails dependencies
classpath container.

It looks like you need to refresh your grails dependencies.  Right
click on your projects --> Grails Tools --> Refresh Dependencies.
Take a look inside your grails dependencies container and you should
see 'groovy-all-1.6.4.jar'.

Hope this helps,
--a

On Tue, Dec 1, 2009 at 8:47 PM, Ray Tayek <[hidden email]> wrote:

> hi, just made a new grails project with 1.2-m4 and imported it into eclipse
> 20090920-1017, groovy plugin version is: ersion:
> 2.0.0.xx-20091019-1600-M1-e35.
>
> after importing, the groovy nature seems to be on, but says build path error
> for groovy.lang.Object, so i sis an: "add groovy libs to classpath" from the
> context menu in eclipse which fixed that. the .classpath file (please see
> .classpath file below) has: "<classpathentry kind="con"
> path="GROOVY_SUPPORT"/>" now (not sure if it had it before i did this.
>
> now it can't find GrailsUnitTestCase. previous versions of .classpath files
> have had lines like: "<classpathentry kind="var"
> path="GRAILS_HOME/ant/lib/ant.jar"/>" in them.
>
> how do i get the grails stuff on the build path?
>
> thanks
>
> <?xml version="1.0" encoding="UTF-8"?>
> <classpath>
>          <classpathentry kind="src" path="src/java"/>
>          <classpathentry kind="src" path="src/groovy"/>
>          <classpathentry kind="src" path="grails-app/conf"/>
>          <classpathentry kind="src" path="grails-app/controllers"/>
>          <classpathentry kind="src" path="grails-app/domain"/>
>          <classpathentry kind="src" path="grails-app/services"/>
>          <classpathentry kind="src" path="grails-app/taglib"/>
>          <classpathentry kind="src" path="test/integration"/>
>          <classpathentry kind="src" path="test/unit"/>
>          <classpathentry kind="con"
> path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
>          <classpathentry kind="con"
> path="com.springsource.sts.grails.core.CLASSPATH_CONTAINER"/>
>          <classpathentry kind="con" path="GROOVY_SUPPORT"/>
>          <classpathentry kind="output" path="web-app/WEB-INF/classes"/>
> </classpath>
>
> ---
> co-chair http://ocjug.org/
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

Re: import new graisl project - no grails on classpath/build path

Ray Tayek
At 10:34 PM 12/1/2009, you wrote:
>...
>You should not need the GROOVY_SUPPORT classpath entry in your
>.classpath.  This should be included in the Grails dependencies
>classpath container.

i did not add this. it's just there.

>It looks like you need to refresh your grails dependencies.  Right
>click on your projects --> Grails Tools --> Refresh Dependencies.

i have no idea where that is (grails tools). i can't find anything to
do with groovy or grails in the project proerties.

>Take a look inside your grails dependencies container and you should
>see 'groovy-all-1.6.4.jar'.

sorry, i have no idea where to find "grails dependencies container"

thanks

>On Tue, Dec 1, 2009 at 8:47 PM, Ray Tayek <[hidden email]> wrote:
> > hi, just made a new grails project with 1.2-m4 and imported it into eclipse
> > 20090920-1017, groovy plugin version is: ersion:
> > 2.0.0.xx-20091019-1600-M1-e35.
> >
> > after importing, the groovy nature seems to be on, but says build
> path error
> > for groovy.lang.Object, so i sis an: "add groovy libs to
> classpath" from the
> > context menu in eclipse which fixed that. the .classpath file (please see
> > .classpath file below) has: "<classpathentry kind="con"
> > path="GROOVY_SUPPORT"/>" now (not sure if it had it before i did this.
> >
> > now it can't find GrailsUnitTestCase. previous versions of .classpath files
> > have had lines like: "<classpathentry kind="var"
> > path="GRAILS_HOME/ant/lib/ant.jar"/>" in them.
> >
> > how do i get the grails stuff on the build path?
> >
> > thanks
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> > <classpath>
> >          <classpathentry kind="src" path="src/java"/>
> >          <classpathentry kind="src" path="src/groovy"/>
> >          <classpathentry kind="src" path="grails-app/conf"/>
> >          <classpathentry kind="src" path="grails-app/controllers"/>
> >          <classpathentry kind="src" path="grails-app/domain"/>
> >          <classpathentry kind="src" path="grails-app/services"/>
> >          <classpathentry kind="src" path="grails-app/taglib"/>
> >          <classpathentry kind="src" path="test/integration"/>
> >          <classpathentry kind="src" path="test/unit"/>
> >          <classpathentry kind="con"
> > path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
> >          <classpathentry kind="con"
> > path="com.springsource.sts.grails.core.CLASSPATH_CONTAINER"/>
> >          <classpathentry kind="con" path="GROOVY_SUPPORT"/>
> >          <classpathentry kind="output" path="web-app/WEB-INF/classes"/>
> > </classpath>
> >
>  ...

---
co-chair http://ocjug.org/



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

Re: import new graisl project - no grails on classpath/build path

Andrew Eisenberg
I thought that you were using STS and the grails support included
there.  I guess that you are not.  However, this entry in your
.classpath file:
com.springsource.sts.grails.core.CLASSPATH_CONTAINER
can only come from STS.

1. I'd recommend that you use grails support in STS if you are not
already doing so. It is free and downloadable from here:
http://www.springsource.com/products/springsource-tool-suite-download
There is a tutorial on grails in Eclipse here:
http://www.grails.org/STS+Integration

2. If you are using STS, perhaps your project is not a grails project.
 Right click --> Configure --> Convert to grails project


--a

On Wed, Dec 2, 2009 at 12:05 AM, Ray Tayek <[hidden email]> wrote:

> At 10:34 PM 12/1/2009, you wrote:
>>
>> ...
>> You should not need the GROOVY_SUPPORT classpath entry in your
>> .classpath.  This should be included in the Grails dependencies
>> classpath container.
>
> i did not add this. it's just there.
>
>> It looks like you need to refresh your grails dependencies.  Right
>> click on your projects --> Grails Tools --> Refresh Dependencies.
>
> i have no idea where that is (grails tools). i can't find anything to do
> with groovy or grails in the project proerties.
>
>> Take a look inside your grails dependencies container and you should
>> see 'groovy-all-1.6.4.jar'.
>
> sorry, i have no idea where to find "grails dependencies container"
>
> thanks
>
>> On Tue, Dec 1, 2009 at 8:47 PM, Ray Tayek <[hidden email]> wrote:
>> > hi, just made a new grails project with 1.2-m4 and imported it into
>> > eclipse
>> > 20090920-1017, groovy plugin version is: ersion:
>> > 2.0.0.xx-20091019-1600-M1-e35.
>> >
>> > after importing, the groovy nature seems to be on, but says build path
>> > error
>> > for groovy.lang.Object, so i sis an: "add groovy libs to classpath" from
>> > the
>> > context menu in eclipse which fixed that. the .classpath file (please
>> > see
>> > .classpath file below) has: "<classpathentry kind="con"
>> > path="GROOVY_SUPPORT"/>" now (not sure if it had it before i did this.
>> >
>> > now it can't find GrailsUnitTestCase. previous versions of .classpath
>> > files
>> > have had lines like: "<classpathentry kind="var"
>> > path="GRAILS_HOME/ant/lib/ant.jar"/>" in them.
>> >
>> > how do i get the grails stuff on the build path?
>> >
>> > thanks
>> >
>> > <?xml version="1.0" encoding="UTF-8"?>
>> > <classpath>
>> >          <classpathentry kind="src" path="src/java"/>
>> >          <classpathentry kind="src" path="src/groovy"/>
>> >          <classpathentry kind="src" path="grails-app/conf"/>
>> >          <classpathentry kind="src" path="grails-app/controllers"/>
>> >          <classpathentry kind="src" path="grails-app/domain"/>
>> >          <classpathentry kind="src" path="grails-app/services"/>
>> >          <classpathentry kind="src" path="grails-app/taglib"/>
>> >          <classpathentry kind="src" path="test/integration"/>
>> >          <classpathentry kind="src" path="test/unit"/>
>> >          <classpathentry kind="con"
>> > path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
>> >          <classpathentry kind="con"
>> > path="com.springsource.sts.grails.core.CLASSPATH_CONTAINER"/>
>> >          <classpathentry kind="con" path="GROOVY_SUPPORT"/>
>> >          <classpathentry kind="output" path="web-app/WEB-INF/classes"/>
>> > </classpath>
>> >
>>  ...
>
> ---
> co-chair http://ocjug.org/
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>   http://xircles.codehaus.org/manage_email
>
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

Re: import new graisl project - no grails on classpath/build path

Ray Tayek
At 08:36 AM 12/2/2009, you wrote:
>I thought that you were using STS  ...

no

>and the grails support included
>there.  I guess that you are not.  However, this entry in your
>.classpath file:
>com.springsource.sts.grails.core.CLASSPATH_CONTAINER
>can only come from STS.

i don't recall downloading it. sts does not appear in the plugin list.

>1. I'd recommend that you use grails support in STS if you are not
>already doing so. It is free and downloadable from here:
>http://www.springsource.com/products/springsource-tool-suite-download
>There is a tutorial on grails in Eclipse here:
>http://www.grails.org/STS+Integration

i may try that

thanks

>On Wed, Dec 2, 2009 at 12:05 AM, Ray Tayek <[hidden email]> wrote:
> > At 10:34 PM 12/1/2009, you wrote:
> >>
> >> ...
> >> You should not need the GROOVY_SUPPORT classpath entry in your
> >> .classpath.  This should be included in the Grails dependencies
> >> classpath container.
> >
> > i did not add this. it's just there.
> >
> >> It looks like you need to refresh your grails dependencies.  Right
> >> click on your projects --> Grails Tools --> Refresh Dependencies.
> >
> > i have no idea where that is (grails tools). i can't find anything to do
> > with groovy or grails in the project proerties.
> >
> >> Take a look inside your grails dependencies container and you should
> >> see 'groovy-all-1.6.4.jar'.
> >
> > sorry, i have no idea where to find "grails dependencies container"
> >
> > thanks
> >
> >> On Tue, Dec 1, 2009 at 8:47 PM, Ray Tayek <[hidden email]> wrote:
> >> > hi, just made a new grails project with 1.2-m4 and imported it into
> >> > eclipse
> >> > 20090920-1017, groovy plugin version is: ersion:
> >> > 2.0.0.xx-20091019-1600-M1-e35.
> >> >
> >> > after importing, the groovy nature seems to be on, but says build path
> >> > error
> >> > for groovy.lang.Object, so i sis an: "add groovy libs to classpath" from
> >> > the
> >> > context menu in eclipse which fixed that. the .classpath file (please
> >> > see
> >> > .classpath file below) has: "<classpathentry kind="con"
> >> > path="GROOVY_SUPPORT"/>" now (not sure if it had it before i did this.
> >> >
> >> > now it can't find GrailsUnitTestCase. previous versions of .classpath
> >> > files
> >> > have had lines like: "<classpathentry kind="var"
> >> > path="GRAILS_HOME/ant/lib/ant.jar"/>" in them.
> >> >
> >> > how do i get the grails stuff on the build path?
> >> >
> >> > thanks
> >> >
> >> > <?xml version="1.0" encoding="UTF-8"?>
> >> > <classpath>
> >> >          <classpathentry kind="src" path="src/java"/>
> >> >          <classpathentry kind="src" path="src/groovy"/>
> >> >          <classpathentry kind="src" path="grails-app/conf"/>
> >> >          <classpathentry kind="src" path="grails-app/controllers"/>
> >> >          <classpathentry kind="src" path="grails-app/domain"/>
> >> >          <classpathentry kind="src" path="grails-app/services"/>
> >> >          <classpathentry kind="src" path="grails-app/taglib"/>
> >> >          <classpathentry kind="src" path="test/integration"/>
> >> >          <classpathentry kind="src" path="test/unit"/>
> >> >          <classpathentry kind="con"
> >> > path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
> >> >          <classpathentry kind="con"
> >> > path="com.springsource.sts.grails.core.CLASSPATH_CONTAINER"/>
> >> >          <classpathentry kind="con" path="GROOVY_SUPPORT"/>
> >> >          <classpathentry kind="output" path="web-app/WEB-INF/classes"/>
> >> > </classpath>
> >> >
> >>  ...
> >
> > ---
> > co-chair http://ocjug.org/
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe from this list, please visit:
> >
> >   http://xircles.codehaus.org/manage_email
> >
> >
> >
>
>---------------------------------------------------------------------
>To unsubscribe from this list, please visit:
>
>     http://xircles.codehaus.org/manage_email

---
co-chair http://ocjug.org/



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email