aspose file tools*
The moose likes Spring and the fly likes gets 404 then i try to run SpringPizza example from Spring in Action third edition Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "gets 404 then i try to run SpringPizza example from Spring in Action third edition" Watch "gets 404 then i try to run SpringPizza example from Spring in Action third edition" New topic
Author

gets 404 then i try to run SpringPizza example from Spring in Action third edition

Martin Andersson
Greenhorn

Joined: Jan 17, 2008
Posts: 3
Hi,

Im trying to learn Spring web flow (http://www.manning.com/walls4/)

I downloaded SpringPizza source code from: http://www.manning.com/walls4/sia3-code.zip
and built it with Gradle and converted to a eclipse project.

Imported it to eclipse. followed a guide on internet how to convert a java project to a dynamic java project.
Had some dublicate imports, removed this.

After that I had a green eclipse(error free project in eclipse)

Configured Tomcat in eclipse and lunched the application.

Then I try to reach localhost:8080/SpringPizza I get a 404.


I also have deployed the built war file from Cradle directly to Tomcat(drag and dropped in the../webapp folder). I can see the war are unpacked and i found logs from the application but dont see any faults.

Any one got this example to work? I have looked in the web.xml and try'ed to change dispacterservlet , /, /*.

Best Regards
Miku Ranjan
Ranch Hand

Joined: Oct 11, 2011
Posts: 98
Hi,
I think your application is not clean and deploy properly in your eclispe .
Please check your workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps directory and there your project folder is configured with correct files and folder
Please check that one if not configured correctly then there may be problem with eclipse configuration for this project.
chandan sharma mca
Greenhorn

Joined: Aug 27, 2013
Posts: 1
you can call this url :

localhost:8080/SpringPizza/pizza

or

localhost:8080/SpringPizza/pizza-singleflow
Yogesh R Kapare
Greenhorn

Joined: Oct 23, 2012
Posts: 7
    
    1
Hello Chandan,

Thanks for pointing out the URL to run the SpringPizza(Spring Web Flow example from the Spring in action by Craig Walls).

It saved me another day.( lol ).

I spent almost two days to get this application running, it does not have any POM like the other examples in the book.Then there are compilation issues,compatibility issues and many things like that.

Nothing to take away from Craig , fantastic job,but a tiny bit of effort would save so much time.Never mind.

Once you have a nice POM the application is breeze.

I am pasting the POM for this example here for other developers.

The POM :



Hope this helps,

YRK
 
wood burning stoves
 
subject: gets 404 then i try to run SpringPizza example from Spring in Action third edition