I asked a similar question previously, but wanted some clarification on the mechanics of the GroovyScriptEngine and how class loading is performed. I have a Vaadin web application that contains groovy classes in WEB-INF. The webapp loads UI logic via a GroovyScriptEngine. Here is a sequence of events that leads to an error:
I understand that this may be a class loader issue. Suggestions? I thought the whole point of the GroovyScriptEngine was that it handled hot-edited groovy classes without having to restart the container.
For sure this is ClassLoader issue. If you need to reload classes (I suppose for faster development), try JRebel. Works well with groovy and tomcat.