【问题标题】:Liferay: error opening service.xmlLiferay:打开 service.xml 时出错
【发布时间】:2014-07-15 10:25:41
【问题描述】:

我正在为一个项目使用 liferay。我尝试使用选项 NEW LIFERAY SERVICE BUILDER 创建 service.xml。但是每当我尝试打开 service.xml 时,都会出现以下错误。

Error
Tue Jul 15 12:52:10 IST 2014
Plug-in "com.liferay.ide.eclipse.service.ui" was unable to instantiate class "com.liferay.ide.eclipse.service.ui.ServiceBuilderEditor".

org.eclipse.core.runtime.CoreException: Plug-in "com.liferay.ide.eclipse.service.ui" was unable to instantiate class "com.liferay.ide.eclipse.service.ui.ServiceBuilderEditor".
 at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.throwException(RegistryStrategyOSGI.java:194)
 at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:188)
 at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
 at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
 at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
 at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:274)
 at org.eclipse.ui.internal.registry.EditorDescriptor.createEditor(EditorDescriptor.java:235)
 at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:318)
 at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.createPart(CompatibilityPart.java:266)
 at org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor.createPart(CompatibilityEditor.java:61)
 at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:304)
 ... (omitted large parts of stacktrace) ...
 at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
Caused by: java.lang.VerifyError: (class: com/liferay/ide/eclipse/service/ui/ServiceBuilderEditor, method: createDiagramPages signature: ()V) Incompatible argument to function
 at java.lang.Class.getDeclaredConstructors0(Native Method)
 at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
 at java.lang.Class.getConstructor0(Unknown Source)
 at java.lang.Class.newInstance(Unknown Source)
 at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:184)
 ... 90 more.

我的 liferay sdk 是 6.2,在 eclipse 中安装了 liferay 6.2 版,并且 Liferay v6.1 社区版服务器与 Tomcat 7 捆绑在一起。请任何人告诉我如何解决这个问题。提前致谢。

【问题讨论】:

  • 看起来您的 Eclipse 插件(构成 Liferay IDE)不同步。请更新它们并再次检查。这不是发生在 Liferay 端,而是发生在 Eclipse/Liferay-IDE 端。
  • 我用 XML 编辑器打开它,它打开了。谢谢@OlafKock
  • 这是一种解决方法,而不是修复方法。但是,很高兴您可以继续以这种方式工作。如果您想解决根本问题(并使用 service.xml 编辑器):更新

标签: eclipse liferay portlet liferay-ide


【解决方案1】:

天哪,我的愚蠢错误。我尝试使用 XML 编辑器打开,它打开了。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2023-03-18
    • 2014-09-12
    • 2014-03-04
    • 2016-09-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多