This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

Feb 24, 2011 7:49:25 AM org.apache.catalina.core.StandardHostValve custom
SEVERE: Exception Processing ErrorPage[errorCode=404, location=/resourceNotFound]
javax.servlet.ServletException: Circular view path [resourceNotFound]: would dispatch back to the current handler URL [/flexroo/resourceNotFound] again. Check your ViewResolver setup! (Hint: This may be the result of an unspecified view, due to default view name generation.)
at org.springframework.web.servlet.view.InternalResourceView.prepareForRendering(InternalResourceView.java:292)
at org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:214)
at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:250)

Then I opened /src/main/webapp/FlexWedding_scaffold.html and did a save as index.html.

Then Run on Server and bingo Flex application running AOK

I did notice that in FlexWedding/html-template/ there is a file called index.template.html that is exactly the same as FlexWedding_scaffold.html, so I could have copied that into src/main/webapp/ and renamed that index.html, which by the names must have been indended.

So I am guessing the Flex addon is missing that step that takes index.template.html and copies it and renames it so the applicatoin will run without this much effort.

Of course now that I know, I can do it myself, and I hope this thread helps others avoid the confusion.

Comment

geordieracer, I was pulled off again, but left the project in an unstable condition. Though I was able to pull off an initial full build from scratch, I could not replicate the setup more than once. I believe in the build, tear down, build again paradigm so that I can show others what was done. Unfortunately, when we use bleeding edge libraries, we are going to come across this. I hope to get back at the use of the STS-spring-roo-flex setup tomorrow. Let us (the general community) if you find yourself in a state that can be published for general consumption.... Cheers!

Comment

Regarding this:
Further changes were required to bring the addon into line with Spring Roo 1.1.1.RELEASE. These changes are available as of tonight's snapshot (http://maven.springframework.org/sna...075648-225.jar) and going forward. Many thanks to Thomas Fowler for supplying a patch that served as the foundation for this update.

I found there is some problem with this patch with Spring Roo 1.1.1.Release. My persistence layer is using Oracle with Hibernate.
First problem, pom.xml is using spring-flex-core.1.5.0.BUILD-SNAPSHOT, and it will complain the jar is missing, so I have to change it back to spring-flex-core.1.5.0.M1.
Second problem, I found I could not be able to add a new record from GUI. Got "org.hibernate.PersistentObjectException: detached entity passed to persist:" error.

but I don't the same problems with flex addon 1.0.0.M1 with Spring Roo 1.1.0.M1.

Comment

Regarding this:
Further changes were required to bring the addon into line with Spring Roo 1.1.1.RELEASE. These changes are available as of tonight's snapshot (http://maven.springframework.org/sna...075648-225.jar) and going forward. Many thanks to Thomas Fowler for supplying a patch that served as the foundation for this update.

I found there is some problem with this patch with Spring Roo 1.1.1.Release. My persistence layer is using Oracle with Hibernate.
First problem, pom.xml is using spring-flex-core.1.5.0.BUILD-SNAPSHOT, and it will complain the jar is missing, so I have to change it back to spring-flex-core.1.5.0.M1.
Second problem, I found I could not be able to add a new record from GUI. Got "org.hibernate.PersistentObjectException: detached entity passed to persist:" error.

but I don't the same problems with flex addon 1.0.0.M1 with Spring Roo 1.1.0.M1.

Does anyone has the same problem, or I missed something?

Thanks.

Hi Xiong-

Thank you very much for the kind words. I'm very glad I could help with the patch and I would be happy to continue contributing to the development of the flex add-on.