1) Where is your setter method for that property.
2) You are casting the getBean return value to a String, when the Bean type is not a String but a com.abc.testing.xyz.bear.zoo.SomeClass
3) What is this init method? What is the purpose of the object that is the bean is also the code to lookup itself from the ApplicationContext?
I am assuming this is just a test for you to try out Spring.
I recommend making the simple SomeClass with the String property and getter and setter of it.
Then create another class that has a public static void main(String args) and in that method create the ApplicationContext and get the Bean.
Also, make sure your testing.xml is in the root of your classpath.
Thanks for your help. I made the changes you suggested and I was stumped because it was like my changes were being ignored. I finally remembered that the context file is getting copied over to the bin folder in my ant build script. I ran the build and it worked great. Thanks again
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop