Fórumok

Failed while installing Liferay Portlet 6.0

Arun Meriyala, módosítva 13 év-val korábban

Failed while installing Liferay Portlet 6.0

Junior Member Bejegyzések: 29 Csatlakozás dátuma: 2011.01.20. Legújabb bejegyzések
Hi All,

I am getting an error message as "Failed while installing Liferay 6.0" on eclipse when i try to convert the application into Liferay portlet. Below is the details error stack which i am getting. And i am having "service.xml" in it, and was not able to run service builrer on this.


org.eclipse.wst.common.project.facet.core.FacetedProjectFrameworkException: Failed while installing Liferay Portlet 6.0.
at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.callDelegate(FacetedProject.java:1508)
at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.modifyInternal(FacetedProject.java:442)
at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.mergeChangesInternal(FacetedProject.java:1182)
at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.access$2(FacetedProject.java:1118)
at org.eclipse.wst.common.project.facet.core.internal.FacetedProject$5.run(FacetedProject.java:1100)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1975)
at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.mergeChanges(FacetedProject.java:1110)
at org.eclipse.wst.common.project.facet.core.internal.FacetedProjectWorkingCopy.commitChanges(FacetedProjectWorkingCopy.java:2020)
at com.liferay.ide.eclipse.project.core.SDKProjectConvertOperation.convertExistingProject(SDKProjectConvertOperation.java:120)
at com.liferay.ide.eclipse.project.core.SDKProjectConvertOperation.convertProject(SDKProjectConvertOperation.java:132)
at com.liferay.ide.eclipse.project.core.SDKProjectConvertOperation.execute(SDKProjectConvertOperation.java:66)
at org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl$1.run(DataModelPausibleOperationImpl.java:385)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1975)
at org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl.runOperation(DataModelPausibleOperationImpl.java:410)
at org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl.runOperation(DataModelPausibleOperationImpl.java:360)
at org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl.doExecute(DataModelPausibleOperationImpl.java:247)
at org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl.executeImpl(DataModelPausibleOperationImpl.java:219)
at org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl.cacheThreadAndContinue(DataModelPausibleOperationImpl.java:89)
at org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl.execute(DataModelPausibleOperationImpl.java:207)
at org.eclipse.wst.common.frameworks.internal.datamodel.ui.DataModelWizard$1CatchThrowableRunnableWithProgress.run(DataModelWizard.java:225)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:1008)
at org.eclipse.wst.common.frameworks.internal.datamodel.ui.DataModelWizard.runOperations(DataModelWizard.java:234)
at org.eclipse.wst.common.frameworks.internal.datamodel.ui.DataModelWizard.performFinish(DataModelWizard.java:191)
at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:811)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:430)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:234)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
at org.eclipse.jface.window.Window.open(Window.java:801)
at com.liferay.ide.eclipse.project.ui.action.ConvertProjectAction$1.run(ConvertProjectAction.java:71)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at com.liferay.ide.eclipse.project.ui.action.ConvertProjectAction.run(ConvertProjectAction.java:68)
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
at org.eclipse.equinox.launcher.Main.run(Main.java:1408)
Caused by: Java Model Exception: Java Model Status [Build path contains duplicate entry: 'com.liferay.ide.eclipse.server.plugin.container/portlet' for project 'DTO_Sample-portlet']
at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:784)
at org.eclipse.jdt.internal.core.JavaProject.setRawClasspath(JavaProject.java:3026)
at org.eclipse.jdt.internal.core.JavaProject.setRawClasspath(JavaProject.java:2988)
at org.eclipse.jdt.internal.core.JavaProject.setRawClasspath(JavaProject.java:3041)
at com.liferay.ide.eclipse.project.core.library.PluginLibraryInstallOperation.execute(PluginLibraryInstallOperation.java:69)
at org.eclipse.jst.common.project.facet.core.libprov.LibraryInstallDelegate.execute(LibraryInstallDelegate.java:580)
at com.liferay.ide.eclipse.project.core.facet.PluginFacetInstall.installPluginLibraryDelegate(PluginFacetInstall.java:358)
at com.liferay.ide.eclipse.project.core.facet.PluginFacetInstall.execute(PluginFacetInstall.java:126)
at com.liferay.ide.eclipse.project.core.facet.PortletPluginFacetInstall.execute(PortletPluginFacetInstall.java:50)
at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.callDelegate(FacetedProject.java:1478)
... 65 more






Request to help to resolve this.


Regards
Arun
thumbnail
Gregory Amerson, módosítva 13 év-val korábban

RE: Failed while installing Liferay Portlet 6.0

Liferay Legend Bejegyzések: 1123 Csatlakozás dátuma: 2010.02.16. Legújabb bejegyzések
It looks like this project already has the liferay.facet installed. In this case you don't need to "convert" the project since it already is a Liferay IDE project. But instead just simply import the project using the normal eclipse File > Import > Existing Project wizard. Make sure that the portlet is located in an SDK directory structure (<sdk>/portlets/*).

Hope this helps.
Arun Meriyala, módosítva 13 év-val korábban

RE: Failed while installing Liferay Portlet 6.0

Junior Member Bejegyzések: 29 Csatlakozás dátuma: 2011.01.20. Legújabb bejegyzések
Hi Gregory Amerson,

Thanks for the information. I got the point but i dont understand why i am not able to run service.xml from the same portlet to build the service.

Can you please suggest regarding this.


Thanks in advance.


Regards
Arun.
thumbnail
Gregory Amerson, módosítva 13 év-val korábban

RE: Failed while installing Liferay Portlet 6.0

Liferay Legend Bejegyzések: 1123 Csatlakozás dátuma: 2010.02.16. Legújabb bejegyzések
If the project is a liferay portlet project (has been properly imported) then you should be able to right-click the file and choose build service. Or you can double click the file and click the Build Service action.
Arun Meriyala, módosítva 13 év-val korábban

RE: Failed while installing Liferay Portlet 6.0

Junior Member Bejegyzések: 29 Csatlakozás dátuma: 2011.01.20. Legújabb bejegyzések
Hi

I tried to run the service.xml file but i am getting an error message saying "java.lang.NullPointerException".


Getting the error message as "An internal error occurred during: "Build services".
java.lang.NullPointerException".

Request to give suggestions to resolve this.


Regards
Arun.
thumbnail
Gregory Amerson, módosítva 13 év-val korábban

RE: Failed while installing Liferay Portlet 6.0

Liferay Legend Bejegyzések: 1123 Csatlakozás dátuma: 2010.02.16. Legújabb bejegyzések
Could you post your project (export it as a zip from eclipse) to this thread? ALso could you post the full stacktrace of the error? Go to Window > Show view > general > error log, fine the NPE and copy the stacktrace.

Thanks.
Wim Slot, módosítva 13 év-val korábban

RE: Failed while installing Liferay Portlet 6.0

New Member Bejegyzés: 1 Csatlakozás dátuma: 2011.03.14. Legújabb bejegyzések
Gregory Amerson:
Could you post your project (export it as a zip from eclipse) to this thread? ALso could you post the full stacktrace of the error? Go to Window > Show view > general > error log, fine the NPE and copy the stacktrace.

Thanks.


We have the same problem. Here our Eclipse Error logging information


eclipse.buildId=M20100909-0800
java.version=1.6.0_22
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=nl_NL
Framework arguments: -product org.eclipse.epp.package.jee.product
Command-line arguments: -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.jee.product


Error
Mon Mar 14 13:37:33 CET 2011
An internal error occurred during: "Build services".

java.lang.NullPointerException
at com.liferay.ide.eclipse.portlet.core.job.BuildServiceJob.run(BuildServiceJob.java:87)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
thumbnail
Gregory Amerson, módosítva 13 év-val korábban

RE: Failed while installing Liferay Portlet 6.0

Liferay Legend Bejegyzések: 1123 Csatlakozás dátuma: 2010.02.16. Legújabb bejegyzések
Hi Wim Slot,

What version of Liferay IDE do you have? (Help > About > Click the Liferay Icon > version should be displayed.

Thanks.
Jonas MzH, módosítva 13 év-val korábban

RE: Failed while installing Liferay Portlet 6.0

New Member Bejegyzések: 19 Csatlakozás dátuma: 2009.11.05. Legújabb bejegyzések
Hey,

I'm working on a project which has been build before (even with service builder) but now I want to develop it more and more.

When I try to run the service.xml-File (even with no further changes), I get this error too.
I try to run it with Liferay Eclipse IDE.

Stacktrace:
java.lang.NullPointerException
at com.liferay.ide.eclipse.portlet.core.job.BuildServiceJob.runBuildService(BuildServiceJob.java:179)
at com.liferay.ide.eclipse.portlet.core.job.BuildServiceJob$2.run(BuildServiceJob.java:114)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1975)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1957)
at com.liferay.ide.eclipse.portlet.core.job.BuildServiceJob.run(BuildServiceJob.java:107)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)


Session-Data:
eclipse.buildId=M20110210-1200
java.version=1.6.0_24
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=de_DE
Framework arguments: -product org.eclipse.epp.package.jee.product
Command-line arguments: -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.jee.product

Eclipse-IDE version: 1.2.2.v201102281644

I really don't know what this should tell me, the only thing I knew is that modifications to the service builder don't work :-(

I'm really looking forward to your suggestions

Greets,
Jonas
thumbnail
Gregory Amerson, módosítva 13 év-val korábban

RE: Failed while installing Liferay Portlet 6.0

Liferay Legend Bejegyzések: 1123 Csatlakozás dátuma: 2010.02.16. Legújabb bejegyzések
Can you install the nightly build of the IDE (version 1.2.3) to see if it solves your problem? Here is the update-site URL:

releases.liferay.com/tools/ide/eclipse/helios/nightly/
Jonas MzH, módosítva 12 év-val korábban

RE: Failed while installing Liferay Portlet 6.0

New Member Bejegyzések: 19 Csatlakozás dátuma: 2009.11.05. Legújabb bejegyzések
Thanks for your answer!
After upgrading the IDE to 1,2,3 compiling and building works now.

Thanks alot!

Greets,
Jonas
Mathias SITRUK, módosítva 12 év-val korábban

RE: Failed while installing Liferay Portlet 6.0

New Member Bejegyzések: 3 Csatlakozás dátuma: 2011.10.25. Legújabb bejegyzések
Hello,

I have the same problem.
I use Eclipse Galileo.

I don't understand what I should do to upgrade the IDE.
What file(s) do I have to download here : http://releases.liferay.com/tools/ide/eclipse/galileo/nightly/
and what do I have to do with this (these) file(s) ?

Thank you.

Mathias
thumbnail
Gregory Amerson, módosítva 12 év-val korábban

RE: Failed while installing Liferay Portlet 6.0

Liferay Legend Bejegyzések: 1123 Csatlakozás dátuma: 2010.02.16. Legújabb bejegyzések
Mathias SITRUK:
Hello,

I have the same problem.
I use Eclipse Galileo.

I don't understand what I should do to upgrade the IDE.
What file(s) do I have to download here : http://releases.liferay.com/tools/ide/eclipse/galileo/nightly/
and what do I have to do with this (these) file(s) ?

Thank you.

Mathias


Hey Mathias,

You have to add that URL into the eclipse install manager, Help > Install New Software..., paste in that URL into the Work with text field. Then click on the Liferay IDE feature to install the update.
Tim Taylor, módosítva 11 év-val korábban

RE: Failed while installing Liferay Portlet 6.0

New Member Bejegyzések: 18 Csatlakozás dátuma: 2012.09.19. Legújabb bejegyzések
Hello,

i have the same problem with Eclipse Juno.
Version: Liferay IDE 1.6.0.v201207162359.

When i want to create a new project, i get the Error-Message "Failed while installing Liferay Portlet 6.0". In detail-window is only one line
java.lang.NullPointerException

Any idea - solutions?

thx for help - Tim
thumbnail
Gregory Amerson, módosítva 11 év-val korábban

RE: Failed while installing Liferay Portlet 6.0

Liferay Legend Bejegyzések: 1123 Csatlakozás dátuma: 2010.02.16. Legújabb bejegyzések
Tim Taylor:
Hello,

i have the same problem with Eclipse Juno.
Version: Liferay IDE 1.6.0.v201207162359.

When i want to create a new project, i get the Error-Message "Failed while installing Liferay Portlet 6.0". In detail-window is only one line
java.lang.NullPointerException

Any idea - solutions?

thx for help - Tim


Can you paste the entire error from the error log here? (Window > Show view > other > General > error log)
Tim Taylor, módosítva 11 év-val korábban

RE: Failed while installing Liferay Portlet 6.0

New Member Bejegyzések: 18 Csatlakozás dátuma: 2012.09.19. Legújabb bejegyzések
OK here are the error.log - i try to copy an activation.jar to the directory - mmmh there is an activation.jar (from 2.4.2012)

null
Error
Fri Sep 21 10:29:39 CEST 2012
The archive: /liferay-plugins-sdk-6.1.1/lib/activation.jar which is referenced by the classpath, does not exist.

org.eclipse.core.runtime.CoreException: The archive: /liferay-plugins-sdk-6.1.1/lib/activation.jar which is referenced by the classpath, does not exist.
at org.eclipse.jdt.launching.JavaRuntime.abort(JavaRuntime.java:1397)
at org.eclipse.jdt.launching.JavaRuntime.abort(JavaRuntime.java:1382)
at org.eclipse.jdt.launching.JavaRuntime.resolveRuntimeClasspathEntry(JavaRuntime.java:947)
at org.eclipse.jdt.launching.StandardClasspathProvider.resolveClasspath(StandardClasspathProvider.java:75)
at org.eclipse.jdt.internal.launching.RuntimeClasspathProvider.resolveClasspath(RuntimeClasspathProvider.java:63)
at org.eclipse.jdt.launching.JavaRuntime.resolveRuntimeClasspath(JavaRuntime.java:1249)
at org.eclipse.ant.internal.launching.AntLaunchingUtil.getCustomClasspath(AntLaunchingUtil.java:250)
at org.eclipse.ant.internal.launching.launchConfigurations.AntLaunchDelegate.launch(AntLaunchDelegate.java:214)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:855)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:704)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:697)
at com.liferay.ide.eclipse.ui.util.LaunchHelper.launch(LaunchHelper.java:177)
at com.liferay.ide.eclipse.sdk.util.SDKHelper.runTarget(SDKHelper.java:187)
at com.liferay.ide.eclipse.sdk.util.SDKHelper.runTarget(SDKHelper.java:171)
at com.liferay.ide.eclipse.sdk.SDK.createNewPortletProject(SDK.java:373)
at com.liferay.ide.eclipse.project.core.facet.PortletPluginFacetInstall.execute(PortletPluginFacetInstall.java:111)
at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.callDelegate(FacetedProject.java:1477)
at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.modifyInternal(FacetedProject.java:441)
at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.mergeChangesInternal(FacetedProject.java:1181)
at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.access$2(FacetedProject.java:1117)
at org.eclipse.wst.common.project.facet.core.internal.FacetedProject$5.run(FacetedProject.java:1099)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344)
at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.mergeChanges(FacetedProject.java:1109)
at org.eclipse.wst.common.project.facet.core.internal.FacetedProjectWorkingCopy.commitChanges(FacetedProjectWorkingCopy.java:2020)
at org.eclipse.wst.common.project.facet.ui.ModifyFacetedProjectWizard.performFinish(ModifyFacetedProjectWizard.java:400)
at org.eclipse.wst.web.ui.internal.wizards.NewProjectDataModelFacetWizard.performFinish(NewProjectDataModelFacetWizard.java:282)
at com.liferay.ide.eclipse.project.ui.wizard.NewPluginProjectWizard.performFinish(NewPluginProjectWizard.java:333)
at org.eclipse.wst.common.project.facet.ui.ModifyFacetedProjectWizard$3.run(ModifyFacetedProjectWizard.java:331)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344)
at org.eclipse.wst.common.project.facet.ui.ModifyFacetedProjectWizard$4.run(ModifyFacetedProjectWizard.java:345)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)

java.lang.NullPointerException
at com.liferay.ide.eclipse.project.core.facet.PortletPluginFacetInstall.execute(PortletPluginFacetInstall.java:113)
at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.callDelegate(FacetedProject.java:1477)
at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.modifyInternal(FacetedProject.java:441)
at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.mergeChangesInternal(FacetedProject.java:1181)
at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.access$2(FacetedProject.java:1117)
at org.eclipse.wst.common.project.facet.core.internal.FacetedProject$5.run(FacetedProject.java:1099)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344)
at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.mergeChanges(FacetedProject.java:1109)
at org.eclipse.wst.common.project.facet.core.internal.FacetedProjectWorkingCopy.commitChanges(FacetedProjectWorkingCopy.java:2020)
at org.eclipse.wst.common.project.facet.ui.ModifyFacetedProjectWizard.performFinish(ModifyFacetedProjectWizard.java:400)
at org.eclipse.wst.web.ui.internal.wizards.NewProjectDataModelFacetWizard.performFinish(NewProjectDataModelFacetWizard.java:282)
at com.liferay.ide.eclipse.project.ui.wizard.NewPluginProjectWizard.performFinish(NewPluginProjectWizard.java:333)
at org.eclipse.wst.common.project.facet.ui.ModifyFacetedProjectWizard$3.run(ModifyFacetedProjectWizard.java:331)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344)
at org.eclipse.wst.common.project.facet.ui.ModifyFacetedProjectWizard$4.run(ModifyFacetedProjectWizard.java:345)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
thumbnail
Gregory Amerson, módosítva 11 év-val korábban

RE: Failed while installing Liferay Portlet 6.0

Liferay Legend Bejegyzések: 1123 Csatlakozás dátuma: 2010.02.16. Legújabb bejegyzések
Ah this is a nasty bug in Eclipse. You have to either open the liferay-plugins-sdk-6.1.1 project or you have to delete it from the workspace (don't delete the contents just remove from project explorer. Then try again and you wont receive that error.

Sorry for the inconvenience.
Tim Taylor, módosítva 11 év-val korábban

RE: Failed while installing Liferay Portlet 6.0

New Member Bejegyzések: 18 Csatlakozás dátuma: 2012.09.19. Legújabb bejegyzések
Thx - I have the liferay-plugin-sdk-6.1.1 project in my workspace, but i have closed ;-(

best regards Tim
Bill Li, módosítva 11 év-val korábban

RE: Failed while installing Liferay Portlet 6.0

New Member Bejegyzések: 3 Csatlakozás dátuma: 2013.03.25. Legújabb bejegyzések
Gregory Amerson:
Ah this is a nasty bug in Eclipse. You have to either open the liferay-plugins-sdk-6.1.1 project or you have to delete it from the workspace (don't delete the contents just remove from project explorer. Then try again and you wont receive that error.

Sorry for the inconvenience.



Hi Tim,

I have met this problem too.
Currently, I am using eclipse 4.2 Juno with the Liferay plugin integreted.
I tried both ways, open the "liferay-plugins-sdk-6.1.1" project and delete it in the workspace.
But I still receive the "Failed while installing Liferay Portlet 6.0.":

java.lang.NullPointerException
at com.liferay.ide.eclipse.project.core.facet.PortletPluginFacetInstall.execute(PortletPluginFacetInstall.java:113)
at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.callDelegate(FacetedProject.java:1477)
at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.modifyInternal(FacetedProject.java:441)
at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.mergeChangesInternal(FacetedProject.java:1181)
at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.access$2(FacetedProject.java:1117)
at org.eclipse.wst.common.project.facet.core.internal.FacetedProject$5.run(FacetedProject.java:1099)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344)
at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.mergeChanges(FacetedProject.java:1109)
at org.eclipse.wst.common.project.facet.core.internal.FacetedProjectWorkingCopy.commitChanges(FacetedProjectWorkingCopy.java:2020)
at org.eclipse.wst.common.project.facet.ui.ModifyFacetedProjectWizard.performFinish(ModifyFacetedProjectWizard.java:400)
at org.eclipse.wst.web.ui.internal.wizards.NewProjectDataModelFacetWizard.performFinish(NewProjectDataModelFacetWizard.java:282)
at com.liferay.ide.eclipse.project.ui.wizard.NewPluginProjectWizard.performFinish(NewPluginProjectWizard.java:333)
at org.eclipse.wst.common.project.facet.ui.ModifyFacetedProjectWizard$3.run(ModifyFacetedProjectWizard.java:331)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344)
at org.eclipse.wst.common.project.facet.ui.ModifyFacetedProjectWizard$4.run(ModifyFacetedProjectWizard.java:345)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)

Could you please kindly help me?
Thanks a lot.



Regards,
Bill
thumbnail
Gregory Amerson, módosítva 11 év-val korábban

RE: Failed while installing Liferay Portlet 6.0

Liferay Legend Bejegyzések: 1123 Csatlakozás dátuma: 2010.02.16. Legújabb bejegyzések
Hi Bill, What version of Liferay IDE are you using?
Bill Li, módosítva 11 év-val korábban

RE: Failed while installing Liferay Portlet 6.0

New Member Bejegyzések: 3 Csatlakozás dátuma: 2013.03.25. Legújabb bejegyzések
Gregory Amerson:
Hi Bill, What version of Liferay IDE are you using?



Hi Tim,

I have checked the version of Liferay IDE, through "Help->About Eclipse->Installation Details".
The version is : Liferay IDE 1.6.0.v201207162359.
Could you please help?



Best Regards,
Bill
thumbnail
Gregory Amerson, módosítva 11 év-val korábban

RE: Failed while installing Liferay Portlet 6.0

Liferay Legend Bejegyzések: 1123 Csatlakozás dátuma: 2010.02.16. Legújabb bejegyzések
Can you upgrade to the latest version of the IDE, version 1.6.2? And then try again?
Bill Li, módosítva 11 év-val korábban

RE: Failed while installing Liferay Portlet 6.0

New Member Bejegyzések: 3 Csatlakozás dátuma: 2013.03.25. Legújabb bejegyzések
Gregory Amerson:
Can you upgrade to the latest version of the IDE, version 1.6.2? And then try again?



Hi Gregory,

I have downloaded the latest version of the IDE which integreted within eclipse 4.2
But the same error occurs. I think it may be caused by the workspace.
Because when I shift to another workspace, the error disappears.
So still not clear why it happens in my local environment.
I will have this work around to continue my work, and we can try to find the root cause later.
Thanks a lot.



Regards,
Bill
Joaquín Fernández, módosítva 10 év-val korábban

RE: Failed while installing Liferay Portlet 6.0

Junior Member Bejegyzések: 93 Csatlakozás dátuma: 2012.01.02. Legújabb bejegyzések
Hi all,

I have the same error. The log sais:
java.lang.NullPointerException
at com.liferay.ide.eclipse.project.core.facet.ExtPluginFacetInstall.execute(ExtPluginFacetInstall.java:84)
at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.callDelegate(FacetedProject.java:1477)
at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.modifyInternal(FacetedProject.java:441)
at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.mergeChangesInternal(FacetedProject.java:1181)
at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.access$2(FacetedProject.java:1117)
at org.eclipse.wst.common.project.facet.core.internal.FacetedProject$5.run(FacetedProject.java:1099)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344)
at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.mergeChanges(FacetedProject.java:1109)
at org.eclipse.wst.common.project.facet.core.internal.FacetedProjectWorkingCopy.commitChanges(FacetedProjectWorkingCopy.java:2020)
at org.eclipse.wst.common.project.facet.ui.ModifyFacetedProjectWizard.performFinish(ModifyFacetedProjectWizard.java:400)
at org.eclipse.wst.web.ui.internal.wizards.NewProjectDataModelFacetWizard.performFinish(NewProjectDataModelFacetWizard.java:282)
at com.liferay.ide.eclipse.project.ui.wizard.NewPluginProjectWizard.performFinish(NewPluginProjectWizard.java:333)
at org.eclipse.wst.common.project.facet.ui.ModifyFacetedProjectWizard$3.run(ModifyFacetedProjectWizard.java:331)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344)
at org.eclipse.wst.common.project.facet.ui.ModifyFacetedProjectWizard$4.run(ModifyFacetedProjectWizard.java:345)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)

I'm using Indigo Service Release 2.
Any suggestion??

Thanks!!
thumbnail
Gregory Amerson, módosítva 10 év-val korábban

RE: Failed while installing Liferay Portlet 6.0

Liferay Legend Bejegyzések: 1123 Csatlakozás dátuma: 2010.02.16. Legújabb bejegyzések
Can you try to update to the latest Liferay IDE version? http://releases.liferay.com/tools/ide/latest/stable/