• 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
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Hello World in Spring

 
Greenhorn
Posts: 29
Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying to implement the Hello world program given in the link HelloWorldSpring, I have followed all the steps and still not getting it to work.

By the way, yes I do have tomcat installed and working. This is my first spring web app program please help
 
Bartender
Posts: 1682
7
Android Mac OS X IntelliJ IDE Spring Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That tutorial is based on Spring 2.5. I would look for newer tutorials at least Spring 3. Also "Still not getting it to work" does not give us enough information to help you. Please read ItDoesntWorkIsUseless. I suggest you download STS (Spring Source Tool Suite) they have template projects in which you can start out with a simple hello world application and move forward from there. I think there is also a video tutorial out there I have not watched it personally but it might help.

See the Getting Started with Spring & SpringSource Tool Suite (STS) link HERE for the link to that video.
 
kc pradeep
Greenhorn
Posts: 29
Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I will go through that meanwhile can you help me understand what is wrong with this code? I will copy the code here.

applicationContext.xml


index.jsp


redirect.jsp



Please also see the eclipse view for the project attached with this.
 
Bill Gorder
Bartender
Posts: 1682
7
Android Mac OS X IntelliJ IDE Spring Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't see any attachments, but what I the most helpful for diagnosing problems is a stack trace. If it is not working most often there are exceptions in your console you always want to be sure you post the complete stack trace if you are getting exceptions.
 
kc pradeep
Greenhorn
Posts: 29
Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Bill,

There are no errors, when I run the project as 'Run on Server', it goes to url http://localhost:8080/Spring_HelloWorld_browser/ and give the error HTTP Status 404 : The requested resource (/Spring_HelloWorld_browser/) is not available.
 
kc pradeep
Greenhorn
Posts: 29
Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
and here is the image
 
Bill Gorder
Bartender
Posts: 1682
7
Android Mac OS X IntelliJ IDE Spring Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are their Spring start up messages in your log? Are you bootstrapping Spring in your web.xml? Why are you not using maven? Configuring Spring projects by just adding all the jars to a lib directory is tedious and often times problematic.
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic