Hi JB,
Just an update on this one. I didn't find the exact reason while my build was
failing but I was originally using PAX 4.8.0 but updated to 4.11.0 and the
issue went away.
Kerry
On 08/01/18 18:38, Jean-Baptiste Onofré wrote:
OK, weird if the system.properties and/or jre.properties are exporting those
packages.
On 01/08/2018 07:11 PM, Kerry wrote:
I use Travis to use Oracle JDK so should be available. Also TestFX itself is
tested on Travis so I expect that the package is available.
I'll try a few other things.
Kerry
On 08/01/18 05:35, Jean-Baptiste Onofré wrote:
cum.sun.glass.ui should be an optional import as it's not provided by all JDK.
Probably the JDK used by Travis and your machine are different, no ?
Regards
JB
On 01/07/2018 09:16 PM, Kerry wrote:
Hi JB,
I think the reason for the ClassNotfoundException is because the TestFX-core
bundle is not resolved - see line 2825 of the log:
Unresolved requirements: [[org.testfx.core [10](R 10.0)] osgi.wiring.package;
(osgi.wiring.package=com.sun.glass.ui)]
TestFx is OSGi compatible so not using Dynamic Package. The package
com.sun.glass.ui is an internal package and I make it available by modifying
the Karaf config.properties:
https://github.com/jtkb/flexfx/blob/master/it/tests/src/test/resources/etc/config.properties
this is a very strange issue because the same integration tests run OK on my
local dev machine.. for some reason my config.properties isn't being applied
when in Travis? (guessing here).
Kerry
On 07/01/18 19:43, Jean-Baptiste Onofré wrote:
Hi Kerry,
I never used Travis with Karaf (we are using Jenkins for the itests).
However, your issue doesn't look related to Travis.
I can see java.lang.ClassNotFoundException: org.testfx.osgi.service.TestFx in
the log. I think you are using Dynamic Package. Can you check that the bundle
providing the org.testfx.osgi.service package is part of startup.properties ?
Regards
JB
On 01/07/2018 06:41 PM, JT wrote:
Hi,
I'm trying to set up Travis CI for my GitHub project. I have some integration
tests using PAX exam and execute these in a Karaf instance. I use a modified
config.properties file which adds the package'com.sun.glass.ui' to the
'org.osgi.framework.system.packages.extra'property. When I run the integration
tests locally there are issue.
When the integration tests are run on Travis, they fail because the package
com.sun.glass.ui is not exported:
https://travis-ci.org/jtkb/flexfx
Does anyone have experience of using Travis CI and configuring Karaf to run in
it or any idea why the config.properties is not being applied?
Thanks, Kerry.