This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

Where are you configuring your applicationcontext? Where is the method getAppContext called I mean.

Also why are you loading the context yourself? If it is a webapplication use the servlet or listener to initialize your applicationcontext. If you really need access to your applicationcontext, let your java class implement the ApplicationContextAware interface.

Comment

Since even static initializations are logged twice, I suspect that perhaps the logging configuration is not correct. To verify single/double instantiation I suggest to set breakpoints and debug into initialization to see if happens once or twice.