issue with springcache plugin, cannot find symbol class PageFragmentCachingFilter

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

issue with springcache plugin, cannot find symbol class PageFragmentCachingFilter

BASE Logic, Inc.
In Intelli-j, I keep getting this error when running a test:

> cannot find symbol class PageFragmentCachingFilter

I click on the class that has the error, ands get:

package grails.plugin.springcache.web;

public class GrailsFragmentCachingFilter extends PageFragmentCachingFilter implements groovy.lang.GroovyObject {
  public void doInit(javax.servlet.FilterConfig filterConfig) {
    return ;
  }


So I assume that this class is trying to find grails.plugin.springcache.web.PageFragmentCachingFilter 

Thus what is needed is: net.sf.ehcache.constructs.web.filter. PageFragmentCachingFilter 

Am I correct? Or missing something?


---
Thank You…

Mick Knutson, President

BASE Logic, Inc.
Enterprise Architecture, Design, Mentoring & Agile Consulting
p. (866) BLiNC-411: (254-6241-1)
f. (415) 685-4233

Website: http://www.baselogic.com
Blog: http://www.baselogic.com/blog/
Linked IN: http://linkedin.com/in/mickknutson
Twitter: http://twitter.com/mickknutson
Vacation Rental: http://tahoe.baselogic.com
---

Reply | Threaded
Open this post in threaded view
|

Re: issue with springcache plugin, cannot find symbol class PageFragmentCachingFilter

Dan Lynn
You might be missing an import in your groovy class. Check there first.

Barring that, Peter at JetBrains gave me a one-off bugfix build to the Groovy plugin to fix problems with the "transient" keyword. Check out this thread and get the zip.

Cheers,
Dan

On 05/05/2010 09:28 AM, Mick Knutson wrote:
In Intelli-j, I keep getting this error when running a test:

> cannot find symbol class PageFragmentCachingFilter

I click on the class that has the error, ands get:

package grails.plugin.springcache.web;

public class GrailsFragmentCachingFilter extends PageFragmentCachingFilter implements groovy.lang.GroovyObject {
  public void doInit(javax.servlet.FilterConfig filterConfig) {
    return ;
  }


So I assume that this class is trying to find grails.plugin.springcache.web.PageFragmentCachingFilter 

Thus what is needed is: net.sf.ehcache.constructs.web.filter. PageFragmentCachingFilter 

Am I correct? Or missing something?


---
Thank You…

Mick Knutson, President

BASE Logic, Inc.
Enterprise Architecture, Design, Mentoring & Agile Consulting
p. (866) BLiNC-411: (254-6241-1)
f. (415) 685-4233

Website: http://www.baselogic.com
Blog: http://www.baselogic.com/blog/
Linked IN: http://linkedin.com/in/mickknutson
Twitter: http://twitter.com/mickknutson
Vacation Rental: http://tahoe.baselogic.com
---


Reply | Threaded
Open this post in threaded view
|

Re: issue with springcache plugin, cannot find symbol class PageFragmentCachingFilter

BASE Logic, Inc.
let me try that. Thanks

---
Thank You…

Mick Knutson, President

BASE Logic, Inc.
Enterprise Architecture, Design, Mentoring & Agile Consulting
p. (866) BLiNC-411: (254-6241-1)
f. (415) 685-4233

Website: http://www.baselogic.com
Blog: http://www.baselogic.com/blog/
Linked IN: http://linkedin.com/in/mickknutson
Twitter: http://twitter.com/mickknutson
Vacation Rental: http://tahoe.baselogic.com
---



On Wed, May 5, 2010 at 11:33 AM, Dan Lynn <[hidden email]> wrote:

Barring that, Peter at JetBrains gave me a one-off bugfix build to the Groovy plugin to fix problems with the "transient" keyword. Check out this thread and get the zip.

Reply | Threaded
Open this post in threaded view
|

Re: issue with springcache plugin, cannot find symbol class PageFragmentCachingFilter

Robert Fletcher
In reply to this post by BASE Logic, Inc.
IntelliJ has not resolved the ehcache-web library properly. Are you
using IntelliJ 9? If so it should be able to pick it up by right
clicking the project root and selecting "Synchronize Grails
dependencies". If you're using an earlier version you will need to set
up a library in IntelliJ pointing to the ehcache-web jar in your Ivy
cache directory.

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

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

Re: issue with springcache plugin, cannot find symbol class PageFragmentCachingFilter

BASE Logic, Inc.
Ok, I finally got it. SOLVED

The *-grailsPlugins module was not picking up the global ehcache libs. I have to manually add that jar to the module. Strange because it shows that it sees the jar even without having to add it manually, but it works, so I am moving on.

Thanks everyone


---
Thank You…

Mick Knutson, President

BASE Logic, Inc.
Enterprise Architecture, Design, Mentoring & Agile Consulting
p. (866) BLiNC-411: (254-6241-1)
f. (415) 685-4233

Website: http://www.baselogic.com
Blog: http://www.baselogic.com/blog/
Linked IN: http://linkedin.com/in/mickknutson
Twitter: http://twitter.com/mickknutson
Vacation Rental: http://tahoe.baselogic.com
---



On Wed, May 5, 2010 at 12:14 PM, Robert Fletcher <[hidden email]> wrote:
IntelliJ has not resolved the ehcache-web library properly. Are you
using IntelliJ 9? If so it should be able to pick it up by right
clicking the project root and selecting "Synchronize Grails
dependencies". If you're using an earlier version you will need to set
up a library in IntelliJ pointing to the ehcache-web jar in your Ivy
cache directory.

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

   http://xircles.codehaus.org/manage_email



Reply | Threaded
Open this post in threaded view
|

Re: issue with springcache plugin, cannot find symbol class PageFragmentCachingFilter

Robert Fletcher
I must confess I'm a little confused as to what type of test you could
be running inside of IntelliJ that would need access to that class
anyway. Surely a unit test could have pretty much no conceivable
business going near it and an integration or functional test would be
getting run via the grails test-app script anyway so IntelliJ would be
irrelevant.

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

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

Re: issue with springcache plugin, cannot find symbol class PageFragmentCachingFilter

BASE Logic, Inc.
I agree, but it appears that idea wants to compile the entire project before running any tests.

---
Thank You…

Mick Knutson, President

BASE Logic, Inc.
Enterprise Architecture, Design, Mentoring & Agile Consulting
p. (866) BLiNC-411: (254-6241-1)
f. (415) 685-4233

Website: http://www.baselogic.com
Blog: http://www.baselogic.com/blog/
Linked IN: http://linkedin.com/in/mickknutson
Twitter: http://twitter.com/mickknutson
Vacation Rental: http://tahoe.baselogic.com
---



On Wed, May 5, 2010 at 1:18 PM, Robert Fletcher <[hidden email]> wrote:
type of test you could
be running inside of IntelliJ that would need access to that class
anyway. Surely a unit test could have pretty much no conceivable
business going near it and an integration or functional test would be
getting run via the grails test-app script anyway so IntelliJ would be
irrelevant.

Reply | Threaded
Open this post in threaded view
|

Re: issue with springcache plugin, cannot find symbol class PageFragmentCachingFilter

Robert Fletcher
You can edit the run configuration and untick "make" to stop it doing
that. Didn't think it was the default anyway but maybe it is.

On Wed, May 5, 2010 at 6:21 PM, Mick Knutson <[hidden email]> wrote:

> I agree, but it appears that idea wants to compile the entire project before
> running any tests.
>
> ---
> Thank You…
>
> Mick Knutson, President
>
> BASE Logic, Inc.
> Enterprise Architecture, Design, Mentoring & Agile Consulting
> p. (866) BLiNC-411: (254-6241-1)
> f. (415) 685-4233
>
> Website: http://www.baselogic.com
> Blog: http://www.baselogic.com/blog/
> Linked IN: http://linkedin.com/in/mickknutson
> Twitter: http://twitter.com/mickknutson
> Vacation Rental: http://tahoe.baselogic.com
> ---
>
>
>
> On Wed, May 5, 2010 at 1:18 PM, Robert Fletcher
> <[hidden email]> wrote:
>>
>> type of test you could
>> be running inside of IntelliJ that would need access to that class
>> anyway. Surely a unit test could have pretty much no conceivable
>> business going near it and an integration or functional test would be
>> getting run via the grails test-app script anyway so IntelliJ would be
>> irrelevant.
>

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

    http://xircles.codehaus.org/manage_email