I'm seeing some strang behavior when running my application on AIX 5.2 using IBM's Java 1.4 or 1.3 VM.
I use the FileSystemXmlApplicationContext container and use the single String constructor. I am passing a string that is an absolute path to my bean def file. The problem is the container can never find the file. The path to the file seems to always have the leading '/' removed and my guess is it is trying to load it as a relative path from my working directory.
My code works fine on windows so this makes me think it is either an AIX problem or an IBM java VM problem. Anyone seen anything like this before?
here is my program's log output
String to pass to FileSystemXmlApplication Constructor is /dmiw/dvengine/dmiw/active/config/DMIWUserEmailListApp.xml
current working dir is /dmiw/dvengine/dmiw/HEAD/Install_Image/bin
[INFO] XmlBeanDefinitionReader - Loading XML bean definitions from file [/dmiw/dvengine/dmiw/HEAD/Install_Image/bin/dmiw/dvengine/dmiw/active/config/DMIWUserEmailListApp.xml]
Exception in thread "main" org.springframework.beans.factory.BeanDefinitionSt oreException: IOException parsing XML document from file [/dmiw/dvengine/dmiw/HEAD/Install_Image/bin/dmiw/dvengine/dmiw/active/config/DMIWUserEmailListApp.xml]; nested exception is java.io.FileNotFoundException: dmiw/dvengine/dmiw/active/config/DMIWUserEmailListApp.xml (A file or directory in the path name does not exist.)
at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.loadBeanDefinitions(XmlBeanDefinitionR eader.java:144)
at org.springframework.beans.factory.support.Abstract BeanDefinitionReader.loadBeanDefinitions(AbstractB eanDefinitionReader.java:83)
at org.springframework.context.support.AbstractXmlApp licationContext.loadBeanDefinitions(AbstractXmlApp licationContext.java:101)
at org.springframework.context.support.AbstractXmlApp licationContext.loadBeanDefinitions(AbstractXmlApp licationContext.java:69)
at org.springframework.context.support.AbstractRefres hableApplicationContext.refreshBeanFactory(Abstrac tRefreshableApplicationContext.java:87)
at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:262)
at org.springframework.context.support.FileSystemXmlA pplicationContext.<init>(FileSystemXmlApplicationC ontext.java:82)
at org.springframework.context.support.FileSystemXmlA pplicationContext.<init>(FileSystemXmlApplicationC ontext.java:67)
at org.springframework.context.support.FileSystemXmlA pplicationContext.<init>(FileSystemXmlApplicationC ontext.java:58)


Reply With Quote
