RAP开发入门-开发笔记-bug记录

王朝学院·作者佚名  2016-05-28
窄屏简体版  字體: 小  |  中  |  大  |  超大  

RAP开发入门-开发笔记-bug记录NamespaceException: The alias '/rwt-resources' is already in use该bug发生的第一种情况是:

This means that more than one application is started in the same context and in the same HttpService. When different applications run in the same HttpService, they have to use different context paths.

This also happens when an ApplicationConfiguration is registered AND the org.eclipse.rap.workbench bundle is running (seebug 377414).

To register anApplicationConfigurationon a custom context using declarative services, add the following line to the service component definition:

<PRoperty name="contextName" type="String" value="example"/>

See alsoApplicationLauncher#PROPERTY_CONTEXT_NAME.

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

意思就是RAP运行在容器中的,但是你一个容器不弄同时跑两个RAP应用,主要是一个应用,多个bundle的情况会发生这种问题。

补充描述告诉我们一个容器中Application的处理方式“ApplicationConfigurationon a custom context using declarative services”,那就好办了,我们找到容器中定义service的地方,把service去掉就行了

方案:找到MANIFEST.MF去掉contribution.xml(services定义在这)的加载;

第二种情况:

新插件(bundle)加载的冲突,如果希望用e4里边的控件的话,问题可能就在这bundle里面,解决方案还是得求老外ㄒoㄒ:

this is because bothorg.eclipse.e4.ui.workbench and org.eclipse.rap.ui.workbench exists. Youshould remove the org.eclipse.rap.ui.workbench.

http://www.postseek.com/meta/2f8c97b62bcde5119f8225d93db3bc1d

eclipse bug 库里面也确定了这个bug:https://bugs.eclipse.org/bugs/show_bug.cgi?id=369657

 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
© 2005- 王朝網路 版權所有 導航