Foros

Inicio » Liferay IDE » English

Vista combinada Visión Plana Vista de árbol
Discusiones [ Anterior | Siguiente ]
toggle
How to add existing liferay porject to IDE Biresh Choudhury 10 de marzo de 2011 5:33
RE: How to add existing liferay porject to IDE Gregory Amerson 10 de marzo de 2011 12:17
RE: How to add existing liferay porject to IDE Biresh Choudhury 10 de marzo de 2011 21:12
RE: How to add existing liferay porject to IDE Biresh Choudhury 11 de marzo de 2011 0:22
RE: How to add existing liferay porject to IDE Gregory Amerson 11 de marzo de 2011 7:50
RE: How to add existing liferay porject to IDE Biresh Choudhury 15 de marzo de 2011 6:15
RE: How to add existing liferay porject to IDE SZ khan 15 de marzo de 2011 6:58
RE: How to add existing liferay porject to IDE Gregory Amerson 15 de marzo de 2011 7:31
RE: How to add existing liferay porject to IDE Biresh Choudhury 24 de marzo de 2011 1:16
RE: How to add existing liferay porject to IDE Gregory Amerson 25 de marzo de 2011 0:15
RE: How to add existing liferay porject to IDE Biresh Choudhury 30 de marzo de 2011 4:18
RE: How to add existing liferay porject to IDE Gregory Amerson 30 de marzo de 2011 12:30
RE: How to add existing liferay porject to IDE Biresh Choudhury 30 de marzo de 2011 22:12
RE: How to add existing liferay porject to IDE Gregory Amerson 31 de marzo de 2011 11:30
RE: How to add existing liferay porject to IDE Biresh Choudhury 10 de abril de 2011 22:32
RE: How to add existing liferay porject to IDE Gregory Amerson 11 de abril de 2011 7:02
RE: How to add existing liferay porject to IDE Biresh Choudhury 12 de abril de 2011 21:41
RE: How to add existing liferay porject to IDE Gregory Amerson 13 de abril de 2011 4:35
RE: How to add existing liferay porject to IDE Biresh Choudhury 13 de abril de 2011 5:06
RE: How to add existing liferay porject to IDE M Gwen 29 de junio de 2012 7:14
RE: How to add existing liferay porject to IDE M Gwen 29 de junio de 2012 7:23
RE: How to add existing liferay porject to IDE Adam Hardy 2 de julio de 2012 1:52
RE: How to add existing liferay porject to IDE satya jangala 26 de marzo de 2011 3:42
RE: How to add existing liferay porject to IDE Gregory Amerson 28 de marzo de 2011 6:40
RE: How to add existing liferay porject to IDE Rohit Salecha 4 de mayo de 2011 5:37
Biresh Choudhury
How to add existing liferay porject to IDE
10 de marzo de 2011 5:33
Respuesta

Biresh Choudhury

Ranking: Junior Member

Mensajes: 29

Fecha de incorporación: 8 de diciembre de 2010

Mensajes recientes

Hi All,

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+Projects
http://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.

Thanks in advance,
Biresh
Gregory Amerson
RE: How to add existing liferay porject to IDE
10 de marzo de 2011 12:17
Respuesta

Gregory Amerson

LIFERAY STAFF

Ranking: Liferay Master

Mensajes: 935

Fecha de incorporación: 16 de febrero de 2010

Mensajes recientes

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.
Biresh Choudhury
RE: How to add existing liferay porject to IDE
10 de marzo de 2011 21:12
Respuesta

Biresh Choudhury

Ranking: Junior Member

Mensajes: 29

Fecha de incorporación: 8 de diciembre de 2010

Mensajes recientes

Thanks Gregory for a quick reply.

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.

Attached is the screen shot of the problem.
archivos adjuntos: WorkSpaceError Screen shot.bmp (739,7k)
Biresh Choudhury
RE: How to add existing liferay porject to IDE
11 de marzo de 2011 0:22
Respuesta

Biresh Choudhury

Ranking: Junior Member

Mensajes: 29

Fecha de incorporación: 8 de diciembre de 2010

Mensajes recientes

Gregory the problem got resolved in a different way.

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-portlet
This 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.

Doubt: Is there any better approach then the one specified above.


Thanks in advance.
Gregory Amerson
RE: How to add existing liferay porject to IDE
11 de marzo de 2011 7:50
Respuesta

Gregory Amerson

LIFERAY STAFF

Ranking: Liferay Master

Mensajes: 935

Fecha de incorporación: 16 de febrero de 2010

Mensajes recientes

Originally when You tried to import chat-portlet it was in your workspace directory, directly under the workspace,
1D:\liferay_workspace\chat-portlet


Instead you should create an SDK directory
1D:\liferay-plugins-sdk-6.0.6


And then grab the chat portlet from SVN:
1http://svn.liferay.com/repos/public/plugins/trunk/portlets/chat-portlet/

and add it to this directory:
1D:\liferay-plugins-sdk-6.0.6\portlets\chat-portlet


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.
Biresh Choudhury
RE: How to add existing liferay porject to IDE
15 de marzo de 2011 6:15
Respuesta

Biresh Choudhury

Ranking: Junior Member

Mensajes: 29

Fecha de incorporación: 8 de diciembre de 2010

Mensajes recientes

Thanks Gregory for the help.

I followed the steps and still getting the same error as above.

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.

Hope I am not missing out on any specific step.
SZ khan
RE: How to add existing liferay porject to IDE
15 de marzo de 2011 6:58
Respuesta

SZ khan

Ranking: Regular Member

Mensajes: 148

Fecha de incorporación: 31 de octubre de 2009

Mensajes recientes

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

Sultee
Gregory Amerson
RE: How to add existing liferay porject to IDE
15 de marzo de 2011 7:31
Respuesta

Gregory Amerson

LIFERAY STAFF

Ranking: Liferay Master

Mensajes: 935

Fecha de incorporación: 16 de febrero de 2010

Mensajes recientes

What are the contents of this directory?
1D:\liferay-plugins-sdk-6.0.6
Is it a full copy of the SDK?
Biresh Choudhury
RE: How to add existing liferay porject to IDE
24 de marzo de 2011 1:16
Respuesta

Biresh Choudhury

Ranking: Junior Member

Mensajes: 29

Fecha de incorporación: 8 de diciembre de 2010

Mensajes recientes

Hi Gregory,

Sorry for a late reply, since I was busy with other work had put this topic into the background for sometime.

Yes the path mentioned has full copy of SDK. The exact folder path is D:\liferay-plugins-sdk-6.0.6\plugins_sdk with sub-folders available as:
1) clients
2) dist
3) ext
4) hooks
5) layouttpl
6) lib
7) misc
8) portlets
9) themes
10) tools
11) webs

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.
Gregory Amerson
RE: How to add existing liferay porject to IDE
25 de marzo de 2011 0:15
Respuesta

Gregory Amerson

LIFERAY STAFF

Ranking: Liferay Master

Mensajes: 935

Fecha de incorporación: 16 de febrero de 2010

Mensajes recientes

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!
satya jangala
RE: How to add existing liferay porject to IDE
26 de marzo de 2011 3:42
Respuesta

satya jangala

Ranking: New Member

Mensajes: 8

Fecha de incorporación: 8 de noviembre de 2010

Mensajes recientes

hi ,

i am satya, i am working on liferay portal, i want to use the ,my login page instead of liferay login page , please suggessio n me ,

thanks
satya
Gregory Amerson
RE: How to add existing liferay porject to IDE
28 de marzo de 2011 6:40
Respuesta

Gregory Amerson

LIFERAY STAFF

Ranking: Liferay Master

Mensajes: 935

Fecha de incorporación: 16 de febrero de 2010

Mensajes recientes

If you are using Liferay IDE plugins for Eclipse, you could modify the login page by creating a hook plugin and using the custom_jsp feature to override the login.jsp in the portal.
  1. Create hook plugin
  2. Open the New Hook Wizard
  3. Select Custom JSPs option
  4. Add a JSP, search in Add JSP dialog for *login.jsp
  5. Select login.jsp
  6. Click Finish
  7. Edit the login.jsp in your project to make your modifications
  8. deploy plugin to Liferay Server
Biresh Choudhury
RE: How to add existing liferay porject to IDE
30 de marzo de 2011 4:18
Respuesta

Biresh Choudhury

Ranking: Junior Member

Mensajes: 29

Fecha de incorporación: 8 de diciembre de 2010

Mensajes recientes

Gregory Amerson:
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

2) Added the plugin sdk files to the path.

3) Added chat-portlet-6.0.6.1.war to portlets folder with path:
D:\liferay-plugins-sdk-6.0.6\plugins_sdk\portlets

4) Tried adding the same using IDE and getting the error as said.

Have attached the screenshot for your reference.
archivos adjuntos: Chat Portlet Addition Error.docx (144,4k)
Gregory Amerson
RE: How to add existing liferay porject to IDE
30 de marzo de 2011 12:30
Respuesta

Gregory Amerson

LIFERAY STAFF

Ranking: Liferay Master

Mensajes: 935

Fecha de incorporación: 16 de febrero de 2010

Mensajes recientes

Biresh,

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:
1D:\liferay-plugins-sdk-6.0.6\plugins_sdk\portlets\chat-portlet
Biresh Choudhury
RE: How to add existing liferay porject to IDE
30 de marzo de 2011 22:12
Respuesta

Biresh Choudhury

Ranking: Junior Member

Mensajes: 29

Fecha de incorporación: 8 de diciembre de 2010

Mensajes recientes

Hi Gregory,

Had left the above steps by mistake and added the same to end up with the same error.

Attached is the updated error screen shot.
archivos adjuntos: Chat Portlet Addition Error.docx (175,6k)
Gregory Amerson
RE: How to add existing liferay porject to IDE
31 de marzo de 2011 11:30
Respuesta

Gregory Amerson

LIFERAY STAFF

Ranking: Liferay Master

Mensajes: 935

Fecha de incorporación: 16 de febrero de 2010

Mensajes recientes

Try creating a liferay runtime first before you import the project to see if that lets you complete the wizard.
Biresh Choudhury
RE: How to add existing liferay porject to IDE
10 de abril de 2011 22:32
Respuesta

Biresh Choudhury

Ranking: Junior Member

Mensajes: 29

Fecha de incorporación: 8 de diciembre de 2010

Mensajes recientes

Hi Gregory,

Sorry for a late reply.

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.

Default Portlets on page

CAS integration without LDAP

Regards,
Biresh
Gregory Amerson
RE: How to add existing liferay porject to IDE
11 de abril de 2011 7:02
Respuesta

Gregory Amerson

LIFERAY STAFF

Ranking: Liferay Master

Mensajes: 935

Fecha de incorporación: 16 de febrero de 2010

Mensajes recientes

Can you post the contents of your error log? Window > Show View > Other > Error Log
Biresh Choudhury
RE: How to add existing liferay porject to IDE
12 de abril de 2011 21:41
Respuesta

Biresh Choudhury

Ranking: Junior Member

Mensajes: 29

Fecha de incorporación: 8 de diciembre de 2010

Mensajes recientes

Initially I found some error as attached.
Cleared all the error and tried to redo the whole process where I didn't get any such error.
Gregory Amerson
RE: How to add existing liferay porject to IDE
13 de abril de 2011 4:35
Respuesta

Gregory Amerson

LIFERAY STAFF

Ranking: Liferay Master

Mensajes: 935

Fecha de incorporación: 16 de febrero de 2010

Mensajes recientes

So does importing the chat-portlet work now without errors?
Biresh Choudhury
RE: How to add existing liferay porject to IDE
13 de abril de 2011 5:06
Respuesta

Biresh Choudhury

Ranking: Junior Member

Mensajes: 29

Fecha de incorporación: 8 de diciembre de 2010

Mensajes recientes

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.
Rohit Salecha
RE: How to add existing liferay porject to IDE
4 de mayo de 2011 5:37
Respuesta

Rohit Salecha

Ranking: Junior Member

Mensajes: 50

Fecha de incorporación: 20 de febrero de 2011

Mensajes recientes

Check this out

http://liferaydemystified.blogspot.com/
M Gwen
RE: How to add existing liferay porject to IDE
29 de junio de 2012 7:14
Respuesta

M Gwen

Ranking: New Member

Mensajes: 2

Fecha de incorporación: 29 de junio de 2012

Mensajes recientes

Hi all,

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".

Eclipse indigo
Liferay 6.1.0
sdk 6.1.0


GM
M Gwen
RE: How to add existing liferay porject to IDE
29 de junio de 2012 7:23
Respuesta

M Gwen

Ranking: New Member

Mensajes: 2

Fecha de incorporación: 29 de junio de 2012

Mensajes recientes

If I rename test-portlet - Copie to test-portlet-portlet it work, the name must have suffix "-portlet", it's a little bit stupid
Adam Hardy
RE: How to add existing liferay porject to IDE
2 de julio de 2012 1:52
Respuesta

Adam Hardy

Ranking: New Member

Mensajes: 19

Fecha de incorporación: 18 de mayo de 2012

Mensajes recientes

M Gwen:
If I rename test-portlet - Copie to test-portlet-portlet it work, the name must have suffix "-portlet", it's a little bit stupid



Yes, if you download the source code and search on the error message, you'll find that there's also checks hardwired for other suffixes, e.g. "-hook", "-ext" and "-theme".

Seems unnecessary to me. I don't know why your project should be invalid if you don't name it with one of those suffixes.