Tuesday, 10 September 2013

New Grails 2.3 App gets created with ForkedTomcatServer.groovy errors

New Grails 2.3 App gets created with ForkedTomcatServer.groovy errors

When I create a new "Grails Project" in GGTS-3.3.0 with Grails 2.3, I get
several errors in ForkedTomcatServer.groovy. These are the errors I get:
Groovy:[Static type checking] - No such property: version for class:
org.codehaus.groovy.grails.plugins.GrailsPluginInfo
ForkedTomcatServer.groovy
/testapp/.link_to_grails_plugins/tomcat-7.0.42/src/groovy/org/grails/plugins/tomcat/fork
line 165
Groovy:[Static type checking] - No such property: descriptor for class:
org.codehaus.groovy.grails.plugins.GrailsPluginInfo
ForkedTomcatServer.groovy
/testapp/.link_to_grails_plugins/tomcat-7.0.42/src/groovy/org/grails/plugins/tomcat/fork
line 166
These are the lines of code referenced in the errors:
GrailsPluginInfo info =
GrailsPluginUtils.getPluginBuildSettings().getPluginInfoForName('tomcat')
String jarName = "grails-plugin-tomcat-${info.version}.jar"
File jar = info.descriptor.file.parentFile.listFiles().find { File f ->
f.name.equals(jarName) }
I have not made any changes whatsoever. I just clicked File -> New ->
Grails Project and the output has these errors. I have made several
different projects and they all generate the same way.
Why is this happening and how can I fix it?

No comments:

Post a Comment