• 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

I want to study Spring,but i need Help

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, i want so study Spring,i start from hello World

I learned to make a hello world from this address "http://javacpplus.blogspot.com/2012/04/spring-framework-with-netbeans-70.htmlwebpage"

And this is my code, i make two class. 1 HelloWorld.java And 2 MainApp.java
and i Make one xml that is Beans.xml

check this is out
class HelloWorld.java



class MainApp.java


Beans.xml



that it's my code, but when i run this program, there is have problem

and this is problem



please help me, thanks
 
Rancher
Posts: 2759
32
Eclipse IDE Spring Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you are new to Spring, my suggestion is that you try to learn it from a book first. Online documentation doesn;t give you the basics, and might give you fragmented information. I found Spring In Action to be very useful

Specifically, your problem here is that Beans.xml is not in classpath. You need to make sure you add it to classpath
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
put your Beans.xml under src folder...
 
Greenhorn
Posts: 3
Eclipse IDE PHP Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

java is not able to find your Beans.xml file,
Java searches for files in its classpath, you have to add the file location in classpath of project,

1) Make a config directory and add Beans.xml to that directory.
Then add config folder in Sources->Source Package Folders, in project properties

or 2) simply move you Beans.xml to src directory since src directory is already added in classpath by NetBeans.

Hope this might Helpful,

Regards,
Paddy
 
reply
    Bookmark Topic Watch Topic
  • New Topic