Quantcast

GroovyPagesTemplateEngine problem after upgrade to 1.2.0

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

GroovyPagesTemplateEngine problem after upgrade to 1.2.0

Michael Baehr
I have a custom taglib which uses GroovyPagesTemplateEngine to process a template coming from a database.

The simple code (content is a String)

def t = new GroovyPagesTemplateEngine().createTemplate(content,"LLTemplate")

was working in Grails 1.1.1, but gives me errors when compiling the template at runtime in 1.2.0:

Caused by: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, LLTemplate: 1: unable to resolve class org.codehaus.groovy.grails.plugins.metadata.GrailsPlugin
@ line 1, column 1.LLTemplate: 2: unable to resolve class org.codehaus.groovy.grails.web.pages.GroovyPage
@ line 2, column 1.LLTemplate: 4: unable to resolve class org.codehaus.groovy.grails.web.taglib.exceptions.GrailsTagException
@ line 4, column 1.LLTemplate: 6: unable to resolve class grails.util.GrailsUtil
@ line 6, column 1.
4 errors

What changes do I have to make to get this code compiling again? Some classloader magic?

Thanks

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

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Fwd: GroovyPagesTemplateEngine problem after upgrade to 1.2.0

Michael Baehr
Nobody does the same thing?

Begin forwarded message:

> From: Michael Baehr <[hidden email]>
> Date: 30. December 2009 12:39:20 EST
> To: Grails-User Grails-User <[hidden email]>
> Subject: GroovyPagesTemplateEngine problem after upgrade to 1.2.0
>
> I have a custom taglib which uses GroovyPagesTemplateEngine to process a template coming from a database.
>
> The simple code (content is a String)
>
> def t = new GroovyPagesTemplateEngine().createTemplate(content,"LLTemplate")
>
> was working in Grails 1.1.1, but gives me errors when compiling the template at runtime in 1.2.0:
>
> Caused by: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, LLTemplate: 1: unable to resolve class org.codehaus.groovy.grails.plugins.metadata.GrailsPlugin
> @ line 1, column 1.LLTemplate: 2: unable to resolve class org.codehaus.groovy.grails.web.pages.GroovyPage
> @ line 2, column 1.LLTemplate: 4: unable to resolve class org.codehaus.groovy.grails.web.taglib.exceptions.GrailsTagException
> @ line 4, column 1.LLTemplate: 6: unable to resolve class grails.util.GrailsUtil
> @ line 6, column 1.
> 4 errors
>
> What changes do I have to make to get this code compiling again? Some classloader magic?
>
> Thanks
>
> Michael


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

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: GroovyPagesTemplateEngine problem after upgrade to 1.2.0

Graeme Rocher-4
Administrator
In reply to this post by Michael Baehr
Very odd org.codehaus.groovy.grails.plugins.metadata.GrailsPlugin is
an annotation that should be on your classpath can you raise a JIRA
with steps to reproduce?

Cheers

On Wed, Dec 30, 2009 at 6:39 PM, Michael Baehr <[hidden email]> wrote:

> I have a custom taglib which uses GroovyPagesTemplateEngine to process a template coming from a database.
>
> The simple code (content is a String)
>
> def t = new GroovyPagesTemplateEngine().createTemplate(content,"LLTemplate")
>
> was working in Grails 1.1.1, but gives me errors when compiling the template at runtime in 1.2.0:
>
> Caused by: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, LLTemplate: 1: unable to resolve class org.codehaus.groovy.grails.plugins.metadata.GrailsPlugin
> @ line 1, column 1.LLTemplate: 2: unable to resolve class org.codehaus.groovy.grails.web.pages.GroovyPage
> @ line 2, column 1.LLTemplate: 4: unable to resolve class org.codehaus.groovy.grails.web.taglib.exceptions.GrailsTagException
> @ line 4, column 1.LLTemplate: 6: unable to resolve class grails.util.GrailsUtil
> @ line 6, column 1.
> 4 errors
>
> What changes do I have to make to get this code compiling again? Some classloader magic?
>
> Thanks
>
> Michael
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
>



--
Graeme Rocher
Grails Project Lead
SpringSource - A Division of VMware
http://www.springsource.com

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

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: GroovyPagesTemplateEngine problem after upgrade to 1.2.0

Michael Baehr
On the weekend I will try to see whether it only happens in a Taglib or everywhere else, too. And I will try to start with a fresh application to see if the upgrade process messed up something.

cu

Michael

On 11. Jan 2010, at 10:14, Graeme Rocher wrote:

> Very odd org.codehaus.groovy.grails.plugins.metadata.GrailsPlugin is
> an annotation that should be on your classpath can you raise a JIRA
> with steps to reproduce?
>
> Cheers
>
> On Wed, Dec 30, 2009 at 6:39 PM, Michael Baehr <[hidden email]> wrote:
>> I have a custom taglib which uses GroovyPagesTemplateEngine to process a template coming from a database.
>>
>> The simple code (content is a String)
>>
>> def t = new GroovyPagesTemplateEngine().createTemplate(content,"LLTemplate")
>>
>> was working in Grails 1.1.1, but gives me errors when compiling the template at runtime in 1.2.0:
>>
>> Caused by: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, LLTemplate: 1: unable to resolve class org.codehaus.groovy.grails.plugins.metadata.GrailsPlugin
>> @ line 1, column 1.LLTemplate: 2: unable to resolve class org.codehaus.groovy.grails.web.pages.GroovyPage
>> @ line 2, column 1.LLTemplate: 4: unable to resolve class org.codehaus.groovy.grails.web.taglib.exceptions.GrailsTagException
>> @ line 4, column 1.LLTemplate: 6: unable to resolve class grails.util.GrailsUtil
>> @ line 6, column 1.
>> 4 errors
>>
>> What changes do I have to make to get this code compiling again? Some classloader magic?
>>
>> Thanks
>>
>> Michael
>> ---------------------------------------------------------------------
>> To unsubscribe from this list, please visit:
>>
>>    http://xircles.codehaus.org/manage_email
>>
>>
>>
>
>
>
> --
> Graeme Rocher
> Grails Project Lead
> SpringSource - A Division of VMware
> http://www.springsource.com
>
> ---------------------------------------------------------------------
> 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
|  
Report Content as Inappropriate
star

Re: GroovyPagesTemplateEngine problem after upgrade to 1.2.0

Michael Baehr
In reply to this post by Graeme Rocher-4
Seems like GroovyPagesTemplateEngine doesn't work anywhere in 1.2, not even in a controller in a fresh application.

JIRA: http://jira.codehaus.org/browse/GRAILS-5699

cu

Michael

On 11. Jan 2010, at 10:14, Graeme Rocher wrote:

> Very odd org.codehaus.groovy.grails.plugins.metadata.GrailsPlugin is
> an annotation that should be on your classpath can you raise a JIRA
> with steps to reproduce?
>
> Cheers
>
> On Wed, Dec 30, 2009 at 6:39 PM, Michael Baehr <[hidden email]> wrote:
>> I have a custom taglib which uses GroovyPagesTemplateEngine to process a template coming from a database.
>>
>> The simple code (content is a String)
>>
>> def t = new GroovyPagesTemplateEngine().createTemplate(content,"LLTemplate")
>>
>> was working in Grails 1.1.1, but gives me errors when compiling the template at runtime in 1.2.0:
>>
>> Caused by: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, LLTemplate: 1: unable to resolve class org.codehaus.groovy.grails.plugins.metadata.GrailsPlugin
>> @ line 1, column 1.LLTemplate: 2: unable to resolve class org.codehaus.groovy.grails.web.pages.GroovyPage
>> @ line 2, column 1.LLTemplate: 4: unable to resolve class org.codehaus.groovy.grails.web.taglib.exceptions.GrailsTagException
>> @ line 4, column 1.LLTemplate: 6: unable to resolve class grails.util.GrailsUtil
>> @ line 6, column 1.
>> 4 errors
>>
>> What changes do I have to make to get this code compiling again? Some classloader magic?
>>
>> Thanks
>>
>> Michael
>> ---------------------------------------------------------------------
>> To unsubscribe from this list, please visit:
>>
>>    http://xircles.codehaus.org/manage_email
>>
>>
>>
>
>
>
> --
> Graeme Rocher
> Grails Project Lead
> SpringSource - A Division of VMware
> http://www.springsource.com
>
> ---------------------------------------------------------------------
> 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


Loading...