This week's book giveaway is in the HTML Pages with CSS and JavaScript forum.
We're giving away four copies of Testing JavaScript Applications and have Lucas da Costa on-line!
See this thread for details.
Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

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

 
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
 
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.
 
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
 
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
 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic