我正在使用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,与Tomcat 7捆绑在一起的Liferay v6.1社区版服务器。请有人告诉我如何解决这个问题。提前谢谢。
答案 0 :(得分:0)
上帝,我的愚蠢错误。我尝试用XML编辑器打开并打开它。