|
|
|
|
|
|
|
|
|
|
|
Re: Access restriction: The field 'XXX' is not API (restriction on required lib XXX) [message #1723069 is a reply to message #1719063] |
Thu, 11 February 2016 11:14 |
Jannik Malken Messages: 44 Registered: October 2015 |
Member |
|
|
To hold this thread up to date and maybe get some additional help:
I sent Matthias my workspace and he could reproduce the same restriction erros on his system. Unlike me he somehow managed to get the project running by creating a scout project from scratch and moving over my workspace content.
At this point I want to thank him again for his efforts!
Unfortunately this hasn't helped me so far. No matter what I did, there where always serveral restriction access errors.
I tried the common solutions I found for those kinds of errors like readding the JRE library, changing the order of the plugin dependencies, set forbidden reference signal from error to warning, setup new projects in new workspaces, tried various target definitions etc., but the right combination was obviously not among them.
I promised myself the most of getting the workspace that Matthias sent me running, because I know it already worked on his system.
When I start a eclipse scout instance in this workspace the target definition doesn't work, because the "scout_rap_target" configured there points to a directory on Matthias' system. To get rid of it I changed it to point to the folder "rap_target" in my eclipse installation directory to look like this:
Does anyone know, what to do next? I don't want to mess this workspace up too by doing something I'm not completely familiar with. So I hope for some advice. I have other workspaces and projects I can tinker with
[Updated on: Thu, 11 February 2016 11:16] Report message to a moderator
|
|
|
|
Re: Access restriction: The field 'XXX' is not API (restriction on required lib XXX) [message #1723112 is a reply to message #1723093] |
Thu, 11 February 2016 17:51 |
Jannik Malken Messages: 44 Registered: October 2015 |
Member |
|
|
Yeah, I already did that. This is what you see on the screenshot.
And in another project I created a target file like this, which is pretty much the same as in your demo target:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?pde version="3.8"?><target name="elasticsearchviewer" sequenceNumber="55">
<locations>
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="slicer" includeSource="true" type="InstallableUnit">
<unit id="org.eclipse.equinox.executable.feature.group" version="0.0.0"/>
<unit id="org.eclipse.equinox.sdk.feature.group" version="0.0.0"/>
<unit id="org.eclipse.equinox.server.jetty.feature.group" version="0.0.0"/>
<unit id="org.eclipse.platform.feature.group" version="0.0.0"/>
<unit id="org.eclipse.platform.source.feature.group" version="0.0.0"/>
<unit id="org.eclipse.emf.ecore.feature.group" version="0.0.0"/>
<unit id="org.eclipse.emf.common.feature.group" version="0.0.0"/>
<unit id="org.eclipse.mylyn.wikitext_feature.feature.group" version="0.0.0"/>
<repository location="http://download.eclipse.org/releases/mars"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="slicer" includeSource="true" type="InstallableUnit">
<unit id="org.eclipse.scout.rt.source.feature.group" version="0.0.0"/>
<unit id="org.eclipse.scout.rt.rap.source.feature.group" version="0.0.0"/>
<unit id="org.eclipse.scout.rt.rap.testing.source.feature.group" version="0.0.0"/>
<unit id="org.eclipse.scout.rt.testing.source.feature.group" version="0.0.0"/>
<unit id="org.eclipse.scout.rt.spec.source.feature.group" version="0.0.0"/>
<repository location="http://download.eclipse.org/scout/releases/5.0"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="slicer" includeSource="true" type="InstallableUnit">
<unit id="org.eclipse.rap.feature.feature.group" version="0.0.0"/>
<unit id="org.eclipse.rap.equinox.target.feature.feature.group" version="0.0.0"/>
<repository location="http://download.eclipse.org/rt/rap/3.0"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="slicer" includeSource="true" type="InstallableUnit">
<unit id="org.apache.commons.logging" version="1.1.1.v201101211721"/>
<unit id="org.apache.commons.logging.source" version="1.1.1.v201101211721"/>
<unit id="org.apache.httpcomponents.httpclient" version="4.2.6.v201311072007"/>
<unit id="org.apache.httpcomponents.httpclient.source" version="4.2.6.v201311072007"/>
<unit id="org.apache.httpcomponents.httpcore" version="4.2.5.v201311072007"/>
<unit id="org.apache.httpcomponents.httpcore.source" version="4.2.5.v201311072007"/>
<unit id="org.apache.commons.codec" version="1.6.0.v201305230611"/>
<unit id="org.apache.commons.codec.source" version="1.6.0.v201305230611"/>
<unit id="org.junit" version="4.11.0.v201303080030"/>
<unit id="org.junit.source" version="4.11.0.v201303080030"/>
<unit id="org.hamcrest.core" version="1.3.0.v201303031735"/>
<unit id="org.hamcrest.core.source" version="1.3.0.v201303031735"/>
<unit id="org.jsoup" version="1.7.2.v201411291515"/>
<unit id="com.thoughtworks.selenium" version="2.25.0.v201212071504"/>
<unit id="com.thoughtworks.selenium.source" version="2.25.0.v201212071504"/>
<unit id="com.google.guava" version="15.0.0.v201403281430"/>
<unit id="com.google.guava.source" version="15.0.0.v201403281430"/>
<repository location="http://download.eclipse.org/tools/orbit/downloads/drops/R20150519210750/repository/"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="slicer" includeSource="true" type="InstallableUnit">
<unit id="org.mockito.mockito-all" version="0.0.0"/>
<repository location="http://download.eclipse.org/scout/releases/4.0/testing"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="slicer" includeSource="true" type="InstallableUnit">
<unit id="com.bsiag.scout.rt.ui.swing.laf.rayo.source.feature.group" version="0.0.0"/>
<repository location="http://tools.bsiag.com/marketplace/rayo/5.0/"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="slicer" includeSource="true" type="InstallableUnit">
<unit id="org.eclipse.scout.docx4j.core.source.feature.group" version="0.0.0"/>
<unit id="org.eclipse.scout.rt.docx4j.client.source.feature.group" version="0.0.0"/>
<unit id="org.eclipse.scout.docx4j.libs.feature.group" version="0.0.0"/>
<repository location="http://tools.bsiag.com/marketplace/docx4j/5.0/"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="slicer" includeSource="true" type="InstallableUnit">
<unit id="org.eclipse.scout.logging.bridges.source.feature.group" version="0.0.0"/>
<repository location="http://tools.bsiag.com/marketplace/logging_bridge/5.0/"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="slicer" includeSource="true" type="InstallableUnit">
<unit id="org.eclipse.scout.rt.server.rabbitmq.source.feature.group" version="0.0.0"/>
<unit id="org.eclipse.scout.rt.server.activemq.source.feature.group" version="0.0.0"/>
<unit id="org.eclipse.scout.rt.server.redis.source.feature.group" version="0.0.0"/>
<unit id="org.eclipse.scout.rt.server.memcached.source.feature.group" version="0.0.0"/>
<repository location="http://tools.bsiag.com/marketplace/cloud/5.0"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="slicer" includeSource="true" type="InstallableUnit">
<unit id="com.bsiag.scout.rt.server.jdbc.mysql5117.source.feature.group" version="0.0.0"/>
<repository location="http://tools.bsiag.com/marketplace/jdbc/5.0"/>
</location>
</locations>
<targetJRE path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.8.0_73"/>
<launcherArgs>
<vmArgs>-Xms256m -Xmx512m</vmArgs>
</launcherArgs>
</target>
[Updated on: Thu, 11 February 2016 18:01] Report message to a moderator
|
|
|
|
|
|
|
Re: Access restriction: The field 'XXX' is not API (restriction on required lib XXX) [message #1723431 is a reply to message #1723162] |
Mon, 15 February 2016 15:51 |
Jannik Malken Messages: 44 Registered: October 2015 |
Member |
|
|
With Matthias' help I found out, why I couldn't get his workspace running on my system. As you see on one of the previous screenshots, the problem was that the 'eclipse_home' target couldn't resolve any plugins, although the directory it pointed to was fine.
I found out that in the target file it was declared as a location of the type 'Directory' instead of 'Profile'.
So I deleted and readded it with the target editor via
'Add...'->select 'Installation'->'Next >'->'Variables...'->select 'eclipse_home'->'OK'->'Finish'.
This should produce the location entry
<location path="${eclipse_home}" type="Profile"/>
in the traget file.
After these fixes the workspace was running without errors. My old workspace still doesn't work with the same target file and the same eclipse installation. I don't know what's going wrong.
It would be great If I could get my old workspace running again, as there is a git repository and some other documents which I would have to carefully move over to the new workspace potentially causing new errors.
Matthias recommended to spend not too much time for the target issues and trying to migrate to Scout Neon instead. I'm not sure whether this would be sufficient for me, as I rely on a (standalone ) desktop build of my application. My latest information is that there will no longer be a desktop renderer in Scout Neon.
[Updated on: Mon, 15 February 2016 16:45] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.05577 seconds