Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Martin Andersson
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can call this url :

localhost:8080/SpringPizza/pizza

or

localhost:8080/SpringPizza/pizza-singleflow
 
Yogesh R Kapare
Greenhorn
Posts: 7
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic