Well for the time being, you can skip also those tests (if just waiting for test fixes) with -Dmaven.test.skip Just because you said you want to get up to speed with felix.. Toni
On Thu, Jul 8, 2010 at 4:08 AM, Jason Hanna <jason.m.hanna.at.coincid...@gmail.com> wrote: > Thanks Toni. Updating the PAX Exam versions to 1.2.0 in > <felix_home>/scr/pom.xml seems to address the hang, although now I'm > hitting several dozen pax exam test case failures within the scr > bundle. > > I started digging a little deeper, but I'm afraid I don't have enough > knowledge of OSGi, Apache Felix, and the SCR to be of much help yet. > Most of the failed tests in the surefire-reports directory seem to be > complaining of an unresolved constraint in the simplecomponent bundle. > For example: > > ------------------------------------------------------------------------------- > Test set: org.apache.felix.scr.integration.ComponentDisposeTest > ------------------------------------------------------------------------------- > Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 7.61 > sec <<< FAILURE! > test_SimpleComponent_factory_configuration(org.apache.felix.scr.integration.ComponentDisposeTest) > Time elapsed: 7.578 sec <<< ERROR! > org.osgi.framework.BundleException: Unresolved constraint in bundle > simplecomponent [10]: package; > (package=org.apache.felix.scr.integration.components) > at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3263) > at org.apache.felix.framework.Felix.startBundle(Felix.java:1597) > at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:915) > at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:902) > at > org.apache.felix.scr.integration.ComponentTestBase.setUp(ComponentTestBase.java:131) > 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.ops4j.pax.exam.junit.extender.impl.internal.CallableTestMethodImpl.runBefores(CallableTestMethodImpl.java:172) > at > org.ops4j.pax.exam.junit.extender.impl.internal.CallableTestMethodImpl.injectContextAndInvoke(CallableTestMethodImpl.java:124) > at > org.ops4j.pax.exam.junit.extender.impl.internal.CallableTestMethodImpl.call(CallableTestMethodImpl.java:101) > 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.ops4j.pax.exam.rbc.internal.RemoteBundleContextImpl.remoteCall(RemoteBundleContextImpl.java:80) > 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 sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305) > at sun.rmi.transport.Transport$1.run(Transport.java:159) > at java.security.AccessController.doPrivileged(Native Method) > at sun.rmi.transport.Transport.serviceCall(Transport.java:155) > at > sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535) > at > sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790) > at > sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649) > at > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) > at java.lang.Thread.run(Thread.java:619) > > Hopefully a developer from the project team can provide some > assistance. In the meantime I'll be trying to come up to speed on OSGi > and Felix fundamentals. > > Regards, > -jmh > > On Wed, Jul 7, 2010 at 8:01 AM, Toni Menzel <t...@okidokiteam.com> wrote: >> @ felix scr guys, upgrade pax exam to version 1.2.0 . >> >> On Mon, Jul 5, 2010 at 11:37 PM, Jason Hanna >> <jason.m.hanna.at.coincid...@gmail.com> wrote: >>> Hi All, >>> >>> First time trying to run, build, and use Apache Felix. I'm not off to >>> a good start out of the gate, however. Downloaded the most recent >>> files from trunk and following installation directions as documented. >>> I'm hanging after I execute "mvn -Dpackaging=bundle install". >>> >>> I've updated my version of Maven and JDK to be sure the issue wasn't >>> with my tools, but I'm still experiencing the same problem. >>> >>> Apache Maven 2.2.1 (r801777; 2009-08-06 15:16:01-0400) >>> Java version: 1.6.0_20 >>> Java home: C:\Program Files (x86)\Java\jdk1.6.0_20\jre >>> Default locale: en_US, platform encoding: Cp1252 >>> OS name: "windows xp" version: "5.2" arch: "x86" Family: "windows" >>> >>> I seem to be hanging after the >>> org.apache.felix.scr.integration.ComponentDisposeTest is run. Last few >>> lines of output look like this... >>> >>> ------------------------------------------------------- >>> T E S T S >>> ------------------------------------------------------- >>> Running org.apache.felix.scr.integration.ComponentDisposeTest >>> ______ ________ __ __ >>> / __ / / __ / / / / / >>> / ___/ / __ / _\ \ _/ >>> / / / / / / / _\ \ >>> /__/ /__/ /__/ /_/ /_/ >>> >>> Pax Exam 0.6.0 from OPS4J - http://www.ops4j.org >>> ------------------------------------------------ >>> >>> [ JUnit4TestMethod] - Starting test >>> test_SimpleComponent_factory_configuration(org.apache.felix.scr.integration.ComponentDisposeTest) >>> [ PaxRunnerTestContainer] - Starting up the test container (Pax >>> Runner 0.20.0 ) >>> [ ConfigurationImpl] - Using config >>> [classpath:META-INF/runner.properties] >>> [ Run] - Using only arguments from command line >>> [ ProvisionServiceImpl] - Scan bundles from >>> [scan-bundle:mvn:org.ops4j.pax.exam/pax-exam/0....@1] >>> [ ProvisionServiceImpl] - Scan bundles from >>> [scan-bundle:mvn:org.ops4j.pax.exam/pax-exam-junit-extender/0....@1] >>> [ ProvisionServiceImpl] - Scan bundles from >>> [scan-bundle:mvn:org.ops4j.pax.exam/pax-exam-junit-extender-impl/0....@1] >>> [ ProvisionServiceImpl] - Scan bundles from >>> [scan-bundle:mvn:org.ops4j.pax.url/pax-url-dir/0....@1] >>> [ ProvisionServiceImpl] - Scan bundles from >>> [scan-bundle:file:/C:/jhanna/workspace/felix/scr/target/org.apache.felix.scr-1.4.1-snapshot....@update] >>> [ ProvisionServiceImpl] - Scan bundles from >>> [scan-bundle:mvn:org.ops4j.pax.swissbox/pax-swissbox-tinybundles/1.0.0] >>> [ ProvisionServiceImpl] - Scan bundles from >>> [scan-bundle:mvn:org.apache.felix/org.apache.felix.configadmin/1.0.10] >>> [ ProvisionServiceImpl] - Scan bundles from >>> [scan-bundle:mvn:org.junit/com.springsource.org.junit/4....@1] >>> [ ProvisionServiceImpl] - Scan bundles from >>> [scan-bundle:mvn:org.ops4j.pax.exam/pax-exam-container-rbc/0....@1] >>> [ Run] - Provision bundle >>> [mvn:org.ops4j.pax.exam/pax-exam/0.6.0, at start level 1, bundle will >>> be started, bundle will be loaded from the cache] >>> [ Run] - Provision bundle >>> [mvn:org.ops4j.pax.exam/pax-exam-junit-extender/0.6.0, at start level >>> 1, bundle will be started, bundle will be loaded from the cache] >>> [ Run] - Provision bundle >>> [mvn:org.ops4j.pax.exam/pax-exam-junit-extender-impl/0.6.0, at start >>> level 1, bundle will be started, bundle will be loaded from the cache] >>> [ Run] - Provision bundle >>> [mvn:org.ops4j.pax.url/pax-url-dir/0.5.2, at start level 1, bundle >>> will be started, bundle will be loaded from the cache] >>> [ Run] - Provision bundle >>> [file:/C:/jhanna/workspace/felix/scr/target/org.apache.felix.scr-1.4.1-SNAPSHOT.jar, >>> at default start level, bundle will be started, bundle will be >>> re-downloaded] >>> [ Run] - Provision bundle >>> [mvn:org.ops4j.pax.swissbox/pax-swissbox-tinybundles/1.0.0, at default >>> start level, bundle will be started, bundle will be loaded from the >>> cache] >>> [ Run] - Provision bundle >>> [mvn:org.apache.felix/org.apache.felix.configadmin/1.0.10, at default >>> start level, bundle will be started, bundle will be loaded from the >>> cache] >>> [ Run] - Provision bundle >>> [mvn:org.junit/com.springsource.org.junit/4.4.0, at start level 1, >>> bundle will be started, bundle will be loaded from the cache] >>> [ Run] - Provision bundle >>> [mvn:org.ops4j.pax.exam/pax-exam-container-rbc/0.6.0, at start level >>> 1, bundle will be started, bundle will be loaded from the cache] >>> [ PlatformImpl] - Preparing framework [Felix 1.8.0] >>> [ PlatformImpl] - Downloading bundles... >>> [ StreamUtils] - >>> file:/C:/jhanna/workspace/felix/scr/target/org.apache.felix.scr-1.4.1-SNAPSHOT.jar >>> : downloading... >>> [ StreamUtils] - >>> file:/C:/jhanna/workspace/felix/scr/target/org.apache.felix.scr-1.4.1-SNAPSHOT.jar >>> : 188339 bytes @ [ 6075kBps ] >>> [ ExecutionEnvironment] - Using execution environment [J2SE-1.6] >>> [ DefaultJavaRunner] - Runner has successfully finished his job! >>> >>> [ PaxRunnerTestContainer] - Test container (Pax Runner 0.20.0) >>> started in 407 millis >>> [ PaxRunnerTestContainer] - Wait for test container to finish >>> its initialization without timing out >>> >>> Welcome to Felix. >>> ================= >>> >>> Maven hangs and this point and never returns. Searched the archives >>> and found a similar thread that doesn't seem to have been resolved. >>> Suggestions? >>> >>> http://www.mail-archive.com/users@felix.apache.org/msg06409.html >>> >>> Thanks! >>> -jmh >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: users-unsubscr...@felix.apache.org >>> For additional commands, e-mail: users-h...@felix.apache.org >>> >>> >> >> >> >> -- >> Toni Menzel >> Independent Software Developer >> Professional Profile: http://okidokiteam.com >> t...@okidokiteam.com >> http://www.ops4j.org - New Energy for OSS Communities - Open >> Participation Software. >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@felix.apache.org >> For additional commands, e-mail: users-h...@felix.apache.org >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@felix.apache.org > For additional commands, e-mail: users-h...@felix.apache.org > > -- Toni Menzel Independent Software Developer Professional Profile: http://okidokiteam.com t...@okidokiteam.com http://www.ops4j.org - New Energy for OSS Communities - Open Participation Software. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@felix.apache.org For additional commands, e-mail: users-h...@felix.apache.org