Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » The alias '/rwt-resources' is already in use.
The alias '/rwt-resources' is already in use. [message #1091355] Wed, 21 August 2013 11:49 Go to next message
Rene Richter is currently offline Rene RichterFriend
Messages: 13
Registered: May 2013
Junior Member
Hey,

I'm running into the error message, shown in the title when launching an emf editor in RAP.
The problem is reproducible quite easily:
Im running Eclipse Kepler with RAP 2.1. An EntryPoint Extension, pointing to my IApplication implementation is added to the manifest and the launch configuration is just adjusted in terms of the servlet path (e.g. EntryPointPath?startup=ApplicationID)

Attempts to solve this problem:
- It seems that the most simple solution is to set a custom contextPath in the launch configuration. But that doesn't show any effect.

- The RAP/FAQ suggest a simple solution under 5.3. Unfortunately I don't know whether I am doing something wrong, but the application configuration seems to be called long after the error is thrown.

For both solutions, the contextName is null when debugging the ApplicationLauncherImpl.

Can anyone reproduce this problem?
I would appreciate any help and thank you in advance.

Re: The alias '/rwt-resources' is already in use. [message #1091409 is a reply to message #1091355] Wed, 21 August 2013 13:14 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 1860
Registered: July 2009
Senior Member
Hi Rene,
please attach your plugin.xml (where entrypoints/application extensions
are specified). Do you have second application registered on the same
servlet path?
Best,
Ivan

On 8/21/2013 2:49 PM, Rene Richter wrote:
> Hey,
>
> I'm running into the error message, shown in the title when launching
> an emf editor in RAP.
> The problem is reproducible quite easily:
> Im running Eclipse Kepler with RAP 2.1. An EntryPoint Extension,
> pointing to my IApplication implementation is added to the manifest
> and the launch configuration is just adjusted in terms of the servlet
> path (e.g. EntryPointPath?startup=ApplicationID)
> Attempts to solve this problem:
> - It seems that the most simple solution is to set a custom
> contextPath in the launch configuration. But that doesn't show any
> effect.
>
> - The RAP/FAQ suggest a simple solution under 5.3. Unfortunately I
> don't know whether I am doing something wrong, but the application
> configuration seems to be called long after the error is thrown.
>
> For both solutions, the contextName is null when debugging the
> ApplicationLauncherImpl.
>
> Can anyone reproduce this problem?
> I would appreciate any help and thank you in advance.
>
>

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: The alias '/rwt-resources' is already in use. [message #1091431 is a reply to message #1091409] Wed, 21 August 2013 13:44 Go to previous messageGo to next message
Rene Richter is currently offline Rene RichterFriend
Messages: 13
Registered: May 2013
Junior Member
Hey,

Thank you for this quick reply!

I'm not aware of running any other applications registered on the same servlet path.
Anyway, I'm running a workbench application. Could that be a useful hint?


<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?>

<!--
-->

<plugin>

   <extension
         point="org.eclipse.core.runtime.applications"
         id="StructuredMetricsMetamodelEditorAdvisorApplication">
      <!-- @generated StructuredMetricsMetamodel -->
      <application>
         <run class="org.modelbus.metrino.measure.editor.presentation.StructuredMetricsMetamodelEditorAdvisor$Application"/>
      </application>
   </extension>

   <extension point="org.eclipse.ui.perspectives">
      <!-- @generated StructuredMetricsMetamodel -->
      <perspective
            name="%_UI_Perspective_label"
            class="org.modelbus.metrino.measure.editor.presentation.StructuredMetricsMetamodelEditorAdvisor$Perspective"
            id="StructuredMetricsMetamodel.presentation.StructuredMetricsMetamodelEditorAdvisorPerspective">
      </perspective>
   </extension>

   <extension point="org.eclipse.ui.commands">
      <!-- @generated StructuredMetricsMetamodel -->
      <command
            name="%_UI_Menu_OpenURI_label"
            description="%_UI_Menu_OpenURI_description"
            categoryId="org.eclipse.ui.category.file"
            id="StructuredMetricsMetamodel.presentation.StructuredMetricsMetamodelEditorAdvisorOpenURICommand"/>
   </extension>


   <extension point="org.eclipse.ui.actionSets">
      <!-- @generated StructuredMetricsMetamodel -->
      <actionSet
            label="%_UI_StructuredMetricsMetamodelEditorAdvisor_ActionSet_label"
            visible="true"
            id="StructuredMetricsMetamodelEditorAdvisorActionSet">
         <action
               label="%_UI_Menu_About_label"
               class="org.modelbus.metrino.measure.editor.presentation.StructuredMetricsMetamodelEditorAdvisor$AboutAction"
               menubarPath="help/additions"
               id="StructuredMetricsMetamodel.presentation.StructuredMetricsMetamodelEditorAdvisorAboutAction"/>
         <action
               label="%_UI_Menu_OpenURI_label"
               definitionId="StructuredMetricsMetamodel.presentation.StructuredMetricsMetamodelEditorAdvisorOpenURICommand"
               class="org.modelbus.metrino.measure.editor.presentation.StructuredMetricsMetamodelEditorAdvisor$OpenURIAction"
               menubarPath="file/additions"
               id="StructuredMetricsMetamodel.presentation.StructuredMetricsMetamodelEditorAdvisorOpenURIAction"/>
      </actionSet>
   </extension>

   <extension point="org.eclipse.ui.actionSets">
      <!-- @generated StructuredMetricsMetamodel -->
      <actionSet
            label="%_UI_StructuredMetricsMetamodelModelWizard_ActionSet_label"
            visible="true"
            id="StructuredMetricsMetamodel.presentation.StructuredMetricsMetamodelActionBarContributorActionSet">
         <action
               label="%_UI_StructuredMetricsMetamodelModelWizard_label"
               class="org.modelbus.metrino.measure.editor.presentation.StructuredMetricsMetamodelActionBarContributor$NewAction"
               menubarPath="file/new/additions"
               id="StructuredMetricsMetamodel.presentation.StructuredMetricsMetamodelActionBarContributorNewAction"/>
      </actionSet>
   </extension>

   <extension point="org.eclipse.ui.editors">
      <!-- @generated StructuredMetricsMetamodel -->
      <editor
            id="StructuredMetricsMetamodel.presentation.StructuredMetricsMetamodelEditorID"
            name="%_UI_StructuredMetricsMetamodelEditor_label"
            icon="icons/full/obj16/StructuredMetricsMetamodelModelFile.gif"
            extensions="smm"
            class="org.modelbus.metrino.measure.editor.presentation.StructuredMetricsMetamodelEditor"
            contributorClass="org.modelbus.metrino.measure.editor.presentation.StructuredMetricsMetamodelActionBarContributor">
      </editor>
      <editor
            class="org.modelbus.metrino.measure.editor.helper.OCLEditor"
            contributorClass="org.modelbus.metrino.measure.editor.presentation.StructuredMetricsMetamodelActionBarContributor"
            default="false"
            extensions=".txt"
            id="org.modelbus.metrino.measure.editor.oclEditor"
            name="OCL Editor">
      </editor>
   </extension>
   <extension
         point="org.eclipse.rap.ui.entrypoint">
      <entrypoint
            applicationId="org.modelbus.metrino.measure.editor.StructuredMetricsMetamodelEditorAdvisorApplication"
            id="org.modelbus.metrino.measure.editor.MetrinoEntrypoint"
            path="/metrinoEntrypoint">
      </entrypoint>
   </extension>
   <extension
         point="org.eclipse.ui.views">
      <view
            class="org.modelbus.metrino.measure.editor.presentation.ModelbusExplorerView"
            id="org.modelbus.metrino.measure.editor.presentation.ModelbusExplorerView"
            name="Explorer"
            restorable="true">
      </view>
   </extension>

</plugin>


the plugin.xml is generated and only customized in terms of the entrypoint definition.
Re: The alias '/rwt-resources' is already in use. [message #1091516 is a reply to message #1091431] Wed, 21 August 2013 16:10 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 1860
Registered: July 2009
Senior Member
Hi Rene,
for me your plugin.xml looks fine. You mentioned something about
application configuration??!! Do you have additional application
configuration or you mean the internal WorkbenchApplicationConfigurator?
Best,
Ivan

On 8/21/2013 4:44 PM, Rene Richter wrote:
> Hey,
>
> Thank you for this quick reply!
>
> I'm not aware of running any other applications registered on the same
> servlet path.
> Anyway, I'm running a workbench application. Could that be a useful hint?
>
>
> <?xml version="1.0" encoding="UTF-8"?>
> <?eclipse version="3.0"?>
>
> <!--
> -->
>
> <plugin>
>
> <extension
> point="org.eclipse.core.runtime.applications"
> id="StructuredMetricsMetamodelEditorAdvisorApplication">
> <!-- @generated StructuredMetricsMetamodel -->
> <application>
> <run
> class="org.modelbus.metrino.measure.editor.presentation.StructuredMetricsMetamodelEditorAdvisor$Application"/>
> </application>
> </extension>
>
> <extension point="org.eclipse.ui.perspectives">
> <!-- @generated StructuredMetricsMetamodel -->
> <perspective
> name="%_UI_Perspective_label"
> class="org.modelbus.metrino.measure.editor.presentation.StructuredMetricsMetamodelEditorAdvisor$Perspective"
> id="StructuredMetricsMetamodel.presentation.StructuredMetricsMetamodelEditorAdvisorPerspective">
> </perspective>
> </extension>
>
> <extension point="org.eclipse.ui.commands">
> <!-- @generated StructuredMetricsMetamodel -->
> <command
> name="%_UI_Menu_OpenURI_label"
> description="%_UI_Menu_OpenURI_description"
> categoryId="org.eclipse.ui.category.file"
> id="StructuredMetricsMetamodel.presentation.StructuredMetricsMetamodelEditorAdvisorOpenURICommand"/>
> </extension>
>
>
> <extension point="org.eclipse.ui.actionSets">
> <!-- @generated StructuredMetricsMetamodel -->
> <actionSet
> label="%_UI_StructuredMetricsMetamodelEditorAdvisor_ActionSet_label"
> visible="true"
> id="StructuredMetricsMetamodelEditorAdvisorActionSet">
> <action
> label="%_UI_Menu_About_label"
> class="org.modelbus.metrino.measure.editor.presentation.StructuredMetricsMetamodelEditorAdvisor$AboutAction"
> menubarPath="help/additions"
> id="StructuredMetricsMetamodel.presentation.StructuredMetricsMetamodelEditorAdvisorAboutAction"/>
> <action
> label="%_UI_Menu_OpenURI_label"
> definitionId="StructuredMetricsMetamodel.presentation.StructuredMetricsMetamodelEditorAdvisorOpenURICommand"
> class="org.modelbus.metrino.measure.editor.presentation.StructuredMetricsMetamodelEditorAdvisor$OpenURIAction"
> menubarPath="file/additions"
> id="StructuredMetricsMetamodel.presentation.StructuredMetricsMetamodelEditorAdvisorOpenURIAction"/>
> </actionSet>
> </extension>
>
> <extension point="org.eclipse.ui.actionSets">
> <!-- @generated StructuredMetricsMetamodel -->
> <actionSet
> label="%_UI_StructuredMetricsMetamodelModelWizard_ActionSet_label"
> visible="true"
> id="StructuredMetricsMetamodel.presentation.StructuredMetricsMetamodelActionBarContributorActionSet">
> <action
> label="%_UI_StructuredMetricsMetamodelModelWizard_label"
> class="org.modelbus.metrino.measure.editor.presentation.StructuredMetricsMetamodelActionBarContributor$NewAction"
> menubarPath="file/new/additions"
> id="StructuredMetricsMetamodel.presentation.StructuredMetricsMetamodelActionBarContributorNewAction"/>
> </actionSet>
> </extension>
>
> <extension point="org.eclipse.ui.editors">
> <!-- @generated StructuredMetricsMetamodel -->
> <editor
> id="StructuredMetricsMetamodel.presentation.StructuredMetricsMetamodelEditorID"
> name="%_UI_StructuredMetricsMetamodelEditor_label"
> icon="icons/full/obj16/StructuredMetricsMetamodelModelFile.gif"
> extensions="smm"
> class="org.modelbus.metrino.measure.editor.presentation.StructuredMetricsMetamodelEditor"
> contributorClass="org.modelbus.metrino.measure.editor.presentation.StructuredMetricsMetamodelActionBarContributor">
> </editor>
> <editor
> class="org.modelbus.metrino.measure.editor.helper.OCLEditor"
> contributorClass="org.modelbus.metrino.measure.editor.presentation.StructuredMetricsMetamodelActionBarContributor"
> default="false"
> extensions=".txt"
> id="org.modelbus.metrino.measure.editor.oclEditor"
> name="OCL Editor">
> </editor>
> </extension>
> <extension
> point="org.eclipse.rap.ui.entrypoint">
> <entrypoint
> applicationId="org.modelbus.metrino.measure.editor.StructuredMetricsMetamodelEditorAdvisorApplication"
> id="org.modelbus.metrino.measure.editor.MetrinoEntrypoint"
> path="/metrinoEntrypoint">
> </entrypoint>
> </extension>
> <extension
> point="org.eclipse.ui.views">
> <view
> class="org.modelbus.metrino.measure.editor.presentation.ModelbusExplorerView"
> id="org.modelbus.metrino.measure.editor.presentation.ModelbusExplorerView"
> name="Explorer"
> restorable="true">
> </view>
> </extension>
>
> </plugin>
>
>
> the plugin.xml is generated and only customized in terms of the
> entrypoint definition.

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: The alias '/rwt-resources' is already in use. [message #1092285 is a reply to message #1091516] Thu, 22 August 2013 15:13 Go to previous messageGo to next message
Rene Richter is currently offline Rene RichterFriend
Messages: 13
Registered: May 2013
Junior Member
It was one of my attempts to solve the problem by setting the context path via an application configuration. I was not sure about the proper use. I tried to set the contex path both with a service component with a contextPath property and an application configuration with application.addAtribute("contextPath","pathname")

But that approach did not work so I returned to the initial state as described in my initial post

Re: The alias '/rwt-resources' is already in use. [message #1092294 is a reply to message #1092285] Thu, 22 August 2013 15:22 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 1860
Registered: July 2009
Senior Member
Hi Rene,
context path is changed in your launch configuration. Did you try that?
Best,
Ivan

On 8/22/2013 6:13 PM, Rene Richter wrote:
> It was one of my attempts to solve the problem by setting the context
> path via an application configuration. I was not sure about the proper
> use. I tried to set the contex path both with a service component with
> a contextPath property and an application configuration with
> application.addAtribute("contextPath","pathname")
>
> But that approach did not work so I returned to the initial state as
> described in my initial post
>
>

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: The alias '/rwt-resources' is already in use. [message #1092299 is a reply to message #1092294] Thu, 22 August 2013 15:35 Go to previous messageGo to next message
Rene Richter is currently offline Rene RichterFriend
Messages: 13
Registered: May 2013
Junior Member
Yes, that was my first attempt. The context path appears in the application url in the browser but the exception remains.

Edit: I am not even for 100% sure, that changing the contextpath solves my initial Problem.

I am just refering to Point 5.3 of the RAP FAQ's

http://wiki.eclipse.org/RAP/FAQ#NamespaceException:_The_alias_.27.2Frwt-resources.27_is_already_in_use

[Updated on: Thu, 22 August 2013 15:36]

Report message to a moderator

Re: The alias '/rwt-resources' is already in use. [message #1092748 is a reply to message #1092299] Fri, 23 August 2013 06:44 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 1860
Registered: July 2009
Senior Member
Rene,
please post the output of osgi "ss" command. Maybe you have some bundles
(demo bundles) that start another workbench application.
Best,
Ivan

On 8/22/2013 6:35 PM, Rene Richter wrote:
> Yes, that was my first attempt. The context path appears in the
> application url in the browser but the exception remains.

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: The alias '/rwt-resources' is already in use. [message #1095681 is a reply to message #1091355] Tue, 27 August 2013 11:40 Go to previous message
Rene Richter is currently offline Rene RichterFriend
Messages: 13
Registered: May 2013
Junior Member
I guess that was the essential hint. Thank you very much!

I already removed all 'demo' bundles from my run config but I overlooked the 'org.eclipse.rap.examples' and 'org.eclipse.rap.examples.pages'. What a stupid and timeconsuming mistake..

Thank you, I realy appreciate your help Smile
Previous Topic:How to specify Composite background image in CSS.
Next Topic:Intense server push dynamic updates on RAP 2.1
Goto Forum:
  


Current Time: Sat Nov 29 00:31:46 GMT 2014

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

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