• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with "Spring in Action" Book First Example

 
Baba prakash
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • 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
Directory Structure
[Thumbnail for Directory_Structure.JPG]
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • 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
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic