Hi

The org.apache.aries.transaction.blueprint bundle from the transaction feature 
has following OSGi header

Import-Service =
    javax.transaction.TransactionManager

But no other bundle has the Export-Service header containing this service. When 
OBR is installed, the OBR handler is
used to resolve the bundles from the feature, but the requirement of the 
org.apache.aries.transaction.blueprint bundle
cannot be fulfilled, because (theoretically)  there is no bundle which exports 
the service.

I think it is a bug in org.apache.aries.transaction.manager which provides the 
TransactionManager service but has no
Export-Service header. It declares another header which means the same and 
should work together with the Import-Service

Provide-Capability =
    osgi.service;
        effective:=active;
        
objectClass:List<String>="org.apache.aries.transaction.AriesTransactionManager,
            javax.transaction.TransactionManager,
            javax.transaction.TransactionSynchronizationRegistry,
            javax.transaction.UserTransaction,
            
org.apache.geronimo.transaction.manager.RecoverableTransactionManager,
            org.springframework.transaction.PlatformTransactionManager

But I'm not sure. Probably it is a bug.

Regards

Krzysztof



On 06.04.2015 21:04, Stephen Kahmann wrote:
> Hi,
>
> It looks like there is a problem when installing the openjpa feature after 
> install the obr feature:
>
> Stephens-MacBook-Pro:apache-karaf-3.0.3 stephen$ ./bin/karaf clean
>
>         __ __                  ____      
>
>        / //_/____ __________ _/ __/      
>
>       / ,<  / __ `/ ___/ __ `/ /_        
>
>      / /| |/ /_/ / /  / /_/ / __/        
>
>     /_/ |_|\__,_/_/   \__,_/_/         
>
>
> *  Apache Karaf*(3.0.3)
>
>
> Hit '*<tab>*' for a list of available commands
>
> and '*[cmd] --help*' for help on a specific command.
>
> Hit '*<ctrl-d>*' or type '*system:shutdown*' or '*logout*' to shutdown Karaf.
>
>
> *karaf*@root()> feature:install obr
>
> *karaf*@root()> feature:install openjpa
>
> Error executing command: Can't install feature openjpa/0.0.0: 
>
> Can not resolve feature:
>
> Unsatisfied requirement(s):
>
> ---------------------------
>
>    service:(service=javax.transaction.TransactionManager)
>
>       Apache Aries Transaction Blueprint
>
> *karaf*@root()> 
>
>
> Stephens-MacBook-Pro:apache-karaf-3.0.3 stephen$ ./bin/karaf clean
>
>         __ __                  ____      
>
>        / //_/____ __________ _/ __/      
>
>       / ,<  / __ `/ ___/ __ `/ /_        
>
>      / /| |/ /_/ / /  / /_/ / __/        
>
>     /_/ |_|\__,_/_/   \__,_/_/         
>
>
> *  Apache Karaf*(3.0.3)
>
>
> Hit '*<tab>*' for a list of available commands
>
> and '*[cmd] --help*' for help on a specific command.
>
> Hit '*<ctrl-d>*' or type '*system:shutdown*' or '*logout*' to shutdown Karaf.
>
>
> *karaf*@root()> feature:install openjpa
>
> *karaf*@root()> feature:install obr
>
> *karaf*@root()> 
>
>
> Is this known/expected behavior?
>
> Thanks!
> Stephen

-- 
Krzysztof Sobkowiak

JEE & OSS Architect
Apache Software Foundation Member
Apache ServiceMix <http://servicemix.apache.org/> Committer & PMC chair
Senior Solution Architect @ Capgemini SSC <http://www.pl.capgemini-sdm.com/en/>

Reply via email to