首页 > 学院 > 开发设计 > 正文

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

2019-11-15 00:22:45
字体:
来源:转载
供稿:网友
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


发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表