If you expand "Libraries" in your Project pane, are there different versions of Spring listed?
Thanks, Matt On Fri, May 16, 2008 at 5:39 AM, kace <[EMAIL PROTECTED]> wrote: > > Hi, > > I checked out the code for appfuse and used it to structure my appfuse > projects in the same way instead of working off the modular projects I used > to before. I use IDEA 7 and if I click test, using the native maven support, > all the tests pass for all the modules and I get a build successful message > in the maven build output. If I go into the hibernate module and right > click on an individual test and run that test it works. However, when I go > into the service module or into the web/webapp/action and try to > individually run a test it gives me the following error. > > I was hoping maybe you had come across this before and would know how I can > adjust it so that the individual tests can be run under IDEA. It works fine > for the hibernate or jpa modules I have but not for service or webapp. > Currently only 2.0.2 code is in this setup – still to integrate my project > but want to get this sorted before I do. > > Might be useful – I created the archetype jsf modular project and then used > the necessary bits to create the same structure you have for appfuse in SVN. > > Thanks. > > ..kace > > INFO - AbstractSingleSpringContextTests.loadContextLocations(210) | Loading > context for locations: > /applicationContext-resources.xml,classpath:/applicationContext-dao.xml,/applicationContext-service.xml,classpath*:/**/applicationContext.xml > > > > org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected > exception parsing XML document from class path resource > [applicationContext-service.xml]; nested exception is > java.lang.NoSuchMethodError: > org.springframework.aop.config.AopNamespaceUtils.registerAutoProxyCreatorIfNecessary(Lorg/springframework/beans/factory/xml/ParserContext;Lorg/w3c/dom/Element;)V > > at > org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:420) > > at > org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:342) > > at > org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310) > > at > org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143) > > at > org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178) > > at > org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149) > > at > org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:212) > > at > org.springframework.test.AbstractSingleSpringContextTests.createApplicationContext(AbstractSingleSpringContextTests.java:242) > > at > org.springframework.test.AbstractSingleSpringContextTests.loadContextLocations(AbstractSingleSpringContextTests.java:212) > > at > org.springframework.test.AbstractSingleSpringContextTests.loadContext(AbstractSingleSpringContextTests.java:187) > > at > org.springframework.test.AbstractSpringContextTests.getContext(AbstractSpringContextTests.java:140) > > at > org.springframework.test.AbstractSingleSpringContextTests.setUp(AbstractSingleSpringContextTests.java:100) > > at > org.springframework.test.ConditionalTestCase.runBare(ConditionalTestCase.java:76) > > at > com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:40) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > > at > com.intellij.rt.execution.application.AppMain.main(AppMain.java:90) > > Caused by: java.lang.NoSuchMethodError: > org.springframework.aop.config.AopNamespaceUtils.registerAutoProxyCreatorIfNecessary(Lorg/springframework/beans/factory/xml/ParserContext;Lorg/w3c/dom/Element;)V > > at > org.springframework.transaction.config.AnnotationDrivenBeanDefinitionParser$AopAutoProxyConfigurer.configureAutoProxyCreator(AnnotationDrivenBeanDefinitionParser.java:108) > > at > org.springframework.transaction.config.AnnotationDrivenBeanDefinitionParser.parse(AnnotationDrivenBeanDefinitionParser.java:79) > > at > org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse(NamespaceHandlerSupport.java:69) > > at > org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1253) > > at > org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1243) > > at > org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:135) > > at > org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:92) > > at > org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:507) > > at > org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:398) > > ... 28 more > > -- > View this message in context: > http://www.nabble.com/running-tests-under-IDEA-tp17272760s2369p17272760.html > Sent from the AppFuse - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
