I have a doubt on how to add an existing project into liferay IDE. Have followed the below links:http://www.liferay.com/community/wiki/-/wiki/Main/Liferay+IDE+Importing+Existing+Projectshttp://www.liferay.com/community/wiki/-/wiki/Main/Liferay+IDE+Importing+Existing+Projects/pop_up;jsessionid=BE78A2026BCBE0255BBA576843B01947.node-1?_36_version=1.6

Problem facing:Trying to import the chat portlet to IDE. Followed the above steps but not getting the result. Steps followed:1) Right click --> import --> Existing project into workspace --> Browsed to the source directory and selected the chat portlet kept under plugin_sdk's portlet folder --> Here I am not able to see any project selected and getting a warning as " No projects are found to import"

Doubt: Since its a portlet project given by liferay and available in liferay-portal-tomcat-6.0.5, do I need to do anything extra to resolve the issue.

You will need to use the Liferay IDE wizard for bringing in new projects.

File > New... > Liferay > Liferay Project from Existing Source

Then select the chat-portlet.

Notice that once you do you will have lots of compile errors to get rid of because the chat-portlet .project is setup to point to portal dependencies that you wont have. you can remove those from the project properties java build path.

I had already followed the above method and below is the problem I am facing:There is a error message saying "Invalid project location". The Next as well as Finish buton are disabled for me to continue.

Earlier approach: Was trying to import the existing project avaiable under C:\liferay-portal-tomcat-6.0.5\liferay-portal-6.0.5\tomcat-6.0.26\webapps\chat-portletThis is an existing portlet that we get with the bundle. Having problem as specified above on following the steps specified by you.

New Approach: Created a new project named chat-portlet using command prompt and then imported the same using your approach and it worked. Then copied the files from original chat-portlet to this new one. This way I was able to deploy the portlet and see the same in browser. Though there are some problem which I need to look into.

And then once you have this open Eclipse, go to File > Import ... > Liferay > Existing Liferay Project, and browse to the chat-portlet directory.

When this finishes you will need to edit the project build path (Properties > Java Build Path) and go to the libraries tab and remove all of the missing jars since those jars will now be provided by the runtime libraries on the project now. You should be good to go.

Steps followed this time were:1) Downloaded the chat portlet war(chat-portlet-6.0.6.1) from official plugin of liferay site since was having problem in downloading from svn with respect to credential verification.

2) Extracted the files to the folder path as specified by you --> D:\liferay-plugins-sdk-6.0.6\portlets\chat-portlet

3) Tried to import the file using Eclipse as per the process:File > Import ... > Liferay > Existing Liferay Project, and browse to the chat-portlet directory.

Result: Getting "Invalid project location" as the error on the pop up window I had specified earlier.

Structure of a WAR file and structure of liferay project is different.Try to put the contents of extracted War in a folder called docroot and add a build.xml to it.Then try to import it. May be it helps

and there are other build files. Now what I used to do till date is keep the chat-portlet application under the portlets folder and try out the process mentioned above, but ending up with the same problem.

Sultee,

I have already tried the process mentioned by you and it's working as said in the above post. Just wanted a simpler way of doing the same thing. Any ways thanks for your help.

Once you have repeated the process that I mentioned, can you re-take a screenshot with the error and post it here? I want to make sure that the patch to the chat-portlet is actually pointing to a valid SDK path. Thanks!

Once you have repeated the process that I mentioned, can you re-take a screenshot with the error and post it here? I want to make sure that the patch to the chat-portlet is actually pointing to a valid SDK path. Thanks!

Hi Gregory,

Below are my steps followed with attached screen shot:1) Created a folder with path as:D:\liferay-plugins-sdk-6.0.6\plugins_sdk

In your example you need to explode the contents of chat-portlet into the portlets sub-folder of the plugins_sdk directory. So that way in the New Liferay Project from Existing source you can browse to a directory that has this path:

Tried the above process mentioned by you but resulted in the same error.

Apart from above I am having problem with some of the other topics. Have posted them in other forum and haven't got a proper response till now. It would be helpful if anything can be done from your end.

Still not resolved.Getting the same error. I posted the above comment in context to the error. As told by you I saw the error initially and tried to clear those and retried the process with same result and no error in Error Log. It means those error are related to some other problem.

I have exactly the same trouble. I made an empty portlet (test-portlet) with a "BUILD SUCCEFUL", after I copy it in the same directory (liferay-plugins-sdk-6.1.0\portlets\test-portlet - Copie) and if i trie to open it via "New Liferay Project from Existing Source" I have the message "Invalid project location".