0

我正在为一个项目使用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 捆绑在一起。请任何人告诉我如何解决这个问题。提前致谢。

4

1 回答 1

0

上帝,我的愚蠢错误。我尝试使用 XML 编辑器打开它并打开。

于 2014-07-15T10:55:11.347 回答