Can not create liferay project in eclipse - eclipse

I want to create liferay project in eclipse , I run liferay sdk successfully. Now i want to create a new project .
I am using
kepler eclipse
java 7
When i create a new project i get this error :
MESSAGE NoSuchMethodError: com.liferay.ide.core.ILiferayProjectProvider.createNewProject(Ljava/lang/Object;Lorg/eclipse/core/runtime/IProgressMonitor;)Lorg/eclipse/core/runtime/IStatus;
Can anyone tell me how can resolve this error or can create project by alternative method.Thanks in advance.

I'm assuming you're using Liferay 6.2, despite tagging with the liferay-6 tag.
It looks like you have some fragments of Liferay-IDE installed in addition to your IDE installation. I'd suggest to either download the full Liferay-IDE or connect to its update site and update the installation. In case this doesn't work already, report back and make sure to include the version of Liferay-IDE that you're using as well.

Related

Can't create a GWT web application in Eclipse

I'm installing the plugin following these istruction http://gwt-plugins.github.io/documentation/gwt-eclipse-plugin/Download.html
The installation appears to be successful (if i go on the installed plugins I can see GWT Eclipse plugin 3.0.0) , but when I have to create a new web application I don't find the button for create it. I tried to search the button in "other" too.
Eclipse version: 4.22.0
The eclipse plugin is not fully maintained right now, the recommended way for creating new GWT projects is to use a multi module archetype that separate the client from the server, there is already a good archetype to do that you can find it here tbroyer gwt archetype and follow the instructions in the readme file to check how you can run the application.

Can't create new Liferay plugin in eclipse

I use eclipse kepler, Liferay IDE with the Liferay sdk 7 and V6.1 CE server.
When I try to make new plugin from the wizard this error occurs:
The selected wizard could not be started. Plug-in
"com.liferay.ide.project.ui" was unable to instantiate class
"com.liferay.ide.project.ui.wizard.NewLiferayPluginProjectWizard".
Could not initialize class
com.liferay.ide.project.core.model.NewLiferayPluginProjectOp
anybody had this issue before? thanks!
If you're using Liferay 6.1 CE you must use the Plugin SDK 6.1 as well, you can't use the one from version 7.
That, and please note that 6.1 doesn't get any more updates for quite a long time - so one could also argue that instead of downgrading the SDK, you should upgrade the server to Liferay 7. When you do this, note that the Plugins SDK is deprecated in favor of Liferay Workspace.

Issue in TestNG with Eclipse

I have tried with the below url in Eclipse to install the TestNG Plugin..
Select Help / Install new software.
Search for new features to install.
New remote site.
For Eclipse 3.4 and above, enter http://beust.com/eclipse.
For Eclipse 3.3 and below, enter http://beust.com/eclipse1.
But Unfortunately Both gets Connection refused..
I have downloaded the files from https://github.com/cbeust/testng-eclipse/
When I extract the zip, It has the following things:
Scripts,
testng-eclipse-feature,
testng-eclipse-plugin,
testng-eclipse-Update-Site,
.cvsignore,
.gitignore,
.project,
.travel.yml,
changes.log,
new-release,
pom.xml,
README.md
I have copied features and plugin and pasted in the eclipse feature and plugin folder respectively. Now If i create TestNG class,
I am getting following error "The selected wizard could not be started.
Plug-in org.testng.eclipse was unable to load class org.testng.eclipse.wizards.NewTestNGClassWizard.
org.testng.eclipse.wizards.NewTestNGClassWizard"
Can any one help on this??
Thanks
You are using an older version of Eclipse, please upgrade to Luna and give it a try it would certainly work.
1)First try the same method of yours from install new software.
2)Go to Eclipse Market place and just type TestNG and search, it would display the plugin and install it.

Can't import portlet into Eclipse IDE (SDK Error Message)

I'm having problems trying to import a portlet into Eclipse IDE.
First i tried File/ New / Liferay Project from Existing Source. As soon as i add my Lferay Project Location the message ]"Project is not located inside Liferay Plugins SDK" shows up. This is the location of my portlet C:\liferay-plugins-sdk-6.2.10.1\portlets\valisa2014-portlet, so the error message makes no sense to me. I have confirmed that the portlet is indeed inside my sdk.
I have also tried to import the porlet by File / Import and then Liferay -> Liferay Project from Existing Source, same thing as soon as i put my Liferay project location the same error message will show up:"Project is not located inside Liferay Plugins SDK"
And finally i tried Import -> Import Liferay Projects, Im able to select my SDK and on the "Projects to Import" options i can see my portlet but i got an "Invalid Plugin SDK Location" as soon as i select my sdk.
I really don't understand what's going on, my sdk is already configured on Eclipse and it have worked in the past when importing another portlets or themes to Eclipse, my build.user.properties have also worked in the past (this is a project i have been working on for months) so i don't know why i'm not able to import this portlet.
Im using Liferay 6.2, Tomcat 7, Eclipse Kepler Service Release 2.
Ok after dealing with those JAVA issues i have finally been able to import my portlet to Eclipse, and is still a mistery to be honest. I'm still not able to import the portlet with the "Liferay Projects from Plugins from SDK", still getting the "Invalid Plugin SDK location" even when i can see my new portlet listed and ready to be selected. So i tried with Import -> "Exiting Projects into Workspace" and it finally worked. Actually this was the only import method that worked for me, after trying every single way to import a Portlet in Liferay. Wish i can have a better idea why is not working with the other ones. Well hope this solution will help someone with the same problem in the future. If you guys have more feedback will be really appreciated.
Have you defined your SDK in Eclipse?
Eclipse plug-in complains that there is no SDK defined. It does not bother to discover the SDK on its own. You have to do it manually.
Try defining the runtime, that is Liferay installation, as well - it gets handy when overriding files in hooks.
Eclipse Only looks for the projects whose names end in thw word portlet. So make sure that your project has the proper name format.

How to add Service archive generator and code generator plugin in Eclipse

I have downloaded Service archive and code generator wizard plugin for Eclipse (From http://axis.apache.org/axis2/java/core/tools/index.html). I am following steps mentioned here http://axis.apache.org/axis2/java/core/tools/eclipse/plugin-installation.html.
I extracted the content of plugin folder into dropin folder but not able to see Service archive or code generator wizard.I tried copying all content into Plugin folder but no luck.
How can we add this two plugins ?
PS: I am using Eclipse Helios.
~Ajinkya.
I'm assuming you're using the latest version (1.6.1) of the plugins
There's an open apache issue for a problem loading the plugin
https://issues.apache.org/jira/browse/AXIS2-5145
Altho this is for Indigo it might be the same problem you're having (just check)
If that's the case I'd either wait for a fix or try an older version of the plugins (I'm using 1.5.4 which works just fine)