Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » RAP dependencies hell
RAP dependencies hell [message #1791506] Sun, 01 July 2018 11:31 Go to next message
Vincent Steyer is currently offline Vincent SteyerFriend
Messages: 1
Registered: July 2018
Junior Member
Hello, I'm still very new in RAP and I'm trying to build a EMF/RAP project.

I have start from a very basic EMF project on an Oxygen, and trying to install RAP on it. I have succed to create a target platform with no error by joining the eclipse-home in it. I succed to launch the demo mail plugin project.

But when I launch my project (with an EMF part) i have :

lipse.ui 4 4 2018-07-01 13:02:33.052
!MESSAGE Unable to load UI activator
!STACK 0
java.lang.IllegalStateException: Cannot transition to the state "STARTED" while already in the process of transition to the following states: [STARTED]
at org.eclipse.osgi.container.Module.lockStateChange(Module.java:332)
at org.eclipse.osgi.container.Module.start(Module.java:401)

and my web page only show :

Problem accessing /mywebpage. Reason:
ProxyServlet: /mywebpage

I suppose it is a issue with the bunddle list to include in the launch config, but i dont know how to complete it.

here is my current launch config :
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration type="org.eclipse.rap.ui.launch.RAPLauncher">
<setAttribute key="additional_plugins">
<setEntry value="com.ibm.icu.base:58.2.0.v20170418-1837:default:true"/>
<setEntry value="org.apache.felix.gogo.command:0.10.0.v201209301215:default:false"/>
<setEntry value="org.apache.felix.gogo.runtime:0.10.0.v201209301036:default:false"/>
<setEntry value="org.apache.felix.gogo.shell:0.10.0.v201212101605:default:false"/>
<setEntry value="org.eclipse.core.commands.source:3.9.0.v20170530-1048:default:true"/>
<setEntry value="org.eclipse.core.commands:3.9.0.v20170530-1048:default:true"/>
<setEntry value="org.eclipse.core.contenttype:3.6.0.v20170207-1037:default:true"/>
<setEntry value="org.eclipse.core.databinding.beans:1.4.0.v20170210-0856:default:true"/>
<setEntry value="org.eclipse.core.databinding.observable:1.6.100.v20170515-1119:default:true"/>
<setEntry value="org.eclipse.core.databinding.property:1.6.100.v20170515-1119:default:true"/>
<setEntry value="org.eclipse.core.databinding:1.6.100.v20170515-1119:default:true"/>
<setEntry value="org.eclipse.core.expressions:3.6.0.v20170207-1037:default:true"/>
<setEntry value="org.eclipse.core.jobs:3.9.3.v20180115-1757:default:true"/>
<setEntry value="org.eclipse.core.runtime:3.13.0.v20170207-1030:default:true"/>
<setEntry value="org.eclipse.e4.ui.bindings:0.12.1.v20170823-1632:default:true"/>
<setEntry value="org.eclipse.e4.ui.workbench.addons.swt.source:1.3.1.v20170319-1442:default:true"/>
<setEntry value="org.eclipse.e4.ui.workbench.addons.swt:1.3.1.v20170319-1442:default:true"/>
<setEntry value="org.eclipse.e4.ui.workbench.renderers.swt.source:0.14.102.v20180117-1153:default:true"/>
<setEntry value="org.eclipse.e4.ui.workbench.renderers.swt:0.14.102.v20180117-1153:default:true"/>
<setEntry value="org.eclipse.e4.ui.workbench.source:1.5.1.v20170815-1446:default:true"/>
<setEntry value="org.eclipse.e4.ui.workbench.swt.source:0.14.101.v20170710-1119:default:true"/>
<setEntry value="org.eclipse.e4.ui.workbench.swt:0.14.101.v20170710-1119:default:true"/>
<setEntry value="org.eclipse.equinox.app:1.3.400.v20150715-1528:default:true"/>
<setEntry value="org.eclipse.equinox.common:3.9.0.v20170207-1454:default:true"/>
<setEntry value="org.eclipse.equinox.console:1.1.300.v20170512-2111:default:true"/>
<setEntry value="org.eclipse.equinox.ds:1.5.0.v20170307-1429:default:true"/>
<setEntry value="org.eclipse.equinox.http.jetty:3.4.0.v20170503-2025:default:true"/>
<setEntry value="org.eclipse.equinox.http.servlet:1.4.0.v20170524-1452:default:true"/>
<setEntry value="org.eclipse.equinox.preferences:3.7.0.v20170126-2132:default:true"/>
<setEntry value="org.eclipse.equinox.registry:3.7.0.v20170222-1344:default:false"/>
<setEntry value="org.eclipse.equinox.util:1.0.500.v20130404-1337:default:true"/>
<setEntry value="org.eclipse.jetty.continuation:9.4.8.v20171121:default:true"/>
<setEntry value="org.eclipse.jetty.http:9.4.8.v20171121:default:true"/>
<setEntry value="org.eclipse.jetty.io:9.4.8.v20171121:default:true"/>
<setEntry value="org.eclipse.jetty.security:9.4.8.v20171121:default:true"/>
<setEntry value="org.eclipse.jetty.server:9.4.8.v20171121:default:true"/>
<setEntry value="org.eclipse.jetty.servlet:9.4.8.v20171121:default:true"/>
<setEntry value="org.eclipse.jetty.util:9.4.8.v20171121:default:true"/>
<setEntry value="org.eclipse.osgi.services:3.6.0.v20170228-1906:default:true"/>
<setEntry value="org.eclipse.osgi:3.12.100.v20180210-1608:default:true"/>
<setEntry value="org.eclipse.rap.jface.databinding:3.4.0.20171017-0945:default:true"/>
<setEntry value="org.eclipse.rap.jface:3.4.0.20171018-1122:default:true"/>
<setEntry value="org.eclipse.rap.rwt.osgi:3.4.0.20171017-0945:default:true"/>
<setEntry value="org.eclipse.rap.rwt:3.4.0.20171130-0837:default:true"/>
<setEntry value="org.eclipse.rap.ui.forms:3.4.0.20171017-0945:default:true"/>
<setEntry value="org.eclipse.rap.ui.views:3.4.0.20171017-0945:default:true"/>
<setEntry value="org.eclipse.rap.ui.workbench:3.4.0.20171017-0945:default:true"/>
<setEntry value="org.eclipse.rap.ui:3.4.0.20171017-0945:default:false"/>
</setAttribute>
<booleanAttribute key="append.args" value="true"/>
<booleanAttribute key="askclear" value="false"/>
<booleanAttribute key="automaticAdd" value="false"/>
<booleanAttribute key="automaticValidate" value="true"/>
<stringAttribute key="bootstrap" value=""/>
<stringAttribute key="checked" value="[NONE]"/>
<booleanAttribute key="clearConfig" value="false"/>
<booleanAttribute key="clearws" value="false"/>
<stringAttribute key="configLocation" value="${workspace_loc}/.metadata/.plugins/org.eclipse.pde.core/alfred.wm.web2"/>
<booleanAttribute key="default" value="false"/>
<booleanAttribute key="default_auto_start" value="true"/>
<intAttribute key="default_start_level" value="4"/>
<stringAttribute key="featureDefaultLocation" value="workspace"/>
<stringAttribute key="featurePluginResolution" value="workspace"/>
<booleanAttribute key="includeOptional" value="false"/>
<booleanAttribute key="org.eclipse.debug.core.appendEnvironmentVariables" value="true"/>
<listAttribute key="org.eclipse.debug.ui.favoriteGroups">
<listEntry value="org.eclipse.debug.ui.launchGroup.debug"/>
<listEntry value="org.eclipse.debug.ui.launchGroup.run"/>
</listAttribute>
<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl} -console -consolelog"/>
<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.pde.ui.workbenchClasspathProvider"/>
<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Declipse.ignoreApp=true -Dosgi.noShutdown=true -Dorg.eclipse.equinox.http.jetty.log.stderr.threshold=info"/>
<stringAttribute key="org.eclipse.rap.launch.browserMode" value="EXTERNAL"/>
<stringAttribute key="org.eclipse.rap.launch.contextpath" value="/"/>
<stringAttribute key="org.eclipse.rap.launch.dataLocation" value="${workspace_loc}/.metadata/.plugins/org.eclipse.rap.tools.launch/alfred.wm.web2"/>
<booleanAttribute key="org.eclipse.rap.launch.developmentMode" value="true"/>
<booleanAttribute key="org.eclipse.rap.launch.openBrowser" value="true"/>
<intAttribute key="org.eclipse.rap.launch.port" value="10080"/>
<stringAttribute key="org.eclipse.rap.launch.servletPath" value="/mail2"/>
<intAttribute key="org.eclipse.rap.launch.sessionTimeout" value="10"/>
<booleanAttribute key="org.eclipse.rap.launch.terminatePrevious" value="true"/>
<booleanAttribute key="org.eclipse.rap.launch.useDefaultDataLocation" value="true"/>
<booleanAttribute key="org.eclipse.rap.launch.useManualContextPath" value="false"/>
<booleanAttribute key="org.eclipse.rap.launch.useManualPort" value="false"/>
<booleanAttribute key="org.eclipse.rap.launch.useSessionTimeout" value="true"/>
<stringAttribute key="pde.version" value="3.3"/>
<setAttribute key="selected_features">
<setEntry value="alfred.mw.feature:default"/>
</setAttribute>
<booleanAttribute key="show_selected_only" value="true"/>
<stringAttribute key="target_bundles" value="com.ibm.icu.base@default:default,javax.annotation@default:default,javax.inject@default:default,javax.servlet*3.0.0.v201112011016@default:default,javax.servlet*3.1.0.v201410161800@default:default,javax.xml@default:default,org.apache.batik.css*1.8.0.v20170214-1941@default:default,org.apache.batik.util*1.8.0.v20170214-1941@default:default,org.apache.commons.jxpath@default:default,org.apache.felix.gogo.command@default:default,org.apache.felix.gogo.runtime@default:default,org.apache.felix.gogo.shell@default:default,org.eclipse.core.commands@default:default,org.eclipse.core.contenttype@default:default,org.eclipse.core.databinding.beans@default:default,org.eclipse.core.databinding.observable@default:default,org.eclipse.core.databinding.property@default:default,org.eclipse.core.databinding@default:default,org.eclipse.core.expressions@default:default,org.eclipse.core.jobs@default:default,org.eclipse.core.runtime@default:true,org.eclipse.e4.core.commands@default:default,org.eclipse.e4.core.contexts@default:default,org.eclipse.e4.core.di.annotations@default:default,org.eclipse.e4.core.di.extensions.supplier@default:default,org.eclipse.e4.core.di.extensions@default:default,org.eclipse.e4.core.di@default:default,org.eclipse.e4.core.services@default:default,org.eclipse.e4.emf.xpath@default:default,org.eclipse.e4.ui.bindings@default:default,org.eclipse.e4.ui.css.core@default:default,org.eclipse.e4.ui.css.swt.theme@default:default,org.eclipse.e4.ui.css.swt@default:default,org.eclipse.e4.ui.di@default:default,org.eclipse.e4.ui.model.workbench@default:default,org.eclipse.e4.ui.services@default:default,org.eclipse.e4.ui.widgets@default:default,org.eclipse.e4.ui.workbench.addons.swt@default:default,org.eclipse.e4.ui.workbench.renderers.swt@default:default,org.eclipse.e4.ui.workbench.swt@default:default,org.eclipse.e4.ui.workbench3@default:default,org.eclipse.e4.ui.workbench@default:default,org.eclipse.emf.common@default:default,org.eclipse.emf.ecore.change@default:default,org.eclipse.emf.ecore.xmi@default:default,org.eclipse.emf.ecore@default:default,org.eclipse.equinox.app@default:default,org.eclipse.equinox.common@2:true,org.eclipse.equinox.console@default:default,org.eclipse.equinox.http.jetty@default:default,org.eclipse.equinox.http.registry@default:default,org.eclipse.equinox.http.servlet@default:default,org.eclipse.equinox.preferences@default:default,org.eclipse.equinox.registry@default:default,org.eclipse.help@default:default,org.eclipse.jetty.continuation@default:default,org.eclipse.jetty.http@default:default,org.eclipse.jetty.io@default:default,org.eclipse.jetty.security@default:default,org.eclipse.jetty.server@default:default,org.eclipse.jetty.servlet@default:default,org.eclipse.jetty.util@default:default,org.eclipse.jface.databinding@default:default,org.eclipse.jface@default:default,org.eclipse.osgi.compatibility.state@default:false,org.eclipse.osgi.services@default:default,org.eclipse.osgi.util@default:default,org.eclipse.osgi@-1:true,org.eclipse.rap.design.example@default:default,org.eclipse.rap.jface.databinding@default:default,org.eclipse.rap.jface@default:default,org.eclipse.rap.rwt.osgi@default:default,org.eclipse.rap.rwt@default:default,org.eclipse.rap.ui.forms@default:default,org.eclipse.rap.ui.views@default:default,org.eclipse.rap.ui.workbench@default:default,org.eclipse.rap.ui@default:default,org.eclipse.swt.win32.win32.x86_64@default:false,org.eclipse.swt@default:default,org.eclipse.ui.trace@default:default,org.eclipse.ui.workbench@default:default,org.eclipse.ui@default:default,org.w3c.css.sac@default:default"/>
<booleanAttribute key="tracing" value="false"/>
<booleanAttribute key="useCustomFeatures" value="true"/>
<booleanAttribute key="useDefaultConfigArea" value="true"/>
<stringAttribute key="workspace_bundles" value="alfred.wm.web@default:default"/>
</launchConfiguration>

I try to transfert all my project in a photon eclipse workspace, to have the last version of things, and maybe easier configuration... I download the "EMF" photon eclipse, and have some issue to deploy RAP on it, fromthe RAP on the marketplace. When I try to automatically installing the target version, I got this error :

Problems occurred while resolving the target contents
Problems loading repositories
Unable to locate installable unit org.eclipse.rap.feature.feature.group 3.5.0.20180613-1038
Unable to locate installable unit org.eclipse.rap.sdk.feature.feature.group 3.5.0.20180613-1038
Unable to locate installable unit org.eclipse.rap.examples.feature.feature.group 3.5.0.20180509-0908
Unable to locate installable unit org.eclipse.rap.equinox.target.feature.feature.group 3.5.0.20180613-1200

I switch on the special photon version for rcp and rap and trying to install all other feature I need (EMF and things like that...). I have succed to have my projects with no errors by putting the eclipse home in in the target platform, but when i launch my project, i always have the webpage :

Problem accessing /mywebpage. Reason:
ProxyServlet: /mywebpage

I have no error like with the Oxygen version, but the same result. I Try to deploy the RAP Workbench Demo project, but with the worst result: "Page Web introuvable" and in the console everything seems to be good :
osgi> 2018-07-01 13:23:48.325:INFO::Start Level: Equinox Container: cb33fe7a-9ab4-4014-be14-08e95555b316: Logging initialized @1475ms to org.eclipse.jetty.util.log.StdErrLog
2018-07-01 13:23:48.513:INFO:oejs.Server:Start Level: Equinox Container: cb33fe7a-9ab4-4014-be14-08e95555b316: jetty-9.4.10.v20180503; built: 2018-05-03T15:56:21.710Z; git: daa59876e6f384329b122929e70a80934569428c; jvm 1.8.0_144-b01
2018-07-01 13:23:48.537:INFO:oejs.session:Start Level: Equinox Container: cb33fe7a-9ab4-4014-be14-08e95555b316: DefaultSessionIdManager workerName=node0
2018-07-01 13:23:48.537:INFO:oejs.session:Start Level: Equinox Container: cb33fe7a-9ab4-4014-be14-08e95555b316: No SessionScavenger set, using defaults
2018-07-01 13:23:48.538:INFO:oejs.session:Start Level: Equinox Container: cb33fe7a-9ab4-4014-be14-08e95555b316: node0 Scavenging every 660000ms
2018-07-01 13:23:48.574:INFO:oejsh.ContextHandler:Start Level: Equinox Container: cb33fe7a-9ab4-4014-be14-08e95555b316: Started o.e.j.s.ServletContextHandler@3608e8ba{/workbench,null,AVAILABLE}
2018-07-01 13:23:48.594:INFO:oejs.AbstractConnector:Start Level: Equinox Container: cb33fe7a-9ab4-4014-be14-08e95555b316: Started ServerConnector@48dc9690{HTTP/1.1,[http/1.1]}{0.0.0.0:55701}
2018-07-01 13:23:48.595:INFO:oejs.Server:Start Level: Equinox Container: cb33fe7a-9ab4-4014-be14-08e95555b316: Started @1746ms


Could someone help me ? it is a bundle list issue ? something else ?

Thanks for your time

Re: RAP dependencies hell [message #1791564 is a reply to message #1791506] Mon, 02 July 2018 14:35 Go to previous message
Vincenzo Caselli is currently offline Vincenzo CaselliFriend
Messages: 210
Registered: January 2012
Senior Member

Hi Vincent,
I would suggest to use the RAP/EMF Target Platform (and launch) provided by EMF Parsley project.

Steps are very simple:

- from main Eclipse update site (Help, Install New Software, then from drop down choose "Oxygen - http://download.eclipse.org/releases/oxygen"), from "Modeling" Category, install "EMF Parsley SDK"

- after restart, File, New, Example, EMF Parsley RAP Target Platform Example

- open "emf-parsely-rap.target", wait for target materialization, then (when status bar stops showing "Resolving ...") click on "Set as Active Target Platform" on the upper part of the view

- open your project using this target

- if you have still errors it may be that your launch is missing some plugin; in this case do: File, New, Example, EMF Parsley RAP Example; this will create an EMF/RAP sample project with a .launch that you can compare with yours.

HTH
Vincenzo

[Updated on: Mon, 02 July 2018 14:57]

Report message to a moderator

Previous Topic:Tycho and JUnit
Next Topic:Eclipse 4 dynamic menu: direct menu item or handler are not executed
Goto Forum:
  


Current Time: Tue Sep 25 04:45:11 GMT 2018

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

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

Back to the top