This week's book giveaway is in the Beginning Java forum.
We're giving away four copies of Learn Java with Math: Using Fun Projects and Games and have Ron Dai on-line!
See this thread for details.
Win a copy of Learn Java with Math: Using Fun Projects and Games this week in the Beginning Java 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Junilu Lacar
  • Martin Vashko
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Scott Selikoff
  • salvin francis
  • Piet Souris

I want to study Spring,but i need Help

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
  • 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
 
You firghten me terribly. I would like to go home now. Here, take this tiny ad:
Sauce Labs - World's Largest Continuous Testing Cloud for Websites and Mobile Apps
https://coderanch.com/t/722574/Sauce-Labs-World-Largest-Continuous
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!