Thanks for replies. Problem now solved. Another case of "as soon as you ask for
help the solution presents itself".
I used pax-exam 0.5.0 to get around the connection error. POM below:
<dependency>
<groupId>org.ops4j.pax.exam</groupId>
<artifactId>pax-exam</artifactId>
<version>0.5.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.ops4j.pax.exam</groupId>
<artifactId>pax-exam-container-default</artifactId>
<version>0.5.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.ops4j.pax.exam</groupId>
<artifactId>pax-exam-junit</artifactId>
<version>0.5.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.ops4j.pax.exam</groupId>
<artifactId>pax-exam-junit-extender-impl</artifactId>
<version>0.5.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.ops4j.pax.url</groupId>
<artifactId>pax-url-dir</artifactId>
<version>0.5.0</version>
<scope>test</scope>
</dependency>
</dependencies>
Before exploring code changes I reran mvn install prior to mvn test and the
tests passed so perhaps the install made a necessary update ?!
Thanks again for contributions.
FYI only - output below:
[RMI TCP Connection(1)-127.0.1.1] DEBUG
org.compass.core.transaction.LocalTransaction - Committing local transaction on
thread [RMI TCP Connection(1)-127.0.1.1] Compass [28062585] Session [27754609]
[ JUnit4TestMethod] - Test shouldIndexAndFindAJarFileObject
[equinox](dwmj.index.test.IndexServiceBundleTest) ended succesfully
[ PaxRunnerTestContainer] - Shutting down the test container (Pax Runner)
[RMI TCP Connection(1)-127.0.1.1] DEBUG
org.compass.core.transaction.LocalTransaction - Starting a new local
transcation on thread [RMI TCP Connection(1)-127.0.1.1] Compass [28062585]
Session [274614] with isolation [null]
[RMI TCP Connection(1)-127.0.1.1] DEBUG
org.compass.core.lucene.engine.LuceneSearchEngine - RESOURCE QUERY [domain]
HITS [0]
[RMI TCP Connection(1)-127.0.1.1] DEBUG
org.compass.core.transaction.LocalTransaction - Committing local transaction on
thread [RMI TCP Connection(1)-127.0.1.1] Compass [28062585] Session [274614]
[RMI TCP Connection(1)-127.0.1.1] DEBUG sun.rmi.transport.tcp - RMI TCP
Connection(1)-127.0.1.1: (port 1099) op = 80
[System Bundle Shutdown] DEBUG org.ops4j.pax.swissbox.extender.BundleWatcher -
Releasing bundle [org.compass-project.compass]
Activator shutting down...
[System Bundle Shutdown] DEBUG com.dudewheresmyjar.index - ServiceEvent
UNREGISTERING
[System Bundle Shutdown] DEBUG org.ops4j.pax.swissbox.extender.BundleWatcher -
Releasing bundle [com.dudewheresmyjar.index]
[System Bundle Shutdown] DEBUG org.ops4j.pax.swissbox.extender.BundleWatcher -
Releasing bundle [com.dudewheresmyjar.domain]
[System Bundle Shutdown] INFO org.ops4j.pax.logging.internal.Activator -
Disabling SLF4J API support.
[System Bundle Shutdown] INFO org.ops4j.pax.logging.internal.Activator -
Disabling Jakarta Commons Logging API support.
[System Bundle Shutdown] INFO org.ops4j.pax.logging.internal.Activator -
Disabling Log4J API support.
[System Bundle Shutdown] INFO org.ops4j.pax.logging.internal.Activator -
Disabling Avalon Logger API support.
[System Bundle Shutdown] INFO org.ops4j.pax.logging.internal.Activator -
Disabling JULI Logger API support.
org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.swissbox.extender.BundleWatcher]
: Releasing bundle [org.ops4j.pax.logging.pax-logging-api]
org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.swissbox.extender.BundleWatcher]
: Releasing bundle [org.ops4j.pax.logging.pax-logging-service]
org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.swissbox.extender.BundleWatcher]
: Releasing bundle [pax-exam-probe]
org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.swissbox.extender.BundleWatcher]
: Unregistering [ManifestEntry{ key=PaxExam-TestMethodName,
value=shouldIndexAndFindAJarFileObject }, ManifestEntry{
key=PaxExam-TestClassName, value=dwmj.index.test.IndexServiceBundleTest }]
org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.exam.junit.extender.impl.internal.TestBundleObserver]
: Unregistered testcase
[dwmj.index.test.IndexServiceBundleTest.shouldIndexAndFindAJarFileObject]
org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.exam.rbc.internal.Activator]
: Unbinding RemoteBundleContext
org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.exam.rbc.internal.Activator]
: RMI registry stopped
org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.swissbox.extender.BundleWatcher]
: Releasing bundle [org.ops4j.pax.exam.rbc]
org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.swissbox.extender.BundleWatcher]
: Releasing bundle [com.springsource.org.junit]
org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.url.commons.handler.HandlerActivator]
: Handler for protocols [dir] stopped
org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.swissbox.extender.BundleWatcher]
: Releasing bundle [org.ops4j.pax.url.dir]
org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.swissbox.extender.BundleWatcher]
: Releasing bundle [org.eclipse.osgi.util]
org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.swissbox.extender.BundleWatcher]
: Releasing bundle [org.eclipse.osgi]
org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.swissbox.extender.BundleWatcher]
: Releasing bundle [org.ops4j.pax.exam.junit.extender]
org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.swissbox.extender.BundleWatcher]
: Releasing bundle [org.ops4j.pax.exam.junit.extender.impl]
org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.swissbox.extender.BundleWatcher]
: Releasing bundle [org.ops4j.pax.exam]
org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.swissbox.extender.BundleWatcher]
: Releasing bundle [org.eclipse.osgi.services]
[ DefaultJavaRunner] - Platform has been shutdown.
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 15.137 sec
Results :
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0
Re IP address reported, agree it looked bit suspect. When tested :-
rsel...@ubuntu:~$ ping -c 3 127.0.1.1
PING 127.0.1.1 (127.0.1.1) 56(84) bytes of data.
64 bytes from 127.0.1.1: icmp_seq=1 ttl=64 time=0.240 ms
64 bytes from 127.0.1.1: icmp_seq=2 ttl=64 time=0.068 ms
64 bytes from 127.0.1.1: icmp_seq=3 ttl=64 time=0.052 ms
Best regards,
Richard.
From: Agustín Gañán
Sent: Tuesday, December 22, 2009 2:27 PM
To: Marcel Offermans
Cc: Richard Seldon ; [email protected]
Subject: Re: Issue when running PAX-EXAM
Hi Richard,
No solution here, only an example:
I'm working with pax-exam 1.2.0 and my code look like this:
mavenBundle("org.ops4j.pax.web", "pax-web-service")
instead
mavenBundle().groupId("org.ops4j.pax.logging").artifactId("pax-logging-api"),
hope this helps,
Agus
2009/12/22 Marcel Offermans <[email protected]>
No solution here, but I noticed something strange in the output.
On Dec 22, 2009, at 15:03 , Richard Seldon wrote:
Connection refused to host: 127.0.1.1
What's that about? Should localhost not resolve to 127.0.0.1?
_______________________________________________
general mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/general
_______________________________________________
general mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/general