[ https://issues.apache.org/jira/browse/AXIS2-3604?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12578311#action_12578311 ]
robert lazarski commented on AXIS2-3604: ---------------------------------------- Is anyone else seeing this? I can't reproduce the error. At a glance, ReflectionUtils.makeAccessible(Field field) in spring has been long stable, yet somehow you are calling ReflectionUtils.makeAccessible(Ljava/lang/reflect/Constructor;) . I'm also suprised to see all the org.springframework.beans.factory.xml.XmlBeanDefinitionReader classes being loaded - I have no idea why that would be needed. I had other problems building with jdk 6 / maven 2.0.8 and reverted to jdk 5 / maven 2.0.7 , You say you are running IBM jdk 6 . Playing option bingo may help - maven 2.0.7 and sun jdk 5 did the trick for me after a series of strange errors. > Spring test fails > ----------------- > > Key: AXIS2-3604 > URL: https://issues.apache.org/jira/browse/AXIS2-3604 > Project: Axis 2.0 (Axis2) > Issue Type: Bug > Affects Versions: 1.4 > Environment: IBM JDK 1.6 > Reporter: Brian DePradine > Fix For: 1.4 > > > I keep getting the following error when I run the integration tests: > ------------------------------------------------------------------------------- > Test set: org.apache.axis2.spring.SpringServiceTest > ------------------------------------------------------------------------------- > Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 6.25 sec <<< > FAILURE! > testSpringAppContextAwareObjectSupplier(org.apache.axis2.spring.SpringServiceTest) > Time elapsed: 3.609 sec <<< ERROR! > org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected > exception parsing XML document from class path resource > [spring/applicationContext.xml]; nested exception is > java.lang.NoSuchMethodError: > org/springframework/util/ReflectionUtils.makeAccessible(Ljava/lang/reflect/Constructor;)V > Caused by: java.lang.NoSuchMethodError: > org/springframework/util/ReflectionUtils.makeAccessible(Ljava/lang/reflect/Constructor;)V > at > org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:82) > at > org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:61) > at > org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createBeanDefinitionDocumentReader(XmlBeanDefinitionReader.java:499) > at > org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:486) > at > org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:383) > at > org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:327) > at > org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:295) > 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.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:112) > at > org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:79) > at > org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:101) > at > org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:389) > at > org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:324) > at > org.apache.axis2.spring.SpringServiceTest.createSpringAppCtx(SpringServiceTest.java:184) > at > org.apache.axis2.spring.SpringServiceTest.setUp(SpringServiceTest.java:82) > at junit.framework.TestCase.runBare(TestCase.java:132) > at junit.framework.TestResult$1.protect(TestResult.java:110) > at junit.framework.TestResult.runProtected(TestResult.java:128) > at junit.framework.TestResult.run(TestResult.java:113) > at junit.framework.TestCase.run(TestCase.java:124) > at junit.framework.TestSuite.runTest(TestSuite.java:232) > at junit.framework.TestSuite.run(TestSuite.java:227) > at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24) > at junit.extensions.TestSetup$1.protect(TestSetup.java:23) > at junit.framework.TestResult.runProtected(TestResult.java:128) > at junit.extensions.TestSetup.run(TestSetup.java:27) > at > org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81) > at > org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62) > at > org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138) > at > org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:163) > at org.apache.maven.surefire.Surefire.run(Surefire.java:84) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:45) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:599) > at > org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:244) > at > org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:814) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]