felix-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Allen Lau <allen....@gmail.com>
Subject Re: pax exam and felix
Date Mon, 28 Feb 2011 00:12:33 GMT
The current Pax Exam loads it's only Felix libraries until 3.0.2 I
believe.   It doesn't work with the new Felix versions yet, so take out your
3.0.8 jar and that should work.

Allen

On Sun, Feb 27, 2011 at 10:04 AM, teemu kanstren <tkanstren@gmail.com>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
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message