Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » RCP Testing Tool » Mvn Runner Problem
Mvn Runner Problem [message #1693657] Mon, 27 April 2015 09:53 Go to next message
Andreas Graf is currently offline Andreas GrafFriend
Messages: 211
Registered: July 2009
Senior Member
Hi,

we have been using the "commercial" version of the mvn runner with success for the last few years.

Right now, we are trying to work with the new open source runner and seeing the following error in the log:

ava.lang.RuntimeException: Application "org.eclipse.rcptt.runner.headless" could not be found in the registry. The applications available are [..] org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher, com.xored.ci4rcptt.runner, org.eclipse.rcptt.ecl.doc.generator.

What could be the reason for that?

Help is appreciated,

Andreas

Extract of our config:

<pluginRepository>
<id>xoredSnap</id>
<name>Xored Maven repository Snap</name>
<url>http://maven.xored.com/nexus/content/repositories/ci4rcptt-snapshots/</url>
</pluginRepository>
</pluginRepositories>
<properties>
<ci4rcptt-maven-version>1.5.6-SNAPSHOT</ci4rcptt-maven-version>
</properties>


<build>
<plugins>
<plugin>
<groupId>com.xored.ci4rcptt</groupId>
<artifactId>ci4rcptt-maven-plugin</artifactId>
<version>${ci4rcptt-maven-version}</version>
<extensions>true</extensions>
<configuration>

<runner>
<!-- <explicit>/Users/olgayurchuk/Downloads/rcptt.runner-incubation-1.5.6-N201504122315.zip</explicit> -->
<version>1.5.6-SNAPSHOT</version>
<vmArgs>

[Updated on: Mon, 27 April 2015 09:55]

Report message to a moderator

Re: Mvn Runner Problem [message #1693660 is a reply to message #1693657] Mon, 27 April 2015 10:13 Go to previous messageGo to next message
Ulyana Skorokhodova is currently offline Ulyana SkorokhodovaFriend
Messages: 280
Registered: July 2014
Senior Member
Hi Andreas,

Could you please use <runner><explicit> instead of <runner><version> and try again?

UPD: you should download rcptt runner from here: https://www.eclipse.org/rcptt/download/ and set it's path in <explicit> tag.

Yours sincerely,
Ulyana.

[Updated on: Mon, 27 April 2015 10:14]

Report message to a moderator

Re: Mvn Runner Problem [message #1693688 is a reply to message #1693660] Mon, 27 April 2015 13:59 Go to previous messageGo to next message
Andreas Graf is currently offline Andreas GrafFriend
Messages: 211
Registered: July 2009
Senior Member
Hi Ulyana,

thanks! That helped -> its running now.

Andreas
Re: Mvn Runner Problem [message #1694090 is a reply to message #1693688] Thu, 30 April 2015 13:12 Go to previous messageGo to next message
Chris Champion is currently offline Chris ChampionFriend
Messages: 49
Registered: February 2014
Member
Hi Ulyana,

I'm getting the same error when trying to use the Runner with a batch file started from the Windows console.

java.lang.RuntimeException: Application "org.eclipse.rcptt.runner.headless" could not be found in the registry. The applications available are: org.eclipse.ant.core.antRunner, ...

I don't see an org.eclipse.rcptt.runner.headless.jar in RCPTT's plugins folder.

The batch file looks like this:
REM !!! Replace the value below with the path to the directory there
REM application under test (AUT) is located.
SET AUT=D:\MyAUT\9.1.0.5\Navigator\eclipse\
SET RUNNER=%USERPROFILE%\runner
SET PROJECT=D:\MyAUT\svn\rcptt_nbx86\Admin_Testplan


REM Path to directory with test results, default is C:\Users\User\results
SET RESULTS=%PROJECT%\..\results

REM Remove results dir if present
IF NOT EXIST %RESULTS% GOTO NORESULTS
RMDIR /S /Q %RESULTS%

:NORESULTS
md %RESULTS%

java -jar "C:\Program Files (x86)\rcptt_nbx86\plugins\org.eclipse.equinox.launcher_1.2.0.v20110502.jar" ^
 -application org.eclipse.rcptt.runner.headless ^
 -data %RESULTS%/runner-workspace/ ^
 -aut %AUT% ^
 -autWsPrefix D:/MyAUT/svn/aut-DailyBuild/ ^
 -autConsolePrefix %RESULTS%/aut-output ^
 -htmlReport %RESULTS%/report.html ^
 -junitReport %RESULTS%/report.xml ^
 -import %PROJECT%

[Updated on: Thu, 30 April 2015 13:23]

Report message to a moderator

Re: Mvn Runner Problem [message #1694092 is a reply to message #1694090] Thu, 30 April 2015 13:24 Go to previous messageGo to next message
Ulyana Skorokhodova is currently offline Ulyana SkorokhodovaFriend
Messages: 280
Registered: July 2014
Senior Member
Hi Chris,

Did you download a OpenSource (1.5.6-nightly) runner version from here: https://www.eclipse.org/rcptt/download/

Yours sincerely,
Ulyana.
Re: Mvn Runner Problem [message #1694103 is a reply to message #1694092] Thu, 30 April 2015 14:31 Go to previous messageGo to next message
Chris Champion is currently offline Chris ChampionFriend
Messages: 49
Registered: February 2014
Member
Ah, that would most certainly help! Laughing
Thank you!
Re: Mvn Runner Problem [message #1699231 is a reply to message #1693657] Mon, 22 June 2015 18:45 Go to previous messageGo to next message
Guillermo Cancino is currently offline Guillermo CancinoFriend
Messages: 11
Registered: April 2015
Junior Member
Hi everyone Very Happy
someone know that might be happening ?
I cannot execute my test runner, the windows console show me this:

!ENTRY org.eclipse.jdt.annotation 2 0 2015-06-22 13:41:06.277
!MESSAGE Could not resolve module: org.eclipse.jdt.annotation [165]
Unresolved requirement: Require-Capability: osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=1.Cool)"


!ENTRY org.eclipse.osgi 4 0 2015-06-22 13:41:06.277
!MESSAGE Application error
!STACK 1
java.lang.RuntimeException: Application "org.eclipse.rcptt.runner.headless" could not be found in the registry. The applications available are: org.eclipse.ant.core.antRunner, org.eclipse.ant.ui.antRunner, org.eclipse.e4.ui.workbench.swt.E4Application, org.eclipse.e4.ui.workbench.swt.GenTopic, org.eclipse.equinox.app.error, org.eclipse.equinox.p2.director, org.eclipse.equinox.p2.garbagecollector.application, org.eclipse.equinox.p2.publisher.InstallPublisher, org.eclipse.equinox.p2.publisher.EclipseGenerator, org.eclipse.equinox.p2.publisher.ProductPublisher, org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher, org.eclipse.equinox.p2.reconciler.application, org.eclipse.equinox.p2.repository.repo2runnable, org.eclipse.equinox.p2.repository.metadataverifier, org.eclipse.equinox.p2.artifact.repository.mirrorApplication, org.eclipse.equinox.p2.metadata.repository.mirrorApplication, org.eclipse.equinox.p2.updatesite.UpdateSitePublisher, org.eclipse.equinox.p2.publisher.UpdateSitePublisher, org.eclipse.equinox.p2.publisher.CategoryPublisher, org.eclipse.help.base.infocenterApplication, org.eclipse.help.base.helpApplication, org.eclipse.help.base.indexTool, org.eclipse.jdt.apt.core.aptBuild, org.eclipse.jdt.core.JavaCodeFormatter, org.eclipse.jdt.core.JavaIndexer, org.eclipse.pde.build.Build, org.eclipse.pde.junit.runtime.uitestapplication, org.eclipse.pde.junit.runtime.legacytestapplication, org.eclipse.pde.junit.runtime.coretestapplication, org.eclipse.pde.junit.runtime.coretestapplicationnonmain, org.eclipse.pde.junit.runtime.nonuithreadtestapplication, org.eclipse.ui.ide.workbench.
at org.eclipse.equinox.internal.app.EclipseAppContainer.startDefaultApp(EclipseAppContainer.java:248)
at org.eclipse.equinox.internal.app.MainApplicationLauncher.run(MainApplicationLauncher.java:29)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
Re: Mvn Runner Problem [message #1699248 is a reply to message #1694092] Mon, 22 June 2015 22:48 Go to previous messageGo to next message
Guillermo Cancino is currently offline Guillermo CancinoFriend
Messages: 11
Registered: April 2015
Junior Member
Hi
I download the Test Runne and I can see a folder with these directories
Eclipse
/configuration
/features
/p2
/plugins

but what is the next step to follow?
Regards
Re: Mvn Runner Problem [message #1699263 is a reply to message #1699248] Tue, 23 June 2015 07:03 Go to previous messageGo to next message
Chris Champion is currently offline Chris ChampionFriend
Messages: 49
Registered: February 2014
Member
Hi Guillermo,

Have you seen this page?
https://www.eclipse.org/rcptt/documentation/userguide/runner/arguments/

I used the runner.cmd sample script under Quick Start. You just have to give the path of wherever you put the runner's eclipse folder next to SET RUNNER, e.g. SET RUNNER=D:\RCPTT\runner\eclipse\
Re: Mvn Runner Problem [message #1699457 is a reply to message #1699248] Wed, 24 June 2015 12:41 Go to previous messageGo to next message
Michel Wojdaszka is currently offline Michel WojdaszkaFriend
Messages: 4
Registered: June 2015
Junior Member
Hi,

I had same issue as you and the documentation is not so clear.
But I found the solution after you download test Runner :
Open the plugin directory and get the path for the launcher : c:\...\Runner\eclipse\plugins\org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar
Set in your file.cmd : SET RUNNER=c:\...\Runner\eclipse\plugins\org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar

The command : java -jar %RUNNER% -application org.eclipse.rcptt.runner.headless
should work.

Hope that help you. Razz
Re: Mvn Runner Problem [message #1700888 is a reply to message #1699457] Tue, 07 July 2015 21:05 Go to previous message
Guillermo Cancino is currently offline Guillermo CancinoFriend
Messages: 11
Registered: April 2015
Junior Member
Hi everyone, I solved the problem with org.eclipse.rcptt.runner.headless but now the mvn log show me the next error
If anybody knows I appreciate that tell me
Thanks

org.eclipse.core.runtime.CoreException: Problems occurred getting the plug-ins in this container
at org.eclipse.rcptt.launching.target.TargetPlatformManager.throwOnError(TargetPlatformManager.java:50)
at org.eclipse.rcptt.launching.target.TargetPlatformManager.createTargetPlatform(TargetPlatformManager.java:84)
at org.eclipse.rcptt.internal.launching.ext.Q7TargetPlatformManager.createTargetPlatform(Q7TargetPlatformManager.java:126)
at org.eclipse.rcptt.runner.util.TargetPlatformChecker.initializeTargetPlatform(TargetPlatformChecker.java:112)
at org.eclipse.rcptt.runner.util.TargetPlatformChecker.initAndCheckTargetPlatform(TargetPlatformChecker.java:70)
at org.eclipse.rcptt.runner.HeadlessRunner.performCoolThings(HeadlessRunner.java:48)
at org.eclipse.rcptt.runner.HeadlessRunnerApp.start(HeadlessRunnerApp.java:54)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:669)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:608)
at org.eclipse.equinox.launcher.Main.run(Main.java:1515)
at org.eclipse.equinox.launcher.Main.main(Main.java:1488)
Previous Topic:Get Parent Control
Next Topic:How to set relative path in ECL
Goto Forum:
  


Current Time: Tue Apr 23 10:07:20 GMT 2024

Powered by FUDForum. Page generated in 0.06183 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top