Fórumok

Error creatinf Liferay plugin project

Soyeon Kim, módosítva 10 év-val korábban

Error creatinf Liferay plugin project

New Member Bejegyzések: 3 Csatlakozás dátuma: 2014.01.24. Legújabb bejegyzések
Hi, I installed liferay IDE and tried to create a new Liferay plugin project.(following the introduction guide of developing apps with Liferay IDE).
I was able to set up the server and launching/testing server.
But I got error message from eclipse when I tried to create a new life projects with Ant(liferay-plugins-sdk)/ liferay-plugins-sdk-6.2.0 / liferay v6.2. CE(Tomcat 7)

Environment: JRE 7 , eclipse(kepler) , window7 (64bit)

Error Deails:
**** Reference to undefined variable INSTALLED_PATH.
org.eclipse.core.runtime.CoreException: Reference to undefined variable INSTALLED_PATH
at org.eclipse.core.internal.variables.StringSubstitutionEngine.resolve(StringSubstitutionEngine.java:262)
at org.eclipse.core.internal.variables.StringSubstitutionEngine.substitute(StringSubstitutionEngine.java:195)
at org.eclipse.core.internal.variables.StringSubstitutionEngine.performStringSubstitution(StringSubstitutionEngine.java:87)
at org.eclipse.core.internal.variables.StringVariableManager.performStringSubstitution(StringVariableManager.java:574)
at org.eclipse.core.internal.variables.StringVariableManager.performStringSubstitution(StringVariableManager.java:350)
at org.eclipse.jdt.launching.AbstractJavaLaunchConfigurationDelegate.getVMArguments(AbstractJavaLaunchConfigurationDelegate.java:526)
at org.eclipse.jdt.launching.JavaLaunchDelegate.launch(JavaLaunchDelegate.java:64)
at org.eclipse.ant.internal.launching.launchConfigurations.AntLaunchDelegate.runInSeparateVM(AntLaunchDelegate.java:635)
at org.eclipse.ant.internal.launching.launchConfigurations.AntLaunchDelegate.launch(AntLaunchDelegate.java:256)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:858)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:707)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:700)
at com.liferay.ide.core.util.LaunchHelper.launch(LaunchHelper.java:198)
at com.liferay.ide.sdk.core.SDKHelper.runTarget(SDKHelper.java:197)
at com.liferay.ide.sdk.core.SDK.createNewPortletProject(SDK.java:457)
at com.liferay.ide.project.core.PluginsSDKProjectProvider.doCreateNewProject(PluginsSDKProjectProvider.java:112)
at com.liferay.ide.project.core.NewLiferayProjectProvider.createNewProject(NewLiferayProjectProvider.java:45)
at com.liferay.ide.project.core.model.NewLiferayPluginProjectOpMethods.execute(NewLiferayPluginProjectOpMethods.java:101)
at com.liferay.ide.project.core.model.NewLiferayPluginProjectOp$Impl.execute(Unknown Source)
at org.eclipse.sapphire.ui.forms.swt.SapphireWizard.performFinish(SapphireWizard.java:352)
at org.eclipse.sapphire.ui.forms.swt.SapphireWizard$3.run(SapphireWizard.java:314)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)

***Error creating Liferay plugin project.
java.lang.NullPointerException
at com.liferay.ide.project.core.PluginsSDKProjectProvider.doCreateNewProject(PluginsSDKProjectProvider.java:160)
at com.liferay.ide.project.core.NewLiferayProjectProvider.createNewProject(NewLiferayProjectProvider.java:45)
at com.liferay.ide.project.core.model.NewLiferayPluginProjectOpMethods.execute(NewLiferayPluginProjectOpMethods.java:101)
at com.liferay.ide.project.core.model.NewLiferayPluginProjectOp$Impl.execute(Unknown Source)
at org.eclipse.sapphire.ui.forms.swt.SapphireWizard.performFinish(SapphireWizard.java:352)
at org.eclipse.sapphire.ui.forms.swt.SapphireWizard$3.run(SapphireWizard.java:314)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)

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

RE: Error creatinf Liferay plugin project

Liferay Legend Bejegyzések: 1123 Csatlakozás dátuma: 2010.02.16. Legújabb bejegyzések
There seems to be something wrong with your ant installation in Eclipse. Can you try re-installing Eclipse and Liferay IDE and trying again?
Soyeon Kim, módosítva 10 év-val korábban

RE: Error creatinf Liferay plugin project

New Member Bejegyzések: 3 Csatlakozás dátuma: 2014.01.24. Legújabb bejegyzések
Thank you for your reply.

I tried to re-install for several times but the problem is still the same.
thumbnail
Gregory Amerson, módosítva 10 év-val korábban

RE: Error creatinf Liferay plugin project

Liferay Legend Bejegyzések: 1123 Csatlakozás dátuma: 2010.02.16. Legújabb bejegyzések
Can you just try creating a normal java project and then executing a 'hello world' ant script inside of it? I want to see if the problem is the base eclipse or something in the Liferay IDE plugin.
Soyeon Kim, módosítva 10 év-val korábban

RE: Error creatinf Liferay plugin project

New Member Bejegyzések: 3 Csatlakozás dátuma: 2014.01.24. Legújabb bejegyzések
I am able to create a normal java project and print out the "Hello world". It works fine.

My problem is that I can't create a liferay plugin project with Ant but I was able to create a Maven build type project.
venu krishna, módosítva 10 év-val korábban

RE: Error creatinf Liferay plugin project

New Member Bejegyzések: 2 Csatlakozás dátuma: 2014.01.28. Legújabb bejegyzések
Hi ,i am Venu ,i am also facing similar kind of issue .
null
Error
Wed Jan 29 11:24:56 IST 2014
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:1403)
at org.eclipse.jdt.launching.JavaRuntime.abort(JavaRuntime.java:1388)
at org.eclipse.jdt.launching.JavaRuntime.resolveRuntimeClasspathEntry(JavaRuntime.java:952)
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:1255)
at org.eclipse.ant.internal.launching.AntLaunchingUtil.getCustomClasspath(AntLaunchingUtil.java:250)
at org.eclipse.ant.internal.launching.launchConfigurations.AntLaunchDelegate.launch(AntLaunchDelegate.java:200)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:858)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:707)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:700)
at com.liferay.ide.core.util.LaunchHelper.launch(LaunchHelper.java:198)
at com.liferay.ide.sdk.core.SDKHelper.runTarget(SDKHelper.java:197)
at com.liferay.ide.sdk.core.SDK.createNewPortletProject(SDK.java:457)
at com.liferay.ide.project.core.PluginsSDKProjectProvider.doCreateNewProject(PluginsSDKProjectProvider.java:112)
at com.liferay.ide.project.core.NewLiferayProjectProvider.createNewProject(NewLiferayProjectProvider.java:45)
at com.liferay.ide.project.core.model.NewLiferayPluginProjectOpMethods.execute(NewLiferayPluginProjectOpMethods.java:101)
at com.liferay.ide.project.core.model.NewLiferayPluginProjectOp$Impl.execute(Unknown Source)
at org.eclipse.sapphire.ui.forms.swt.SapphireWizard.performFinish(SapphireWizard.java:352)
at org.eclipse.sapphire.ui.forms.swt.SapphireWizard$3.run(SapphireWizard.java:314)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)

null
Error
Wed Jan 29 11:24:46 IST 2014
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:1403)
at org.eclipse.jdt.launching.JavaRuntime.abort(JavaRuntime.java:1388)
at org.eclipse.jdt.launching.JavaRuntime.resolveRuntimeClasspathEntry(JavaRuntime.java:952)
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:1255)
at org.eclipse.ant.internal.launching.AntLaunchingUtil.getCustomClasspath(AntLaunchingUtil.java:250)
at org.eclipse.ant.internal.launching.launchConfigurations.AntLaunchDelegate.launch(AntLaunchDelegate.java:200)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:858)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:707)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:700)
at com.liferay.ide.core.util.LaunchHelper.launch(LaunchHelper.java:198)
at com.liferay.ide.sdk.core.SDKHelper.runTarget(SDKHelper.java:197)
at com.liferay.ide.sdk.core.SDK.createNewPortletProject(SDK.java:457)
at com.liferay.ide.project.core.PluginsSDKProjectProvider.doCreateNewProject(PluginsSDKProjectProvider.java:112)
at com.liferay.ide.project.core.NewLiferayProjectProvider.createNewProject(NewLiferayProjectProvider.java:45)
at com.liferay.ide.project.core.model.NewLiferayPluginProjectOpMethods.execute(NewLiferayPluginProjectOpMethods.java:101)
at com.liferay.ide.project.core.model.NewLiferayPluginProjectOp$Impl.execute(Unknown Source)
at org.eclipse.sapphire.ui.forms.swt.SapphireWizard.performFinish(SapphireWizard.java:352)
at org.eclipse.sapphire.ui.forms.swt.SapphireWizard$3.run(SapphireWizard.java:314)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)

any solution for this problem..

For this i have uninstalled and installed LiferayIDE and tried to create the Liferay Plugin Porject,now it is creating the project,but if i try to create new one more plugin project the same issue is raising..
thumbnail
Kien Nguyen, módosítva 9 év-val korábban

RE: Error creatinf Liferay plugin project

New Member Bejegyzések: 2 Csatlakozás dátuma: 2012.06.20. Legújabb bejegyzések
venu krishna:
Hi ,i am Venu ,i am also facing similar kind of issue .
null
Error
Wed Jan 29 11:24:56 IST 2014
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:1403)
at org.eclipse.jdt.launching.JavaRuntime.abort(JavaRuntime.java:1388)
at org.eclipse.jdt.launching.JavaRuntime.resolveRuntimeClasspathEntry(JavaRuntime.java:952)
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:1255)
at org.eclipse.ant.internal.launching.AntLaunchingUtil.getCustomClasspath(AntLaunchingUtil.java:250)
at org.eclipse.ant.internal.launching.launchConfigurations.AntLaunchDelegate.launch(AntLaunchDelegate.java:200)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:858)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:707)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:700)
at com.liferay.ide.core.util.LaunchHelper.launch(LaunchHelper.java:198)
at com.liferay.ide.sdk.core.SDKHelper.runTarget(SDKHelper.java:197)
at com.liferay.ide.sdk.core.SDK.createNewPortletProject(SDK.java:457)
at com.liferay.ide.project.core.PluginsSDKProjectProvider.doCreateNewProject(PluginsSDKProjectProvider.java:112)
at com.liferay.ide.project.core.NewLiferayProjectProvider.createNewProject(NewLiferayProjectProvider.java:45)
at com.liferay.ide.project.core.model.NewLiferayPluginProjectOpMethods.execute(NewLiferayPluginProjectOpMethods.java:101)
at com.liferay.ide.project.core.model.NewLiferayPluginProjectOp$Impl.execute(Unknown Source)
at org.eclipse.sapphire.ui.forms.swt.SapphireWizard.performFinish(SapphireWizard.java:352)
at org.eclipse.sapphire.ui.forms.swt.SapphireWizard$3.run(SapphireWizard.java:314)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)

null
Error
Wed Jan 29 11:24:46 IST 2014
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:1403)
at org.eclipse.jdt.launching.JavaRuntime.abort(JavaRuntime.java:1388)
at org.eclipse.jdt.launching.JavaRuntime.resolveRuntimeClasspathEntry(JavaRuntime.java:952)
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:1255)
at org.eclipse.ant.internal.launching.AntLaunchingUtil.getCustomClasspath(AntLaunchingUtil.java:250)
at org.eclipse.ant.internal.launching.launchConfigurations.AntLaunchDelegate.launch(AntLaunchDelegate.java:200)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:858)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:707)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:700)
at com.liferay.ide.core.util.LaunchHelper.launch(LaunchHelper.java:198)
at com.liferay.ide.sdk.core.SDKHelper.runTarget(SDKHelper.java:197)
at com.liferay.ide.sdk.core.SDK.createNewPortletProject(SDK.java:457)
at com.liferay.ide.project.core.PluginsSDKProjectProvider.doCreateNewProject(PluginsSDKProjectProvider.java:112)
at com.liferay.ide.project.core.NewLiferayProjectProvider.createNewProject(NewLiferayProjectProvider.java:45)
at com.liferay.ide.project.core.model.NewLiferayPluginProjectOpMethods.execute(NewLiferayPluginProjectOpMethods.java:101)
at com.liferay.ide.project.core.model.NewLiferayPluginProjectOp$Impl.execute(Unknown Source)
at org.eclipse.sapphire.ui.forms.swt.SapphireWizard.performFinish(SapphireWizard.java:352)
at org.eclipse.sapphire.ui.forms.swt.SapphireWizard$3.run(SapphireWizard.java:314)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)

any solution for this problem..

For this i have uninstalled and installed LiferayIDE and tried to create the Liferay Plugin Porject,now it is creating the project,but if i try to create new one more plugin project the same issue is raising..


Hi,

Anyone solved this problem? I'm facing the same right now with Liferay IDE 2.1.0, Liferay portal 6.2.
thumbnail
Kien Trung Nguyen, módosítva 9 év-val korábban

RE: Error creatinf Liferay plugin project

New Member Bejegyzések: 2 Csatlakozás dátuma: 2012.06.20. Legújabb bejegyzések
I'm using java 8u5. So when I returned to java 7, the problem was resolved.
Nick Gompper, módosítva 9 év-val korábban

RE: Error creatinf Liferay plugin project

New Member Bejegyzés: 1 Csatlakozás dátuma: 2014.05.19. Legújabb bejegyzések
I also encountered this problem. All the jars were in place, but were not recognized in Eclipse. Within the Package Explorer, simply refreshing loaded all the jars, and the problem was resolved.
Martin Lojek, módosítva 9 év-val korábban

RE: Error creatinf Liferay plugin project

New Member Bejegyzések: 7 Csatlakozás dátuma: 2010.12.01. Legújabb bejegyzések
En Jay Gee:
I also encountered this problem. All the jars were in place, but were not recognized in Eclipse. Within the Package Explorer, simply refreshing loaded all the jars, and the problem was resolved.

Thank you so much, En Jay Gee. I've experienced the same Issue with running service builder. Your quick solution helped me to sort it out emoticon
thumbnail
Marco Azzalini, módosítva 9 év-val korábban

RE: Error creatinf Liferay plugin project

Regular Member Bejegyzések: 146 Csatlakozás dátuma: 2014.11.18. Legújabb bejegyzések
Hi, thank you very much!! Your solution worked also for me! emoticon

Marco
thumbnail
Javier Solana, módosítva 9 év-val korábban

RE: Error creatinf Liferay plugin project

Junior Member Bejegyzések: 59 Csatlakozás dátuma: 2014.06.26. Legújabb bejegyzések
En Jay Gee:
I also encountered this problem. All the jars were in place, but were not recognized in Eclipse. Within the Package Explorer, simply refreshing loaded all the jars, and the problem was resolved.


So simple, and so efficient! Thanks a lot for saving my time emoticon
venu krishna, módosítva 10 év-val korábban

can we integrate Liferay with Elasticsearch

New Member Bejegyzések: 2 Csatlakozás dátuma: 2014.01.28. Legújabb bejegyzések
Hi,
can we integrate Liferay with Elasticsearch,if it is possible,please let me know the steps for the integration,if not possible let me know why liferay cannot be integrate with elastic search..

Thankyou in advance
Regards
Venu
thumbnail
Asier Del Pozo, módosítva 10 év-val korábban

RE: can we integrate Liferay with Elasticsearch

Junior Member Bejegyzések: 78 Csatlakozás dátuma: 2007.11.12. Legújabb bejegyzések
Hi Venu,

yes, it is possible to integrate Elastic Search with Liferay, you will need to create your own search plugin, we have done at Xtivia. We are going to be publishing some more information at Xtivia's blog, but if you want more help right now you will have to contact Xtivia.

Best,
Asier