Foren

Failed while installing Liferay Portlet 6.0

Steve Barski, geändert vor 8 Jahren.

Failed while installing Liferay Portlet 6.0

New Member Beiträge: 3 Beitrittsdatum: 20.05.15 Neueste Beiträge
Hi,

I ran into this error while following cookbook example of first portlet. Using Win 8.1-64bit, Java 1.70.0_80, most recent CE files from the downloads. Anyone have some insight on what needs to be corrected here?

Thanks,
Steve

Traces:
C:\liferay-ce-workspace\liferay-plugins-sdk-6.2\portlets\build.xml:12: The following error occurred while executing this line:
C:\liferay-ce-workspace\liferay-plugins-sdk-6.2\build-common.xml:333: exec returned: 1
at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:568)
at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:399)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
at sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:435)
at org.apache.tools.ant.Target.performTasks(Target.java:456)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:36)
at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:703)
at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:525)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.eclipse.ant.core.AntRunner.run(AntRunner.java:371)
at org.eclipse.ant.internal.launching.launchConfigurations.AntLaunchDelegate$1.run(AntLaunchDelegate.java:244)
at java.lang.Thread.run(Thread.java:745)
Caused by: C:\liferay-ce-workspace\liferay-plugins-sdk-6.2\build-common.xml:333: exec returned: 1
at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:643)
at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:669)
at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:495)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
at sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
at sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:396)
... 22 more

Failure of Background Ant Build
org.eclipse.core.runtime.CoreException: C:\liferay-ce-workspace\liferay-plugins-sdk-6.2\portlets\build.xml:12: The following error occurred while executing this line:
C:\liferay-ce-workspace\liferay-plugins-sdk-6.2\build-common.xml:333: exec returned: 1
at org.eclipse.ant.core.AntRunner.handleInvocationTargetException(AntRunner.java:448)
at org.eclipse.ant.core.AntRunner.run(AntRunner.java:380)
at org.eclipse.ant.internal.launching.launchConfigurations.AntLaunchDelegate$1.run(AntLaunchDelegate.java:244)
at java.lang.Thread.run(Thread.java:745)
Caused by: C:\liferay-ce-workspace\liferay-plugins-sdk-6.2\portlets\build.xml:12: The following error occurred while executing this line:
C:\liferay-ce-workspace\liferay-plugins-sdk-6.2\build-common.xml:333: exec returned: 1
at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:568)
at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:399)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
at sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) ...etc

Failed while installing Liferay Portlet 6.0.
java.lang.NullPointerException
at java.util.Arrays$ArrayList.<init>(Arrays.java:2842)
at java.util.Arrays.asList(Arrays.java:2828) ...etc

eclipse.buildId=4.4.2.M20150204-1700
java.version=1.7.0_80
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments: -product org.eclipse.epp.package.jee.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.jee.product
thumbnail
David H Nebinger, geändert vor 8 Jahren.

RE: Failed while installing Liferay Portlet 6.0

Liferay Legend Beiträge: 14919 Beitrittsdatum: 02.09.06 Neueste Beiträge
What cookbook?

Liferay 6.2 and Liferay Portlet 6.0? There's a mixup there, but otherwise I have no idea what you're talking about.
Steve Barski, geändert vor 8 Jahren.

RE: Failed while installing Liferay Portlet 6.0

New Member Beiträge: 3 Beitrittsdatum: 20.05.15 Neueste Beiträge
The book is "Liferay Cookbook" by Hasan.

I downloaded and installed in Eclipse, Luna for the following from CE:

liferay-plugins-sdk-6.2-ce-ga4-20150416163831865.zip
liferay-portal-tomcat-6.2-ce-ga4-20150416163831865.zip
liferay-portal-src-6.2-ce-ga4-20150416163831865.zip

Then on creating the first portlet I get the errors stated. The first portlet does not successfully build. The errors seem to be coming from the "6.2" files. I tried several times with the same results.

Could the Liferay IDE for eclipse be the issue? Which version should be used with Eclipse and the current 6.2 files?

Thanks,

Steve
thumbnail
David H Nebinger, geändert vor 8 Jahren.

RE: Failed while installing Liferay Portlet 6.0 (Antwort)

Liferay Legend Beiträge: 14919 Beitrittsdatum: 02.09.06 Neueste Beiträge
More likely the cookbook is based on Liferay 6.0, you've copied from it verbatim, and introduced a version compatibility issue.

Check out the intro to the cookbook to see what version(s) of Liferay it is for. Whatever version it's for, if you don't want to do the upgrade work (or you're learning and am not ready to do the work), downgrade your Liferay environment to match the version from the cookbook.
Steve Barski, geändert vor 8 Jahren.

RE: Failed while installing Liferay Portlet 6.0

New Member Beiträge: 3 Beitrittsdatum: 20.05.15 Neueste Beiträge
I believe I have all the recent 6.2 CE files which I could not get them to run on my system. I reverted back to 6.1, as suggested, which they seem to be working fine.

Thanks,
Steve