my dog learned polymorphism*
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
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
Author

Problem with "Spring in Action" Book First Example

Baba prakash
Greenhorn

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




[Thumbnail for Directory_Structure.JPG]

David Newton
Author
Rancher

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
Greenhorn

Joined: Jan 14, 2010
Posts: 5
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with "Spring in Action" Book First Example
 
Similar Threads
error in a simple hibernate application
Spring: Hello World Does Not Work
Problem in Eclipse IDE
spring inside eclipse
How to have multiple public classes in one file for spring?