servicemix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sobkowiak Krzysztof <krzys.sobkow...@gmail.com>
Subject Re: Issue with javax.transaction API in service mix
Date Wed, 24 Feb 2016 10:29:59 GMT
The problem has been resolved in Karaf and will be available in Karaf 4.0.5 (and final ServiceMix
7.0.0)

Regards
Krzysztof

On 23.02.2016 23:54, Krzysztof Sobkowiak wrote:
> Hi
>
> It seems to happen when camel-jms (exactly geronimo-jta_1.1_spec) is installed before
the transaction feature. I can reproduce the same issue on vanilla Karaf with following
> steps
>
> karaf@root()> feature:install transaction-api/1.1.0
> karaf@root()> feature:install transaction
> karaf@root()> list -t 0
> ...
> 52 | Active      |  80 | 1.1.1    | geronimo-jta_1.1_spec
> 53 | Active      |  80 | 3.0.0    | Expression Language 3.0 API
> 54 | Active      |  80 | 1.2.0    | CDI APIs
> 55 | Active      |  80 | 1.2      | javax.interceptor API
> 56 | Active      |  80 | 1.2      | javax.transaction API
> 57 | GracePeriod |  80 | 1.1.1    | Apache Aries Transaction Blueprint
> 58 | GracePeriod |  80 | 2.1.0    | Apache Aries Transaction Blueprint
> 59 | Active      |  80 | 1.3.0    | Apache Aries Transaction Manager
> 60 | Active      |  80 | 1.0.2    | Apache Felix Coordinator Service
> 61 | Active      |  80 | 1.0.0.2  | Apache ServiceMix :: Bundles :: javax.inject
>
> Or more complex steps to be closer to Servicemix
>
> karaf@root()> feature:repo-add camel 2.16.2
> Adding feature url mvn:org.apache.camel.karaf/apache-camel/2.16.2/xml/features
> karaf@root()> feature:install camel-jms
> karaf@root()> feature:install transaction
> karaf@root()> list -t 0
> ...
> 55 | Active      |  50 | 2.16.2           | camel-jms
> 56 | Active      |  80 | 2.16.2           | camel-karaf-commands
> 57 | Active      |  50 | 1.6.0            | Commons Pool
> 58 | Active      |  10 | 1.1.1            | geronimo-jms_1.1_spec
> 59 | Active      |  10 | 1.1.1            | geronimo-jta_1.1_spec
> ....
> 72 | Active      |  80 | 3.0.0            | Expression Language 3.0 API
> 73 | Active      |  80 | 1.2.0            | CDI APIs
> 74 | Active      |  80 | 1.2              | javax.interceptor API
> 75 | Active      |  80 | 1.2              | javax.transaction API
> 76 | GracePeriod |  80 | 1.1.1            | Apache Aries Transaction Blueprint
> 77 | GracePeriod |  80 | 2.1.0            | Apache Aries Transaction Blueprint
> 78 | Active      |  80 | 1.3.0            | Apache Aries Transaction Manager
> 79 | Active      |  80 | 1.0.2            | Apache Felix Coordinator Service
> 80 | Active      |  80 | 1.0.0.2          | Apache ServiceMix :: Bundles :: javax.inject
>
> I could install the transaction feature by adding it as boot feature, but in a separate
stage (the () syntax) with some other features. It forces the transaction feature to be installed
before the camel-jms feature is installed
>
> featuresBoot = \
>     (wrap, \
>     aries-blueprint, \
>     shell, \
>     shell-compat, \
>     feature, \
>     jaas, \
>     ssh, \
>     management, \
>     bundle, \
>     config, \
>     deployer, \
>     diagnostic, \
>     instance, \
>     kar, \
>     log, \
>     package, \
>     service, \
>     system, \
>     transaction-api, \
>     transaction), \
>     activemq-broker-noweb, \
>     activemq-camel, \
>     camel, \
>     cxf, \
>     camel-cxf, \
>     camel-blueprint, \
>     activemq-service, \
>     camel-xstream, \
>     war
>
> You can try it as workaround. I'll open an issue for this
>
> Regards
> Krzysztof
>
>
>
>
>
> On 23.02.2016 21:17, delmonte3161 wrote:
>> I am having an issue with Apache ServiceMix (7.0.0.M1).  I start up a fresh
>> service mix (clean) and simply install the transaction feature:
>>
>> karaf@root>feature:install transaction
>>
>> This puts the Aries Transaction Blueprint into a GracePeriod:
>>
>> 224 | GracePeriod |  80 | 1.1.1                              | Apache Aries
>> Transaction Blueprint
>> 225 | GracePeriod |  80 | 2.1.0                              | Apache Aries
>> Transaction Blueprint
>>
>> This keeps my apps I install later that require the javax transaction api
>> from starting.  Is there a workaround for this issue?  I had the same issues
>> when just using karaf 4.0.3 and trying to instal camel and transaction.
>>
>> Below you'll find a listing of all bundles (the basic service mix + those
>> added by installing the transaction feature above).  Notice the failure due
>> to the GracePeriod timeout.
>>
>> karaf@root>list
>> START LEVEL 100 , List Threshold: 50
>>  ID | State   | Lvl | Version                            | Name
>> -------------------------------------------------------------------------------------------------------
>>  10 | Active  |  50 | 5.13.0                             | activemq-karaf
>>  11 | Active  |  50 | 2.6.3                              |
>> Jackson-annotations
>>  12 | Active  |  50 | 2.6.3                              | Jackson-core
>>  13 | Active  |  50 | 2.6.3                              | jackson-databind
>>  23 | Active  |  50 | 3.1.4                              | activeio-core
>>  24 | Active  |  50 | 5.13.0                             | activemq-camel
>>  25 | Active  |  50 | 5.13.0                             | activemq-osgi
>>  40 | Active  |  50 | 2.16.2                             | camel-blueprint
>>  41 | Active  |  50 | 2.16.2                             | camel-catalog
>>  42 | Active  |  80 | 2.16.2                             |
>> camel-commands-core
>>  43 | Active  |  50 | 2.16.2                             | camel-core
>>  44 | Active  |  50 | 2.16.2                             | camel-cxf
>>  45 | Active  |  50 | 2.16.2                             |
>> camel-cxf-transport
>>  46 | Active  |  50 | 2.16.2                             | camel-jms
>>  47 | Active  |  50 | 2.16.2                             | camel-spring
>>  48 | Active  |  50 | 2.16.2                             | camel-xstream
>>  49 | Active  |  80 | 2.16.2                             |
>> camel-karaf-commands
>>  51 | Active  |  50 | 3.2.2                              | Apache Commons
>> Collections
>>  53 | Active  |  50 | 3.3.0                              | Commons Net
>>  54 | Active  |  50 | 1.6.0                              | Commons Pool
>>  55 | Active  |  50 | 2.4.2                              | Apache Commons
>> Pool
>>  93 | Active  |  50 | 2.0.0                              |
>> geronimo-j2ee-connector_1.5_spec
>>  94 | Active  |  50 | 1.0.1                              |
>> geronimo-j2ee-management_1.1_spec
>>  99 | Active  |  50 | 3.4.6                              | ZooKeeper Bundle
>> 129 | Active  |  80 | 2.0.9                              | Apache MINA Core
>> 132 | Active  |  50 | 7.0.0.M1                           | Apache ServiceMix
>> :: ActiveMQ :: Camel
>> 133 | Active  |  50 | 7.0.0.M1                           | Apache ServiceMix
>> :: ActiveMQ :: Service
>> 136 | Active  |  50 | 1.6.1.5                            | Apache ServiceMix
>> :: Bundles :: dom4j
>> 138 | Active  |  50 | 1.9.2.1                            | Apache ServiceMix
>> :: Bundles :: jasypt
>> 142 | Active  |  50 | 1.1.0.4                            | Apache ServiceMix
>> :: Bundles :: jdom
>> 143 | Active  |  50 | 2.3.0.2                            | Apache ServiceMix
>> :: Bundles :: kxml2
>> 156 | Active  |  50 | 1.7.0.6                            | Apache ServiceMix
>> :: Bundles :: velocity
>> 160 | Active  |  50 | 1.1.4.c                            | Apache ServiceMix
>> :: Bundles :: xpp3
>> 161 | Active  |  50 | 1.4.8.1                            | Apache ServiceMix
>> :: Bundles :: xstream
>> 172 | Active  |  50 | 3.18.0                             | Apache XBean ::
>> Spring
>> 201 | Active  |  50 | 0.6.4                              | JAXB2 Basics -
>> Runtime
>> 214 | Active  |  50 | 2.11.0.v20140415-163722-cac6383e66 | Scala Standard
>> Library
>> 221 | Active  |  80 | 1.2.0                              | CDI APIs
>> 222 | Active  |  80 | 1.2                                | javax.interceptor
>> API
>> 223 | Active  |  80 | 1.2                                | javax.transaction
>> API
>> *224 | Failure |  80 | 1.1.1                              | Apache Aries
>> Transaction Blueprint
>> 225 | Failure |  80 | 2.1.0                              | Apache Aries
>> Transaction Blueprint*
>> 226 | Active  |  80 | 1.3.0                              | Apache Aries
>> Transaction Manager
>> 227 | Active  |  80 | 1.0.2                              | Apache Felix
>> Coordinator Service
>> 228 | Active  |  80 | 1.0.0.2                            | Apache ServiceMix
>> :: Bundles :: javax.inject
>>
>>
>>
>>
>> --
>> View this message in context: http://servicemix.396122.n5.nabble.com/Issue-with-javax-transaction-API-in-service-mix-tp5723472.html
>> Sent from the ServiceMix - Dev mailing list archive at Nabble.com.
>

-- 
Krzysztof Sobkowiak

JEE & OSS Architect, Integration Architect
Apache Software Foundation Member (http://apache.org/)
Apache ServiceMix Committer & PMC Member (http://servicemix.apache.org/)
Senior Solution Architect @ Capgemini SSC (http://www.capgeminisoftware.pl/)

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