-
Jan 28th, 2011, 08:38 AM
#1
Strange contextConfigLocation issue
Hi everybody
I have to move a Spring 1.2.9 based webapp to a new hoster and therefore from a Windows server to a FreeBSD machine. On FreeBSD the path "/home" is a softlink of "/usr/home". The tomcat is installed under "/usr/home/[username]/tomcat55"
Now, when I deploy the webapp it loads every Spring context configfile two times (and therefore fails).
In the Logfile I see that it first loads every configfile from "/usr/home/..." and overwrites it later with the same file from "/home/..."
The container is configured with contextConfigLocation in web.xml and the value "classpath*:**/AppContext-*.xml"
Logfile:
org.springframework.beans.factory.xml.XmlBeanDefin itionReader -
Loading XML bean definitions from file
[/usr/home/.../WEB-INF/classes/.../applicationContext-aclManager.xml]
... other configfiles from /usr/home/...
org.springframework.beans.factory.xml.XmlBeanDefin itionReader -
Loading XML bean definitions from file
[/home/.../WEB-INF/classes/.../applicationContext-aclManager.xml]
... loads of Overriding bean definition for bean ....
... errors because of duplicate hibernate mappings...
any ideas how to avoid this?
Thanks and cheers
Stefan
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules