ractive/neo4j-osgi — comment on commit 57461ae4b338e05f5d18c75d60731b4691eb7361
File:  line 0
By tonit:

hey there!

i have a only a few minutes today :(
For me, the branch sdn-compatibility does not even build:
[ERROR] Failed to execute goal
org.codehaus.mojo:aspectj-maven-plugin:1.2:compile (default) on project
sdn-test-bundle: The artifact org.springframework:spring-aspects referenced
in aspectj plugin as an aspect library, is not found the project
dependencies -> [Help 1]

I am not a spring aspect expert, but something like

org.springframework
spring-aspects
3.1.0.RELEASE

seems missing.

However, can one of you verify that the build breaks (using Maven 3 i
expect) ?
You can find me on tonit.com@gmail.com (GChat) or tonitcom via Skype.

On Tue, Jan 3, 2012 at 10:42 PM, Peter Neubauer <
reply@reply.github.com
> wrote:

> Mmh,
> firstly, I get the missing artifact, could you please add the junisphere
> repo?
>
> java.lang.RuntimeException:
> org.ops4j.pax.runner.platform.PlatformException:
> [wrap:mvn:org.apache.commons/net.junisphere.commons-jxpath/1.3] could
> not be downloaded
> at org.ops4j.pax.runner.Run.startPlatform(Run.java:668)
> at org.ops4j.pax.runner.Run.start(Run.java:207)
> at org.ops4j.pax.runner.Run.start(Run.java:163)
> at
> org.ops4j.pax.exam.container.def.internal.PaxRunnerTestContainer.start(PaxRunnerTestContainer.java:115)
> at
> org.ops4j.pax.exam.spi.reactors.EagerSingleStagedReactor.(EagerSingleStagedReactor.java:55)
> at
> org.ops4j.pax.exam.spi.reactors.EagerSingleStagedReactorFactory.create(EagerSingleStagedReactorFactory.java:34)
> at
> org.ops4j.pax.exam.spi.DefaultExamReactor.stage(DefaultExamReactor.java:83)
> at org.ops4j.pax.exam.player.Player.play(Player.java:108)
> at org.ops4j.pax.exam.player.Player.play(Player.java:99)
> at org.neo4j.examples.osgi.OSGiTest.test(OSGiTest.java:148)
> at org.neo4j.examples.osgi.OSGiTest.bundleSdnTest(OSGiTest.java:139)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
> at
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
> at
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
> at
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
> at
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
> at
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
> at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
> at
> org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
> at
> org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
> Caused by: org.ops4j.pax.runner.platform.PlatformException:
> [wrap:mvn:org.apache.commons/net.junisphere.commons-jxpath/1.3] could
> not be downloaded
> at
> org.ops4j.pax.runner.platform.internal.PlatformImpl.download(PlatformImpl.java:592)
> at
> org.ops4j.pax.runner.platform.internal.PlatformImpl.downloadBundles(PlatformImpl.java:353)
> at
> org.ops4j.pax.runner.platform.internal.PlatformImpl.start(PlatformImpl.java:161)
> at org.ops4j.pax.runner.Run.startPlatform(Run.java:664)
> ... 33 more
> Caused by: java.io.IOException: Aether Error.
> at
> org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:234)
> at
> org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:221)
> at
> org.ops4j.pax.url.mvn.internal.Connection.getInputStream(Connection.java:120)
> at org.ops4j.net.URLUtils.prepareInputStream(URLUtils.java:134)
> at
> org.ops4j.pax.url.wrap.internal.Connection.getInputStream(Connection.java:83)
> at java.net.URL.openStream(URL.java:1010)
> at
> org.ops4j.pax.runner.platform.internal.StreamUtils.streamCopy(StreamUtils.java:105)
> at
> org.ops4j.pax.runner.platform.internal.PlatformImpl.download(PlatformImpl.java:578)
> ... 36 more
> Caused by: org.sonatype.aether.resolution.ArtifactResolutionException:
> Could not find artifact
> org.apache.commons:net.junisphere.commons-jxpath:jar:1.3 in local
> (file:/Users/peterneubauer/.m2/repository/)
> at
> org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:541)
> at
> org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:220)
> at
> org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:197)
> at
> org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:323)
> at
> org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:232)
> ... 43 more
> Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException:
> Could not find artifact
> org.apache.commons:net.junisphere.commons-jxpath:jar:1.3 in local
> (file:/Users/peterneubauer/.m2/repository/)
> at
> org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:945)
> at
> org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:940)
> at
> org.sonatype.aether.connector.wagon.WagonRepositoryConnector$GetTask.flush(WagonRepositoryConnector.java:695)
> at
> org.sonatype.aether.connector.wagon.WagonRepositoryConnector$GetTask.flush(WagonRepositoryConnector.java:689)
> at
> org.sonatype.aether.connector.wagon.WagonRepositoryConnector.get(WagonRepositoryConnector.java:445)
> at
> org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:460)
> ... 47 more
>
>
> On Tue, Jan 3, 2012 at 8:44 PM, Jean-Pierre Bergamin
>
> wrote:
> > I just pushed the new version 2fdb180be0fb08bf57e8f89a454b73a36c404107
> that enables the SDN test. It was just `@Ignore`d in the junit tests.
> >
> > Now the error i described pops up:
> >
> > ```
> > Caused by: java.lang.ClassNotFoundException:
> org.springframework.transaction.aspectj.AnnotationTransactionAspect
> > at
> org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:506)
> > ....
> > ```
> >
> > and then
> >
> > ```
> > Caused by: java.lang.ClassNotFoundException:
> org.springframework.data.neo4j.aspects.config.Neo4jAspectConfiguration
> > at
> org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:506)
> > ...
> > ```
> > It seems as if the spring-aspects bundle does not get started where the
> AnnotationTransactionAspect class would be available. I have no clue why
> this bundle does not get loaded. Any ideas?
> >
> > ---
> > Reply to this email directly or view it on GitHub:
> >
> https://github.com/ractive/neo4j-osgi/commit/57461ae4b338e05f5d18c75d60731b4691eb7361#commitcomment-834613
>
> ---
> Reply to this email directly or view it on GitHub:
>
> https://github.com/ractive/neo4j-osgi/commit/57461ae4b338e05f5d18c75d60731b4691eb7361#commitcomment-834968
>

--
Toni Menzel Source