Can you put Spring XML configuration here.. along with code.. how did you write those things so that I can find what is wrong there.
I guess, you might have wired all the class in the configuration file. Spring is having feature to load all object using Inversion of control but those class must be wired in caller bean. One feature of spring is it will treat all class as singleton class and will be loaded when loading the application..
I can't visualize the problem until or unless you are putting exact information with java example.