2014-07-15 126 views
0

我正在使用liferay作爲項目。我嘗試使用選項NEW LIFERAY SERVICE BUILDER創建service.xml。但是,當我嘗試打開service.xml時,我得到了下面的錯誤。Liferay:錯誤打開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的V6.1 Community Edition服務器和Tomcat 7捆綁請誰能告訴我如何解決這個問題,安裝Liferay的6.2版本。提前致謝。

+0

看起來像你的eclipse插件(組成Liferay IDE)不同步。請更新它們並再次檢查。這不是在Liferay方面發生的,而是在Eclipse/Liferay-IDE方面。 –

+0

我用XML編輯器打開它並打開它。感謝@OlafKock – Rajkumar

+0

這是一個解決方法,而不是解決方法。不過,很高興你能繼續這樣工作。如果您想要解決底層問題(並使用service.xml編輯器):update –

回答

0

上帝我愚蠢的錯誤。我試着用XML編輯器打開它並打開。