Not sure why Pax Exam would depend on internal framework API, but the last framework version to have that single parameter constructor was 1.8.1...

-> richard

On 2/27/11 13:04, teemu kanstren wrote:
Hello all,

  I have been trying to learn to use Pax Exam with Felix but without much
success. My latest issue is that I get the error

java.lang.NoSuchMethodError:
org.apache.felix.framework.ServiceRegistry.<init>(Lorg/apache/felix/framework/Logger;)V
at org.ops4j.pax.runner.Run.createContext(Run.java:255)

and looking at the Felix sources for ServiceRegistry I see

     public ServiceRegistry(Logger logger, ServiceRegistryCallbacks
callbacks)

and the failing line 255 from Run in pax

         final ServiceRegistry serviceRegistry = new ServiceRegistry( null );

since there is no single argument constructor for ServiceRegistry in Felix
(as expected by Pax Exam), it seems to me that this is what the error is
for.

So what am I doing wrong? Maybe it is my environment, since I do not use
Maven and I had to manually go hunt and pick all the dependencies for Pax.
As these are not listed anywhere, maybe I got something wrong?

I have
-Felix 3.0.8
-commons-discovery-0.4.jar
-ops4j-base-lang-1.2.0.jar
-ops4j-base-store-1.2.0.jar
-pax-exam-1.2.3.jar
-pax-exam-container-default-1.2.3.jar
-pax-exam-container-rbc-1.2.3.jar
-pax-exam-container-rbc-client-1.2.3.jar
-pax-exam-junit-1.2.3.jar
-pax-exam-runtime-1.2.3.jar
-pax-exam-spi-1.2.3.jar
-pax-runner-1.5.0.jar

I have tried with frameworks(felix()) and
frameworks(felix().version("3.0.8")) options in my pax @Configuration
method. But no change. Perhaps I am missing how pax would try to change the
code to create the container based on this configuration and thus am not
configuring something as needed?

Any ideas?

Thanks,
Teemu


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to