[Yanel-dev] Problem reading spring config when calling from ant
Michael Wechner
michael.wechner at wyona.com
Sun Apr 5 09:52:11 CEST 2009
Hi
When Yanel starts up then the spring config is being read:
0 2009-04-05 09:22:09,939 [http-8080-Processor24] INFO
org.wyona.yanel.core.Yanel.<init>():63 - Spring config file:
spring-*-config.xml83 2009-04-05 09:22:10,022 [http-8080-Processor24]
INFO org.springframework.core.CollectionFactory.<clinit>():76 - JDK
1.4+ collections available91 2009-04-05 09:22:10,030
[http-8080-Processor24] INFO
org.springframework.core.CollectionFactory.<clinit>():80 - Commons
Collections 3.x available
141 2009-04-05 09:22:10,080 [http-8080-Processor24] INFO
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions():347
- Loading XML bean definitions from file
[/Users/michaelwechner/src/wyona/public/yanel/trunk/local/apache-tomcat-5.5.20/webapps/yanel/WEB-INF/classes/spring-wiki-config.xml]291
2009-04-05 09:22:10,230 [http-8080-Processor24] INFO
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions():347
- Loading XML bean de
finitions from file
[/Users/michaelwechner/src/wyona/public/yanel/trunk/local/apache-tomcat-5.5.20/webapps/yanel/WEB-INF/classes/spring-yanel-config.xml]311
2009-04-05 09:22:10,250 [http-8080-Processor24] INFO
org.springframework.context.support.ClassPathXmlApplicationContext.refreshBeanFactory():100
- Bean factory for application context
[org.springframework.context.support.ClassPathXmlApplicationContext;hashCode=9527516]:
org.springframework.beans.factory.support.DefaultListableBeanFactory
defining beans
[jspWikiParser,javaccWikiParser,DefaultRepositoryFactory,RTIRepositoryFactory,ACPoliciesRepositoryFactory,ACIdentitiesRepositoryFactory,ExtraRepo
sitoryFactory,map,PolicyManagerFactory,IdentityManagerFactory,repo-navigation];
root of BeanFactory hierarchy
317 2009-04-05 09:22:10,256 [http-8080-Processor24] INFO
org.springframework.context.support.ClassPathXmlApplicationContext.refresh():324
- 11 beans defined in applic
ation context
[org.springframework.context.support.ClassPathXmlApplicationContext;hashCode=9527516]
But when doing the same from within ant then one receives the following:
merge-resource-types-configs] 35 2009-04-05 09:48:26,480 [main] INFO
org.wyona.yanel.core.Yanel.<init>():63 - Spring config file:
spring-*-config.xml
[merge-resource-types-configs] 120 2009-04-05 09:48:26,565 [main] INFO
org.springframework.core.CollectionFactory.<clinit>():76 - JDK 1.4+
collections available
[merge-resource-types-configs] 163 2009-04-05 09:48:26,608 [main] INFO
org.springframework.context.support.ClassPathXmlApplicationContext.refreshBeanFactory():100
- Bean factory for application context
[org.springframework.context.support.ClassPathXmlApplicationContext;hashCode=2886974]:
org.springframework.beans.factory.support.DefaultListableBeanFactory
defining beans []; root of BeanFactory hierarchy
[merge-resource-types-configs] 169 2009-04-05 09:48:26,614 [main] INFO
org.springframework.context.support.ClassPathXmlApplicationContext.refresh():321
- No beans defined in application context
[org.springframework.context.support.ClassPathXmlApplicationContext;hashCode=2886974]
Any idea why this is happening? Is this a classpath problem or rather a
class loading problem of ant intself?
Thanks
Michael
More information about the Yanel-development
mailing list