[
https://issues.apache.org/jira/browse/IGNITE-6879?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16465896#comment-16465896
]
Dmitriy Pavlov commented on IGNITE-6879:
----------------------------------------
Hi [~homich], I've checked changes and it looks good to me, but I've faced with
tests failures for old spring data version
{noformat}
java.lang.NoClassDefFoundError:
org/springframework/beans/factory/config/BeanDefinitionCustomizer
at
org.springframework.context.annotation.AnnotatedBeanDefinitionReader.registerBean(AnnotatedBeanDefinitionReader.java:145)
at
org.springframework.context.annotation.AnnotatedBeanDefinitionReader.register(AnnotatedBeanDefinitionReader.java:135)
at
org.springframework.context.annotation.AnnotationConfigApplicationContext.register(AnnotationConfigApplicationContext.java:158)
at
org.apache.ignite.springdata.IgniteSpringDataCrudSelfTest.beforeTestsStarted(IgniteSpringDataCrudSelfTest.java:49)
at
org.apache.ignite.testframework.junits.GridAbstractTest.setUp(GridAbstractTest.java:611)
at
org.apache.ignite.testframework.junits.common.GridCommonAbstractTest.setUp(GridCommonAbstractTest.java:490)
at junit.framework.TestCase.runBare(TestCase.java:139)
at junit.framework.TestResult$1.protect(TestResult.java:122)
at junit.framework.TestResult.runProtected(TestResult.java:142)
at junit.framework.TestResult.run(TestResult.java:125)
at junit.framework.TestCase.run(TestCase.java:129)
at junit.framework.TestSuite.runTest(TestSuite.java:255)
at junit.framework.TestSuite.run(TestSuite.java:250)
at junit.framework.TestSuite.runTest(TestSuite.java:255)
at junit.framework.TestSuite.run(TestSuite.java:250)
at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84)
at org.junit.runner.JUnitCore.run(JUnitCore.java:160)
at
com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
at
com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)
at
com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)
Caused by: java.lang.ClassNotFoundException:
org.springframework.beans.factory.config.BeanDefinitionCustomizer
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 21 more{noformat}
Can it be solved? My guess it can be done with some modules dependencies
separation, e.g.
spring43.version for old module.
spring.version
could you please address?
> Support Spring 2.0
> ------------------
>
> Key: IGNITE-6879
> URL: https://issues.apache.org/jira/browse/IGNITE-6879
> Project: Ignite
> Issue Type: Improvement
> Components: spring
> Affects Versions: 2.3
> Reporter: Alexey Kukushkin
> Assignee: Roman Meerson
> Priority: Major
>
> Ignite-spring and ignite-spring-data now use Spring 1.1 and cannot be rebuilt
> with Spring 2.0. Trying to change the Spring dependency version to
> 2.0.0.release results in compile errors like below and requires regression in
> general.
> This improvement was created to either migrate from Spring 1.1 to 2.0 or
> create another set of modules ignite-spring-xxx-2 to have backward
> compatibility with Spring 1.1.
> [ERROR]
> /Users/kukushal/Dev/incubator-ignite/modules/spring-data/src/main/java/org/apache/ignite/springdata/repository/IgniteRepository.java:[57,10]
> name clash: deleteAll(java.lang.Iterable<ID>) in
> org.apache.ignite.springdata.repository.IgniteRepository and
> deleteAll(java.lang.Iterable<? extends T>) in
> org.springframework.data.repository.CrudRepository have the same erasure, yet
> neither overrides the other
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)