You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@aries.apache.org by Bengt Rodehav <be...@rodehav.com> on 2010/09/14 19:20:25 UTC
Does Aries Blueprint require cglib or asm?
When trying to use Aries blueprint (and jpa) from within Pax Exam I get the
following error message:
[RMI TCP Connection(1)-192.168.0.3] ERROR
org.apache.aries.blueprint.container.ServiceRecipe - Error retrieving
service from
ServiceRecipe[name='.component-2']org.osgi.service.blueprint.container.ComponentDefinitionException:
Interceptors have been configured but neither asm nor cglib are available
Does Aries Blueprint require cglib or asm? What version? What bundle do you
recommend?
/Bengt
Re: Does Aries Blueprint require cglib or asm?
Posted by Bengt Rodehav <be...@rodehav.com>.
Thanks Joe,
You're right I use declarative transactions. I tried cglib version 2.1_3_4
and it solved the problem.
Thanks,
/Bengt
2010/9/14 Joe Bohn <jo...@gmail.com>
> Hi Bengt,
>
> Our transaction support uses an interceptor and hence it requires either
> cglib or asm to be available. From the message below I suspect your
> dependency might be caused by the interceptor required for declarative
> transactions ... but that's just a guess.
>
> In the equinox assemblies that we provide for the Blog and AriesTrader
> samples we use asm version 3.2 (we specifically use asm-all-3.2.jar). I
> think we use cglib version 2.1_3_4 in other places. I suspect either of
> those should work.
>
> Joe
>
>
>
> On 9/14/10 1:20 PM, Bengt Rodehav wrote:
>
>> When trying to use Aries blueprint (and jpa) from within Pax Exam I get
>> the following error message:
>>
>> [RMI TCP Connection(1)-192.168.0.3] ERROR
>> org.apache.aries.blueprint.container.ServiceRecipe - Error retrieving
>> service from
>>
>> ServiceRecipe[name='.component-2']org.osgi.service.blueprint.container.ComponentDefinitionException:
>> Interceptors have been configured but neither asm nor cglib are available
>>
>> Does Aries Blueprint require cglib or asm? What version? What bundle do
>> you recommend?
>>
>> /Bengt
>>
>
>
> --
> Joe
>
Re: Does Aries Blueprint require cglib or asm?
Posted by Joe Bohn <jo...@gmail.com>.
Hi Bengt,
Our transaction support uses an interceptor and hence it requires either
cglib or asm to be available. From the message below I suspect your
dependency might be caused by the interceptor required for declarative
transactions ... but that's just a guess.
In the equinox assemblies that we provide for the Blog and AriesTrader
samples we use asm version 3.2 (we specifically use asm-all-3.2.jar). I
think we use cglib version 2.1_3_4 in other places. I suspect either of
those should work.
Joe
On 9/14/10 1:20 PM, Bengt Rodehav wrote:
> When trying to use Aries blueprint (and jpa) from within Pax Exam I get
> the following error message:
>
> [RMI TCP Connection(1)-192.168.0.3] ERROR
> org.apache.aries.blueprint.container.ServiceRecipe - Error retrieving
> service from
> ServiceRecipe[name='.component-2']org.osgi.service.blueprint.container.ComponentDefinitionException:
> Interceptors have been configured but neither asm nor cglib are available
>
> Does Aries Blueprint require cglib or asm? What version? What bundle do
> you recommend?
>
> /Bengt
--
Joe
Re: Does Aries Blueprint require cglib or asm?
Posted by Valentin Mahrwald <vm...@googlemail.com>.
Hi Bengt,
Blueprint does not require asm or cglib for standard functionality. But some of the extra stuff in particular interceptors need the ability to proxy classes rather than interfaces. In such a case either asm or cglib is required. Also, I believe if you want to export classes rather than interfaces to the service registry.
The versions we use (in the itests) are either (from blueprint/pom.xml):
<dependency>
<groupId>org.apache.servicemix.bundles</groupId>
<artifactId>org.apache.servicemix.bundles.cglib</artifactId>
<version>2.1_3_4</version>
</dependency>
or
<dependency>
<groupId>asm</groupId>
<artifactId>asm-all</artifactId>
<version>3.2</version>
</dependency>
I imagine you need interceptors for declarative blueprint transactions, correct?
Regards,
Valentin
On 14 Sep 2010, at 13:20, Bengt Rodehav wrote:
> When trying to use Aries blueprint (and jpa) from within Pax Exam I get the following error message:
>
> [RMI TCP Connection(1)-192.168.0.3] ERROR org.apache.aries.blueprint.container.ServiceRecipe - Error retrieving service from ServiceRecipe[name='.component-2']org.osgi.service.blueprint.container.ComponentDefinitionException: Interceptors have been configured but neither asm nor cglib are available
>
> Does Aries Blueprint require cglib or asm? What version? What bundle do you recommend?
>
> /Bengt