Migration osgi tests to karaf
maven karaf plugin - in osgi test pom.xml
Comments (9)
-
-
reporter - changed status to open
-
Some tips about class loading exception on AgentConfiguration:
Quote: There is a workaround for this issue: setting KarafDistributionBaseConfigurationOption.useDeployFolder() to 'false' With this option set the dependencies are deployed in the container using a feature file which is added to the "featuresBoot" property in org.apache.karaf.features.cfg
-
The same problem on StackOverflow: http://stackoverflow.com/questions/15067691/osgi-integration-testing-pax-exam-probe-executing-tests-before-container-bundle
Potential solution: https://access.redhat.com/documentation/en-US/Red_Hat_JBoss_Fuse/6.0/html/Deploying_into_the_Container/files/PaxExam-Sample.html
The Pax-Exam framework supports the concept of Apache Karaf features (see Deploying Features). You can use the PaxRunnerOptions.scanFeatures() method to install specific features in the OSGi container before the test is run.
-
Conclusion:
Karaf 4.0.0.M1 is not stable. You need to specify the following versions:
- 4.4.0 for Pax Exam
- 3.0.2 for Apache Karaf
-
- changed milestone to First production release
- changed version to 1.0.0
-
-
assigned issue to
-
assigned issue to
-
- changed status to resolved
-
- changed status to closed
- Log in to comment
Look at this: http://karaf.apache.org/manual/latest/users-guide/kar.html