Hi Peter,
Toni is on holiday now and I will might have time only alter today. So,
sorry but you have to wait a bit ;)

On Mon, Jul 20, 2009 at 4:32 PM, <[email protected]> wrote:

> Hello All,
>
>  I have a problem running testcases with PaxExam.
>
>  I followed the "Quick Start" page
> (http://wiki.ops4j.org/display/paxexam/Quick+Start) and created a pom.xml
> based
> on that (defining pax version 1.0.0), and a very simple testcase (just
> writing
> "hello world" from the container). When I first ran it (mvn install), it
> was
> successful. But for the second and later runs it froze at "Wait for test
> container to finish its initialization without timing out".
>
>  I tried it on my colleague's machine and had the same problem.
>
>  I rebooted my machine and got the same error. It seems that I can run the
> testcase only once a day...
>
>  I zipped up my Maven based "test project" and attached to this email.
>
>  Could you please have a look or try it out in your own environment?
>
>  Thank you, Peter
>
> PS: I tried to run PaxExam without Maven, and it worked for the simple
> "hello
> world" testcase and for the bundle listing testcase as well (Tutorial 1
> Session
> 2). Here is my output:
>
> C:\Documents and Settings\u178574\My Documents\PAXRUNNER\nomaven>java -cp
>
> jars/log4j-1.2.14.jar;jars/junit-4.6.jar;jars/pax-exam-junit-1.0.0.jar;jars/pax-exam-1.0.0.jar;jars/pax-runner-no-jc
>
> l-1.0.0.jar;jars/commons-logging-1.1.1.jar;jars/pax-exam-runtime-1.0.0.jar;jars/pax-exam-spi-1.0.0.jar;jars/commons-discovery-0.4.jar;jars/org.apache.felix.main_1.8.1.jar;jars/pax-exam-conta
>
> iner-default-1.0.0.jar;jars/pax-exam-container-rbc-client-1.0.0.jar;jars/pax-exam-container-rbc-1.0.0.jar;jars/pax-exam-junit-extender-1.0.0.jar;.
> org.junit.runner.JUnitCore pack.MyJUnitTest
>  pack.MyJUnitTest2
> JUnit version 4.6
> .    ______  ________  __  __
>   / __  / /  __   / / / / /
>  /  ___/ /  __   / _\ \ _/
>  /  /    /  / /  / / _\ \
> /__/    /__/ /__/ /_/ /_/
>
> Pax Exam 1.0.0 from OPS4J - http://www.ops4j.org
> ------------------------------------------------
>
> [              JUnit4TestMethod] - Starting test testMethod
> [equinox](pack.MyJUnitTest)
> [        PaxRunnerTestContainer] - Starting up the test container (Pax
> Runner
> 1.0.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/1....@1]
> [          ProvisionServiceImpl] - Scan bundles from
> [scan-bundle:mvn:org.ops4j.pax.exam/pax-exam-junit-extender/1....@1]
> [          ProvisionServiceImpl] - Scan bundles from
> [scan-bundle:mvn:org.ops4j.pax.exam/pax-exam-junit-extender-impl/1....@1]
> [          ProvisionServiceImpl] - Scan bundles from
> [scan-bundle:mvn:org.ops4j.pax.url/pax-url-dir/1....@1]
> [          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/1....@1]
> [                           Run] - Provision bundle
> [mvn:org.ops4j.pax.exam/pax-exam/1.0.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/1.0.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/1.0.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/1.0.0, at start level 1, 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/1.0.0, at start level 1,
> bundle
> will be started, bundle will be loaded from the cache]
> [                  PlatformImpl] - Preparing framework [Equinox 3.4.2]
> [                  PlatformImpl] - Downloading bundles...
> [          ExecutionEnvironment] - Using execution environment [J2SE-1.6]
> [             DefaultJavaRunner] - Runner has successfully finished his
> job!
>
> [        PaxRunnerTestContainer] - Test container (Pax Runner 1.0.0)
> started in
> 250 millis
> [        PaxRunnerTestContainer] - Wait for test container to finish its
> initialization without timing out
> [     RemoteBundleContextClient] - Remote bundle context found after 1687
> millis
> [              JUnit4TestMethod] - Starting test testMethod
> [equinox](pack.MyJUnitTest)
> This is the test method!
> [              JUnit4TestMethod] - Test testMethod
> [equinox](pack.MyJUnitTest)
> ended succesfully
> [        PaxRunnerTestContainer] - Shutting down the test container (Pax
> Runner)
>
>
> [             DefaultJavaRunner] - Platform has been shutdown.
> .    ______  ________  __  __
>   / __  / /  __   / / / / /
>  /  ___/ /  __   / _\ \ _/
>  /  /    /  / /  / / _\ \
> /__/    /__/ /__/ /_/ /_/
>
> Pax Exam 1.0.0 from OPS4J - http://www.ops4j.org
> ------------------------------------------------
>
> [              JUnit4TestMethod] - Starting test
> helloFromEquinox(pack.MyJUnitTest2)
> [        PaxRunnerTestContainer] - Starting up the test container (Pax
> Runner
> 1.0.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/1....@1]
> [          ProvisionServiceImpl] - Scan bundles from
> [scan-bundle:mvn:org.ops4j.pax.exam/pax-exam-junit-extender/1....@1]
> [          ProvisionServiceImpl] - Scan bundles from
> [scan-bundle:mvn:org.ops4j.pax.exam/pax-exam-junit-extender-impl/1....@1]
> [          ProvisionServiceImpl] - Scan bundles from
> [scan-bundle:mvn:org.ops4j.pax.url/pax-url-dir/1....@1]
> [          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/1....@1]
> [                           Run] - Provision bundle
> [mvn:org.ops4j.pax.exam/pax-exam/1.0.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/1.0.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/1.0.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/1.0.0, at start level 1, 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/1.0.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...
> [          ExecutionEnvironment] - Using execution environment [J2SE-1.6]
> [             DefaultJavaRunner] - Runner has successfully finished his
> job!
>
> [        PaxRunnerTestContainer] - Test container (Pax Runner 1.0.0)
> started in
> 94 millis
> [        PaxRunnerTestContainer] - Wait for test container to finish its
> initialization without timing out
>
> Welcome to Felix.
> =================
>
> [     RemoteBundleContextClient] - Remote bundle context found after 3000
> millis
> [              JUnit4TestMethod] - Starting test
> helloFromEquinox(pack.MyJUnitTest2)
> Bundle 0 : org.apache.felix.framework
> Bundle 1 : osgi.compendium
> [              JUnit4TestMethod] - Test helloFromEquinox(pack.MyJUnitTest2)
> ended succesfully
> [        PaxRunnerTestContainer] - Shutting down the test container (Pax
> Runner)
> Bundle 2 : org.ops4j.pax.exam
> Bundle 3 : org.ops4j.pax.exam.junit.extender
> Bundle 4 : org.ops4j.pax.exam.junit.extender.impl
> Bundle 5 : org.ops4j.pax.url.dir
> Bundle 6 : com.springsource.org.junit
> Bundle 7 : org.ops4j.pax.exam.rbc
> Bundle 8 : pax-exam-probe
>
>
> [             DefaultJavaRunner] - Platform has been shutdown.
>
> Time: 16,45
>
> OK (2 tests)
>
>
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
>
> _______________________________________________
> general mailing list
> [email protected]
> http://lists.ops4j.org/mailman/listinfo/general
>
>


-- 
Alin Dreghiciu
Software Developer - Looking for new projects!
My profile: http://www.linkedin.com/in/alindreghiciu
My blog: http://adreghiciu.blogspot.com
http://www.ops4j.org - New Energy for OSS Communities - Open Participation
Software.
http://www.qi4j.org - New Energy for Java - Domain Driven Development.
_______________________________________________
general mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/general

Reply via email to