Win a copy of Modern frontends with htmx this week in the Spring 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 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

Problem with "Spring in Action" Book First Example

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am new to Spring Framework. I am learning Spring by using Spring in Action Book 2nd Edition (Spring 2.0). While Executing example present in Chapter 01 in eclipse IDE i am getting Error as The requested resource is not available. I tried all the ways but i could not resolve it. Please help me.
I am using eclipse 3.4.2,JDK 1.5.

Things i did in eclipse:-
1.Created Dynamic web project with name "Hello"
2.Created package with name "com.springinaction.chapter01.hello", under this package i have created three .java files.

GreetingService.java


GreetingServiceImpl.java


HelloApp.java


3. Created file hello.xml with following content. I placed this file under the folder "war"

4.I have down loaded all spring related Jars and added to the classpath.

Attached Screen shot of Directory Structure for reference.

Please help me to resolve this issue.
Thanks in advance.

Directory_Structure.JPG
[Thumbnail for Directory_Structure.JPG]
Directory Structure
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Nothing you posted has anything to do with a web app, and none of the Chapter 1 examples deal with web apps.

If you're getting an error from a browser you're not running the examples correctly.

Are you trying to *make* a web app from the example(s) in Chapter 1?
 
Baba prakash
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I realised mistake. I created new Dynamic web project instead of Java Project in Eclipse. Now i am able to execute example mentioned.

Thanks for reply.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic