Thanks for the reply Bhathiya.

Yes , i have the *org.wso2.uri.template imported *with the version and i
have not used resolution: optional.
<import.package>
      ...
      org.wso2.uri.template.*; version="${uri.template.version}"
<import.package>

 <uri.template.version>1.6.5</uri.template.version>

Thanks & Regards,
Ishara Cooray
Senior Software Engineer
Mobile : +9477 262 9512
WSO2, Inc. | http://wso2.com/
Lean . Enterprise . Middleware

On Tue, Nov 8, 2016 at 5:46 PM, Bhathiya Jayasekara <bhath...@wso2.com>
wrote:

> Hi Ishara,
>
> What are the osgi imports you have in rest.api.commons pom?  If
> rest.api.commons needs *org.wso2.uri.template* package to be imported,
> you have to import it with a proper version range. Instead, if you have 
> *resolution:
> optional,* AFAIK it will look for a particular version only. If runtime
> doesn't have that particular version, you can see such errors.
>
> Thanks,
> Bhathiya
>
> On Tue, Nov 8, 2016 at 5:10 PM, Ishara Cooray <isha...@wso2.com> wrote:
>
>> Hi,
>>
>> I am getting below error[1] at server startup but when i check the osgi
>> bundle for it's status it is in active state.
>> 78    ACTIVE      wso2-uri-templates_1.6.5
>>
>> [1] org.osgi.framework.BundleException: Could not resolve module:
>> org.wso2.carbon.apimgt.rest.api.commons [79]
>>   Unresolved requirement: Import-Package: org.wso2.uri.template;
>> version="1.6.5"
>>
>>     at org.eclipse.osgi.container.Module.start(Module.java:434)
>>     at org.eclipse.osgi.internal.framework.EquinoxBundle.start(Equi
>> noxBundle.java:393)
>>     at org.eclipse.osgi.internal.framework.EquinoxBundle.start(Equi
>> noxBundle.java:412)
>>
>> Also the MANIFEST.MF contains the imported package as follows.
>>
>> org.wso2.uri.template;version="1.6.5" is also there in the MANIFEST.MF
>>
>> i am using java version : 1.8
>>
>>
>> Any clue would be appreciated.
>>
>> Thanks & Regards,
>> Ishara Cooray
>> Senior Software Engineer
>> Mobile : +9477 262 9512
>> WSO2, Inc. | http://wso2.com/
>> Lean . Enterprise . Middleware
>>
>> _______________________________________________
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Bhathiya Jayasekara*
> *Senior Software Engineer,*
> *WSO2 inc., http://wso2.com <http://wso2.com>*
>
> *Phone: +94715478185 <%2B94715478185>*
> *LinkedIn: http://www.linkedin.com/in/bhathiyaj
> <http://www.linkedin.com/in/bhathiyaj>*
> *Twitter: https://twitter.com/bhathiyax <https://twitter.com/bhathiyax>*
> *Blog: http://movingaheadblog.blogspot.com
> <http://movingaheadblog.blogspot.com/>*
>
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to