diff --git a/grails-gsp/src/main/groovy/org/grails/gsp/GroovyPagesTemplateEngine.java b/grails-gsp/src/main/groovy/org/grails/gsp/GroovyPagesTemplateEngine.java index adffbcc2bf..7956bb5b22 100644 --- a/grails-gsp/src/main/groovy/org/grails/gsp/GroovyPagesTemplateEngine.java +++ b/grails-gsp/src/main/groovy/org/grails/gsp/GroovyPagesTemplateEngine.java @@ -201,14 +201,6 @@ public void setJspTagLibraryResolver(TagLibraryResolver jspTagLibraryResolver) { this.jspTagLibraryResolver = jspTagLibraryResolver; } - /** - * Sets the ClassLoader that the TemplateEngine should use to - * @param classLoader The ClassLoader to use when compilation of Groovy Pages occurs - */ - public void setClassLoader(ClassLoader classLoader) { - this.classLoader = classLoader; - } - /** * Retrieves a line number matrix for the specified page that can be used * to retrieve the actual line number within the GSP page if the line number within the diff --git a/grails-plugin-gsp/src/main/groovy/org/grails/plugins/web/GroovyPagesGrailsPlugin.groovy b/grails-plugin-gsp/src/main/groovy/org/grails/plugins/web/GroovyPagesGrailsPlugin.groovy index a6fe7f77f9..6875b17ab9 100644 --- a/grails-plugin-gsp/src/main/groovy/org/grails/plugins/web/GroovyPagesGrailsPlugin.groovy +++ b/grails-plugin-gsp/src/main/groovy/org/grails/plugins/web/GroovyPagesGrailsPlugin.groovy @@ -202,7 +202,7 @@ class GroovyPagesGrailsPlugin extends Plugin { // Setup the main templateEngine used to render GSPs groovyPagesTemplateEngine(GroovyPagesTemplateEngine) { bean -> - classLoader = ref("classLoader") + bean.lazyInit = true groovyPageLocator = groovyPageLocator if (enableReload) { reloadEnabled = enableReload