Announcement Announcement Module
Collapse
No announcement yet.
Using Spring Data Graph in real Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Using Spring Data Graph in real

    Could anyone please tell me what are the exact versions of Eclipse, Maven, Spring, Spring Data Graph, AspectJ, AJDT and other components that I should put together to make SDG work fine in both Eclipse and Maven? (By "working fine in Eclipse", I mean eliminating all these AspectJ-related errors).

    It doesn't seem to be possible to configure my current environment work with it (already spent 2 days), so, I'm looking for a guidance on building the new environment that just works.

  • #2
    Hi, same problems here.
    I'm evaluating SDG for a new project but i cannot even make it work with STS 2.7.2 (with or without maven). Yet the documentation states :

    The current version that does not show incorrect errors is AspectJ 1.6.12.M1 (included in STS 2.7.0.M2), previous versions are reported to mislead the user.
    Please answer this post !!!
    Thanks

    Comment


    • #3
      I've also posted the question to stackoverflow: http://stackoverflow.com/q/7144097/852604

      Comment


      • #4
        Also tried building the whole Spring Data Graph from sources:
        1. Tried opening separate projects in Eclipse: errors everywhere
        2. Tried building with Maven: mvn package - looks like everything is built fine, but lots of errors when running tests:

        Code:
        java.lang.IllegalStateException: Failed to load ApplicationContext
        	at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:308)
        	at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:109)
        	at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:75)
        	at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:321)
        	at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:220)
        	at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:301)
        	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
        	at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:303)
        	at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:240)
        	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
        	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
        	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
        	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
        	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
        	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
        	at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
        	at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
        	at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
        	at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:180)
        	at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:59)
        	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:120)
        	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:103)
        	at org.apache.maven.surefire.Surefire.run(Surefire.java:169)
        	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        	at java.lang.reflect.Method.invoke(Method.java:601)
        	at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)
        ......
        Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/data/neo4j/partial/Neo4jGraphRecommendationTest-context.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/hibernate/HibernateException
        	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1420)
        	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
        	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
        	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
        	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
        	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
        	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
        	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
        	... 87 more
        Caused by: java.lang.NoClassDefFoundError: org/hibernate/HibernateException
        	at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:72)
        	at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:225)
        	at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:308)
        	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1477)
        	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417)
        	... 94 more
        Caused by: java.lang.ClassNotFoundException: org.hibernate.HibernateException
        	at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
        	at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
        	at java.security.AccessController.doPrivileged(Native Method)
        	at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
        	at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
        	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
        	at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
        	... 99 more
        So, considering all these facts, for me it looks like SDG is not yet ready for even just playing and it's very far from being used in production.

        Comment


        • #5
          I am using

          STS 2.7.1.RELEASE
          Maven 2.2.1 (Version released/packaged with STS tools)

          AspectJ Development Tools - AspectJ Development Tools 2.1.3.e37x-20110628-1900 org.eclipse.ajdt.feature.group Eclipse AspectJ Development Tools

          AspectJ <aspectj.version>1.6.12.M2</aspectj.version>


          Other combos may work,but I have no compile errors in my spring neo4j data projects

          Happy Coding
          Mike

          Comment

          Working...
          X