This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Spring and the fly likes Problem with Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Problem with "Spring in Action" Book First Example" Watch "Problem with "Spring in Action" Book First Example" New topic

Problem with "Spring in Action" Book First Example

Baba prakash

Joined: Jan 14, 2010
Posts: 5
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.

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.

[Thumbnail for Directory_Structure.JPG]

David Newton

Joined: Sep 29, 2008
Posts: 12617

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

Joined: Jan 14, 2010
Posts: 5
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.
subject: Problem with "Spring in Action" Book First Example
It's not a secret anymore!