Hi Milinda, This is due to missing 'server.name' environment variable that is required by an OSGi test. [1] Tries to set the environment variable 'server.name' but it is not set in Linux environments due to Linux allows only uppercase letters, digits, and the '_' (underscore) for an environment variable name [2]. This issue is reported in [3] and will be fixed with PR [4].
[1] https://github.com/wso2/carbon-kernel/blob/master/ tests/osgi-tests/src/test/java/org/wso2/carbon/osgi/config/ PropertyResolveConfigProviderOSGITest.java#L59 [2] https://stackoverflow.com/questions/2821043/allowed-characters-in-linux- environment-variable-names [3] https://github.com/wso2/carbon-kernel/issues/1383 [4] https://github.com/wso2/carbon-kernel/pull/1384 Best Regards, Vidura Nanayakkara On Thu, May 25, 2017 at 4:54 PM, Milinda Wickramasinghe <[email protected]> wrote: > Hi Kernel team / All, > > When trying to build the Carbon-Kernel from a fresh clone, it fails giving > the following error. > > osgi> [2017-05-25 15:56:49,471] ERROR > {org.wso2.carbon.config.provider.ConfigProviderImpl} >> - Environment variable server.name not found. Placeholder: id: >> test-carbon-kernel >> > > More info on the error can be found in the attachment > "osgi-test-failure-kernel.txt". > > Am I doing something wrong here? or is this a known issue? > > Appreciate your feedback on this. > > Thanks and Best Regards, > Milinda. > > *Software Engineer - Platform Security Team* > Mobile : +94 (0) 777 890 864 <%2B94%20%280%29%20773%20451194> > [email protected] > -- Best Regards, *Vidura Nanayakkara* Software Engineer Email : [email protected] Mobile : +94 (0) 717 919277 Web : http://wso2.com Blog : https://medium.com/@viduran LinkedIn : https://lk.linkedin.com/in/vidura-nanayakkara
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
