What does happen, what doesn't happen. If possible post project...
What does happen, what doesn't happen. If possible post project...
Marten Deinum
Java Consultant / Pragmatist / Open Source Enthousiast / Author
Pro Spring MVC: With Web Flow
Conspect
Have you read the reference guide.
Use the [ code ] tags, young padawan
I have all the code about.. the the war file is to big to add here
I assume you use something as maven or gradle to build your projects?! And not that you are searching the internet for your own combination of jar files that works?!
Marten Deinum
Java Consultant / Pragmatist / Open Source Enthousiast / Author
Pro Spring MVC: With Web Flow
Conspect
Have you read the reference guide.
Use the [ code ] tags, young padawan
hey Marten Deinum I got your book this weekend but cant get chap10 running.. can you please help up
still cant get my hello world flow working.. so I posted the war with the source here on dropbox https://www.dropbox.com/s/5mojqctfqk...oWorldFlow.war
Please let me know if you can help
Judging from the emails you send you ran into an issue with either Gradle or the Gradle Plugin (we encountered it also on occasions). The recent code from our repository contains a fix in our build for that. Manually you can fix it by right clicking on the chapter10 project, goto j2ee dependencies (from the top of my head), find the 2 broken links to shared projects. Remove those and add them manually again, that should fix those classnotfoundexceptions.
Marten Deinum
Java Consultant / Pragmatist / Open Source Enthousiast / Author
Pro Spring MVC: With Web Flow
Conspect
Have you read the reference guide.
Use the [ code ] tags, young padawan
1. Remove the ContextLoaderServlet because you don't have an applicationContext.xml also it is for use in servlet 2.3 and lower environments (You should use the ContextLoaderListener)
2. Your pattern to load your flows is wrong. The flows aren't on your classpath they are in /WEB-INF. So either move your flows to the classpath or change to /WEB-INF/flows/*-flow.xml.
3. You are trying to get a webflow 1.0 flow to work with webflow 2.0 that isn't going to work change it to a valid webflow 2.0 flow definition.
4. Remove the FlowController, use either the FlowHandler of FlowController not both.
5. You only have the HandlerAdapter you also need to FlowHandlerMapping for mappinig flows.
6. I suggest you use a final-build (2.3.1) of webflow instead of some snapshot build.
7. Again I strongly suggest a read of the chapters I pointed you to in the other thread on how to configure Spring Web Flow.
Marten Deinum
Java Consultant / Pragmatist / Open Source Enthousiast / Author
Pro Spring MVC: With Web Flow
Conspect
Have you read the reference guide.
Use the [ code ] tags, young padawan
thanks again Marten... for chap10 your fixed worked but for my hellow world I made my changes but still no lucky.. I did read the book and dont understand why this is not working it should be so easy. please anyway for you to fix my new war?? please help me out.. I need to get a very easy sample working fast.
https://www.dropbox.com/s/5mojqctfqk...oWorldFlow.war
above is the new war
Please read the sections (Ch11 and Ch10 I pointed you to earlier... As you are still missing a crucial part of your configuration.
Also remove the basepath of your registry (or remove it f rom the path but now flows are being detected in /WEB-INF/WEB-INF).Originally Posted by mdeinum
Because you are missing the FlowHandlerMapping and have a wrongly configured flow-registry.dont understand why this is not working it should be so easy
Marten Deinum
Java Consultant / Pragmatist / Open Source Enthousiast / Author
Pro Spring MVC: With Web Flow
Conspect
Have you read the reference guide.
Use the [ code ] tags, young padawan
I did read it two times and I just dont understand web flow.. I need to see it and a very easy sample.. I made the two changes and still not working.. I reposted the project at https://www.dropbox.com/s/5mojqctfqk...oWorldFlow.war but it should not be this hard to do