It's all about the answers!

Ask a question

Adapter to RQM is not recognizing the third party library


Juan Villasenor (61) | asked Apr 19 '10, 6:01 p.m.
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.

One answer



permanent link
Antonio Napoles (2861) | answered Apr 19 '10, 6:15 p.m.
JAZZ DEVELOPER
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.

Comments
Juan Villasenor commented Apr 26 '10, 4:31 p.m. | edited Nov 15 '17, 4:03 p.m.

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.


diego dbserver commented Dec 07 '16, 6:26 a.m. | edited Nov 15 '17, 4:05 p.m.

 

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

Your answer


Register or 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.