Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Adapter to RQM is not recognizing the third party library

Adapter to RQM is not recognizing the third party library POI-3.5

Hello,

I am getting the error "java.lang.NoClassDefFoundError" when executing an script by using RQM/RFT-Adapter.

This is not happening when I execute that script directly from RFT environment, only when executing from RQM/RFT-Adapter.

I have added the "poi-3.5-beta5-20090219.jar" as external jar on RFT Java build path.

The error is:
{
* java.lang.NoClassDefFoundError
* org.apache.poi.poifs.filesystem.POIFSFileSystem
* Script Name = TestCases.REG_REGRESSION08
* Script Id = TestCases.REG_REGRESSION08.java
* Line Number = 75
* at Tasks.verifyMoabSwLicense.verifyMoabSw(verifyMoabSwLicense.java:70) at TestCases.REG_REGRESSION08.testMain(REG_REGRESSION08.java:75) at org.eclipse.equinox.internal.app.EclipseAppContainer.callMethodWithException(EclipseAppContainer.java:574) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:195) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504) at org.eclipse.equinox.launcher.Main.run(Main.java:1236) at org.eclipse.equinox.launcher.Main.main(Main.java:1212) at org.eclipse.core.launcher.Main.main(Main.java:30) at com.rational.test.ft.util.FtClassLoader.loadClass(FtClassLoader.java:160) at java.lang.ClassLoader.loadClass(ClassLoader.java:609)
}

How can I make this external library recognizable from RFT adapter (Adapter to RQM)?

Thanks in advanced, I really appreciate your help.

0 votes



One answer

Permanent link
Hi,

From the RFT dev team,

"this issue can be addressed by providing "-projectPath <path>" in the execution arguments in the RQM editor for an RFT script, which should allow the Script execution to run correctly".

regards,
Napoles.

0 votes

Comments

Thank you very much Napoles, it is now working.

The problem was solved by providing the "-projectPath <path>" argument in the execution arguments from the RQM Test script, where <path> was the poi-3.5 jar file path.

 

Juan Villasenor or Antonio Napoles where did you inform this path in RQM?

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Apr 19 '10, 6:01 p.m.

Question was seen: 5,773 times

Last updated: Nov 15 '17, 4:05 p.m.

Confirmation Cancel Confirm