Hi,

In the process of figuring out a proper way of including jaxb-api (on which
tyrus-standalone-client depends) in CEP Websocket Input/Output Adaptors,

did a test to find out exactly which jaxb-api packages are needed by
tyrus-standalone-client.

For that, we removed jaxb-api dependencies from the feature-pom, built the
pack and diagnosed the tyrus bundle on the OSGI console.

osgi> ss tyrus

"Framework is launched."


> id State       Bundle
>
371 INSTALLED   tyrus-standalone-client_1.7.0.wso2v1

osgi> diag 371

reference:file:../plugins/tyrus-standalone-client_1.7.0.wso2v1.jar [371]

  Direct constraints which are unresolved:

    Missing imported package javax.xml.bind.annotation.adapters_0.0.0.




Then we decided to modify the tyrus-orbit bundle as follows:


   - Include a dependency to,


<dependency>

<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.2.6</version>

</dependency>


   - Put javax.xml.bind.annotation.* under private packages

<build>
    <plugins>
        <plugin>
            <configuration>
                <instructions>
                    <Private-Package>
                        javax.xml.bind.annotation.*
                    </Private-Package>

This seems like a better approach than making our feature depend on
jaxb-api.

Thanks,
Dilini
-- 
*Dilini Muthumala*
Software Engineer,
WSO2 Inc.

*E-mail :* [email protected]
*Mobile: *+94713 400 029
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to