Skip to content

TestNG is no longer working in OSGi environments #1678

@adessaigne

Description

@adessaigne

TestNG Version

TestNG 6.13.1

Expected behavior

TestNG is working in OSGi environments

Actual behavior

When starting TestNG in a OSGi environment you have the following exception

java.lang.ClassNotFoundException: com.beust.jcommander.ParameterException not found by testng [72]
	at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1550)
	at org.apache.felix.framework.BundleWiringImpl.access$200(BundleWiringImpl.java:79)
	at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1958)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	... 11 more

The reason behind that is that the MANIFEST.MF file no longer contain the Import-Package directive.

Unfortunately I don't know how to fix it, can you have a look ? Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions