Results 1 to 4 of 4

Thread: spring-osgi-test 1.2.0 & log4j.osgi-1.2.15-SNAPSHOT

  1. #1
    Join Date
    Feb 2008
    Posts
    25

    Question spring-osgi-test 1.2.0 & log4j.osgi-1.2.15-SNAPSHOT

    I'm trying to use spring-osgi-test v 1.2.0 and I'm unable to find the log4j.osgi-1.2.15-SNAPSHOT dependency.

    I tried searching for it at http://www.springsource.com/repository/ and can't find it. I've also added http://maven.springframework.org/snapshot as a repository and it's still unresolved

    Code:
    <dependency>
    	<groupId>org.springframework.osgi</groupId>
    	<artifactId>log4j.osgi</artifactId>
    	<version>1.2.15-SNAPSHOT</version>
    	<scope>test</scope>
    </dependency>
    both Equinox and Felix start successfully but fail with

    Code:
    DEBUG LTestOsgi            - Installing bundle from location file [/home/.m2/repository/org/springframework/osgi/log4j.osgi/1.2.15-SNAPSHOT/log4j.osgi-1.2.15-SNAPSHOT.jar]
    DEBUG LTestOsgi            - Caught exception starting up
    java.io.FileNotFoundException: /home/.m2/repository/org/springframework/osgi/log4j.osgi/1.2.15-SNAPSHOT/log4j.osgi-1.2.15-SNAPSHOT.jar (No such file or directory)
    	at java.io.FileInputStream.open(Native Method)
    	at java.io.FileInputStream.<init>(FileInputStream.java:106)
    	at org.springframework.core.io.FileSystemResource.getInputStream(FileSystemResource.java:108)
    	at org.springframework.osgi.test.AbstractOsgiTests.installBundle(AbstractOsgiTests.java:323)
    	at org.springframework.osgi.test.AbstractOsgiTests.startup(AbstractOsgiTests.java:253)
    	at org.springframework.osgi.test.AbstractOsgiTests.prepareTestExecution(AbstractOsgiTests.java:374)
    	at org.springframework.osgi.test.AbstractOsgiTests.runBare(AbstractOsgiTests.java:203)
    	at org.springframework.osgi.test.AbstractOsgiTests$1.protect(AbstractOsgiTests.java:184)
    	at junit.framework.TestResult.runProtected(TestResult.java:128)
    	at org.springframework.osgi.test.AbstractOsgiTests.run(AbstractOsgiTests.java:181)
    	at junit.framework.TestSuite.runTest(TestSuite.java:232)
    	at junit.framework.TestSuite.run(TestSuite.java:227)
    	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
    	at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
    	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
    	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
    	at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
    	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.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
    	at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
    I noticed the boot bundles comes from

    Code:
    /org/springframework/osgi/test/internal/boot-bundles.properties
    short of changing this properties file, what happened to the SNAPSHOT?

    Thanks

  2. #2
    Join Date
    Dec 2005
    Location
    Lyon, France
    Posts
    311

    Default

    I think this library is in Spring DM repository. If you don't want to rely on a snapshot you can either migrate to Spring DM 2.0.0.M1 (which uses a stable OSGi version of log4j, hosted on SpringSource's EBR) or override the getTestFrameworkBundlesNames method in your integration test (to choose the exact bundle you want to use).

  3. #3
    Join Date
    Feb 2008
    Posts
    25

    Thumbs up

    Thanks a lot for your help. I was looking for a method where you could override, just couldn't figure it out -- I will try getTestFrameworkBundlesNames.

    I must not have caught that URL in the documentation, I will try to find the artifact there - thanks!.

    I get confused sometimes between all the maven repositories and what artifacts live where


    Let alone, they are all S3 services and s3browse.com is dead (R.I.P!). Does anyone know of any equivalent s3browse.com or something I can use to browse these S3 repositories?

  4. #4
    Join Date
    Jan 2005
    Location
    Bucharest, Romania
    Posts
    5,403

    Default

    Hi Bob, just to add some context to why the repository is still used by the 1.2.x branch. Some of the libraries were compiled for 1.3/1.4 and since 1.2.x is compiled for 1.4, we needed the proper JDK imports in those libraries. EBR assumes a JDK 1.5 environment and thus several imports are missing since those packages are already provided by the JDK.
    With 2.x, we raised the JDK requirement to 1.5 and thus eliminated this problem.

    Unfortunately, I'm looking myself for an alternative to s3browse.com. Fortunately for me, I'm not using the browsing function that much nowadays so it's not a dire need. If you find a good alternative, please point it out.

    Cheers,
    Costin Leau
    SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
    http://twitter.com/costinl
    Please use [ c o d e ] [ / c o d e ] tags

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •