On Wed, Dec 15, 2010 at 1:02 AM, Tharindu Mathew <[email protected]> wrote:

>
>
> On Tue, Dec 14, 2010 at 7:15 PM, Kasun Weranga <[email protected]> wrote:
>
>> HI,
>>
>>
>>
>> On Tue, Dec 14, 2010 at 2:22 PM, Anjana Fernando <[email protected]> wrote:
>>
>>> Hi,
>>>
>>> While I was testing distributed transaction support in DSS, I got a
>>> problem where the package "javax.transaction" is exposed by the JDK
>>> and also in geronimo-jta_1.1_spec jar,
>>
>>
>> I also faced similar kind of class loading issue because
>> of geronimo-jaxws_2.1_spec-1.0.jar and  geronimo-jaxws_2.2_spec.jar, both of
>> these two jars expose "javax.xml.ws" package which is in JDK 1.6 too.
>>
>
> And how did you overcome this issue? :)
>

In my case, uddi-ws.jar (which is one of jar that I use for publishing
services to UDDI) needs to call to the javax.xml.ws.Service class in JDK but
in OSGI environment It calls to javax.xml.ws.Service class in geronimo-jaxws
jar. I overcome this issue by putting uddi-ws.jar in CARBON_HOME/lib folder
and added all packages of uddi-ws.jar to launch.ini file.  Then it called
correct Service class in JDK.

 which is at
>>> /repository/components/plugins. This leads to a class loading problem
>>> with OSGi, and when I remove the geronimo jar, all is fine. I talked
>>> with Ruwan and he mentioned that, this is because, starting from
>>> JDK1.6, they are shipping the "javax.transaction" packages by default.
>>> So since Carbon 3.1.0 is only supported by JDK1.6 and onwards, I
>>> suggest removing the unnecessary geronimo jars from carbon core.
>>>
>>> Cheers,
>>> Anjana.
>>>
>>> --
>>> Anjana Fernando
>>> Software Engineer
>>> WSO2, Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> _______________________________________________
>>> Carbon-dev mailing list
>>> [email protected]
>>> https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>
>>
>>
>>
>> --
>> *Kasun Weranga*
>> Software Engineer
>> **
>> *WSO2, Inc.
>> *lean.enterprise.middleware.
>> mobile : +94 772314602
>> <http://sanjeewamalalgoda.blogspot.com/>blog 
>> :<http://sanjeewamalalgoda.blogspot.com/>
>> http://kasunweranga.blogspot.com/
>>
>> _______________________________________________
>> Carbon-dev mailing list
>> [email protected]
>> https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>>
>
>
> --
> Regards,
>
> Tharindu Mathew
>
> Software Engineer,
> WSO2 Inc.,
> http://wso2.com
>
>
> _______________________________________________
> Carbon-dev mailing list
> [email protected]
> https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>


-- 
*Kasun Weranga*
Software Engineer
**
*WSO2, Inc.
*lean.enterprise.middleware.
mobile : +94 772314602
<http://sanjeewamalalgoda.blogspot.com/>blog
:<http://sanjeewamalalgoda.blogspot.com/>
http://kasunweranga.blogspot.com/
_______________________________________________
Carbon-dev mailing list
[email protected]
https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to