tags:

views:

28

answers:

1

Hey all- I'm working on some web flows for a Grails app we're building. I'm (slowly) getting the hang of the webflows themselves, but progress is severely limited due to the fact that changes to the webflow controller are not auto-reloading in Tomcat on save; basically, I need to bounce the app every time I make a change. As you can imagine, this is pretty painful. I think auto-reload was working a couple of days ago and then stopped, but I'm not sure.

Has anyone else experienced this? Any thoughts on how to make auto-reload work?

Thanks!

A: 

After much trial and error, here's what I found:

Situation: I have a controller with a single webflow. The first stage of the webflow uses a command object. (Grails 1.3.1)

1) Command and Webflow in same file; Command first: everything works, but the controller will not auto-reload on save.

2) Command and Webflow in same file; Webflow first: doesn't work- a serialization exception thrown when trying to render the page that references the command object.

3) Command and Webdlow in different files: everything works and controller auto-reloads.

For now I'll just keep everything in separate files. If anyone has insight into why this behavior is being exhibited, I'm all ears.

ecodan