• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 1
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
you can call this url :

localhost:8080/SpringPizza/pizza

or

localhost:8080/SpringPizza/pizza-singleflow
 
Greenhorn
Posts: 7
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic