Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 26

Thread: Making a Hello World Flow... what am I missing

  1. #11
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,625

    Default

    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

  2. #12
    Join Date
    Mar 2011
    Posts
    166

    Default

    I have all the code about.. the the war file is to big to add here

  3. #13
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,625

    Default

    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

  4. #14
    Join Date
    Mar 2011
    Posts
    166

    Default

    hey Marten Deinum I got your book this weekend but cant get chap10 running.. can you please help up

  5. #15
    Join Date
    Mar 2011
    Posts
    166

    Default

    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

  6. #16
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,625

    Default

    Quote Originally Posted by JohnTheDroider View Post
    hey Marten Deinum I got your book this weekend but cant get chap10 running.. can you please help up
    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

  7. #17
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,625

    Default

    Quote Originally Posted by JohnTheDroider View Post
    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
    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

  8. #18
    Join Date
    Mar 2011
    Posts
    166

    Default

    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

  9. #19
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,625

    Default

    Please read the sections (Ch11 and Ch10 I pointed you to earlier... As you are still missing a crucial part of your configuration.

    Quote Originally Posted by mdeinum
    5. You only have the HandlerAdapter you also need to FlowHandlerMapping for mappinig flows.
    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).

    dont understand why this is not working it should be so easy
    Because you are missing the FlowHandlerMapping and have a wrongly configured flow-registry.
    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

  10. #20
    Join Date
    Mar 2011
    Posts
    166

    Default

    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

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •