This happens even though i have the file in my web/WEN-INF folder. On Nov 19, 2007 5:43 PM, Richard Nduka <[EMAIL PROTECTED]> wrote: > Hi, > > Thanks a lot for your mail. I replaced the spring jar file i had with > an older version 1.x actually and the issue disappeared. Now i get the > error below: > > [junit] Testcase: > testGetUsers(com.softforce.schoolnet.controller.UserControllerTest): Caused > an ERROR > [junit] IOException parsing XML document from ServletContext > resource [/WEB-INF/applicationContext.xml]; nested exception is > java.io.FileNotFoundException: Could not open ServletContext resource > [/WEB-INF/applicationContext.xml] > [junit] org.springframework.beans.factory.BeanDefinitionStoreException: > IOException parsing XML document from ServletContext resource > [/WEB-INF/applicationContext.xml]; nested exception is > java.io.FileNotFoundException: Could not open ServletContext resource > [/WEB-INF/applicationContext.xml] > [junit] java.io.FileNotFoundException: Could not open > ServletContext resource [/WEB-INF/applicationContext.xml] > [junit] at > org.springframework.web.context.support.ServletContextResource.getInputStream(ServletContextResource.java:92) > [junit] at > org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:144) > [junit] at > org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:99) > [junit] at > org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:114) > [junit] at > org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:82) > [junit] at > org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:87) > [junit] at > org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:262) > [junit] at > org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:131) > [junit] at > com.softforce.schoolnet.controller.BaseControllerTestCase.setUp(BaseControllerTestCase.java:25) > [junit] at > com.softforce.schoolnet.controller.UserControllerTest.setUp(UserControllerTest.java:15) > [junit] Test com.softforce.schoolnet.controller.UserControllerTest FAILED > > What could be the cause. > > Thanks. > > > On Nov 19, 2007 4:34 PM, Michael Horwitz <[EMAIL PROTECTED]> wrote: > > Which release in particular? > > > > > > > > Mike. > > > > On 11/19/07, Richard Nduka <[EMAIL PROTECTED]> wrote: > > > It seems like i am using version 2 of Spring. > > > > > > On Nov 19, 2007 4:28 PM, Michael Horwitz < [EMAIL PROTECTED]> wrote: > > > > It looks like your Spring dependency may be of the wrong version. Which > > > > version of Spring are you using? > > > > > > > > Mike. > > > > > > > > > > > > On 11/19/07, Richard Nduka < [EMAIL PROTECTED]> wrote: > > > > > > > > > > > > > > > > > > > > Hi, > > > > > > > > > > I was just trying to read through Spring Live and follow along with > > > > > the practice examples and on running the UserControllerTest in chapter > > > > > 4 i get the error below: > > > > > > > > > > [junit] Testcase: > > > > > testGetUsers(com.softforce.schoolnet.controller.UserControllerTest ): > > > > Caused > > > > > an ERROR > > > > > [junit] > > org.springframework.util.ReflectionUtils.isPublicStaticFinal > > > > (Ljava/lang/reflect/Field;)Z > > > > > [junit] java.lang.NoSuchMethodError: > > > > > > > > > > > org.springframework.util.ReflectionUtils.isPublicStaticFinal(Ljava/lang/reflect/Field;)Z > > > > > [junit] at org.springframework.core.Constants.<init>( > > > > Constants.java:68) > > > > > [junit] at > > > > > > org.springframework.beans.factory.xml.XmlBeanDefinitionReader.<clinit>(XmlBeanDefinitionReader.java:95) > > > > > [junit] at > > > > > > org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions > > > > (XmlWebApplicationContext.java:81) > > > > > [junit] at > > > > > > org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:94) > > > > > [junit] at > > > > org.springframework.context.support.AbstractApplicationContext.refresh > > > > (AbstractApplicationContext.java:294) > > > > > [junit] at > > > > > > org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh > > (AbstractRefreshableWebApplicationContext.java:156) > > > > > [junit] at > > > > com.softforce.schoolnet.controller.BaseControllerTestCase.setUp > > > > (BaseControllerTestCase.java:25) > > > > > [junit] at > > > > > > com.softforce.schoolnet.controller.UserControllerTest.setUp(UserControllerTest.java:15) > > > > > > > > > > Please has anyone encountered this error before as i have spent quite > > > > > some considerable time trying to resolve it. > > > > > > > > > > Thanks in advance. > > > > > > > > > > --------------------------------------------------------------------- > > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > >
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
