Foros de discusión

war files

Asmae Samoua, modificado hace 15 años.

war files

Junior Member Mensajes: 35 Fecha de incorporación: 24/03/09 Mensajes recientes
Hello everybody,

I'm a begginner in liferay portal development, i created a portlet as a deployable war with Eclipse using the liferay portelt creation wizard, i don't know now how to deploy my portlet that i can add it to my portal user interface.
I will appriciate any explaination and thank you.
thumbnail
Samuel Kong, modificado hace 15 años.

RE: war files

Liferay Legend Mensajes: 1902 Fecha de incorporación: 10/03/08 Mensajes recientes
* First, make sure Liferay is running.
* Navigate your command line to <plugins-sdk>/portlets/your-portlet/
* Type ant deploy
* Wait until your app server logs says that your portlet has "registered successfully"
* Now you can go to Liferay's Add Application to add your portlet to a page.
Asmae Samoua, modificado hace 15 años.

RE: war files

Junior Member Mensajes: 35 Fecha de incorporación: 24/03/09 Mensajes recientes
Hello Samuel and thank you for your reply,
but when i try ant deploy i have errors, i don't know why ant can't find some folders, even if I created the build.<usernae>.properties and i modified the values as follow:

app.server.dir=C:\Liferay\liferay-portal-5.2.2\tomcat-5.5.27
app.server.classes.portal.dir=C:\Liferay\liferay-portal-5.2.2\tomcat-5.5.27\webapps\ROOT\WEB-INF\classes
app.server.lib.global.dir=C:\Liferay\liferay-portal-5.2.2\tomcat-5.5.27\common\lib\ext
app.server.lib.portal.dir=C:\Liferay\liferay-portal-5.2.2\tomcat-5.5.27\webapps\ROOT\WEB-INF\lib
app.server.portal.dir=C:\Liferay\liferay-portal-5.2.2\tomcat-5.5.27\webapps\ROOT
auto.deploy.dir=C:\Liferay\liferay-portal-5.2.2\deploy

I wish you could help me in this. thanks a lot.
thumbnail
Samuel Kong, modificado hace 15 años.

RE: war files

Liferay Legend Mensajes: 1902 Fecha de incorporación: 10/03/08 Mensajes recientes
What's the error you are getting?
Asmae Samoua, modificado hace 15 años.

RE: war files

Junior Member Mensajes: 35 Fecha de incorporación: 24/03/09 Mensajes recientes
the error is

C:\Liferay\liferay-plugins-sdk-5.2.2\portlets\test5-portlet>ant deploy
Buildfile: build.xml

compile:

merge:

BUILD FAILED
C:\Liferay\liferay-plugins-sdk-5.2.2\build-common-plugin.xml:128: C:\Liferay\lif
eray-plugins-sdk-5.2.2\portlets\test5-portlet\Liferayliferay-portal-5.2.2
omcat-5.5.27webappsROOTWEB-INFlib not found.
thumbnail
Samuel Kong, modificado hace 15 años.

RE: war files

Liferay Legend Mensajes: 1902 Fecha de incorporación: 10/03/08 Mensajes recientes
In your build.properties settings, change Change your \ (backslash) to / (slash)
Asmae Samoua, modificado hace 15 años.

RE: war files

Junior Member Mensajes: 35 Fecha de incorporación: 24/03/09 Mensajes recientes
Hello Samuel
Thank you soooo much for the very useful replay. now i have my portlets deloyed and portlet.war created.

clean-portal-dependencies:
[zip] Building zip: C:\Liferay\liferay-plugins-sdk-5.2.2\dist\t-portlet-5.2.2.1.war
deploy:
[copy] Copying 1 file to C:\Liferay\liferay-portal-5.2.2\deploy
BUILD SUCCESSFUL

But i still can't find my portlet under the sample categorie in add application.
Asmae Samoua, modificado hace 15 años.

RE: war files

Junior Member Mensajes: 35 Fecha de incorporación: 24/03/09 Mensajes recientes
PS: In the Tomcat log, when Tomcat detect the new war :

Loading file:/C:/Liferay/liferay-portal-5.2.2/tomcat-5.5.27/temp/2-mail-portlet/WEB-INF/classes/portlet.properties
14:52:52,614 INFO [AutoDeployDir:183] Processing t-portlet-5.2.2.1.war
14:52:52,614 INFO [PortletAutoDeployListener:77] Copying portlets for C:\Liferay\liferay-portal-5.2.2\deploy\t-portlet-5.2.2.1.war
Expanding: C:\Liferay\liferay-portal-5.2.2\deploy\t-portlet-5.2.2.1.war into C:\Liferay\liferay-portal-5.2.2\tomcat-5.5.27\temp\20090408145252614
Copying 1 file to C:\Liferay\liferay-portal-5.2.2\tomcat-5.5.27\temp\20090408145252614\WEB-INF
Copying 1 file to C:\Liferay\liferay-portal-5.2.2\tomcat-5.5.27\temp\20090408145252614\WEB-INF\classes
Copying 1 file to C:\Liferay\liferay-portal-5.2.2\tomcat-5.5.27\temp\20090408145252614\WEB-INF\classes
Copying 1 file to C:\Liferay\liferay-portal-5.2.2\tomcat-5.5.27\temp\20090408145252614\META-INF
Copying 25 files to C:\Liferay\liferay-portal-5.2.2\tomcat-5.5.27\bin\Liferayliferay-portal-5.2.2deploy\t-portletjavascript:%20;
Copying 1 file to C:\Liferay\liferay-portal-5.2.2\tomcat-5.5.27\bin\Liferayliferay-portal-5.2.2deploy\t-portlet
Deleting directory C:\Liferay\liferay-portal-5.2.2\tomcat-5.5.27\temp\20090408145252614
14:52:54,146 INFO [PortletAutoDeployListener:87] Portlets for C:\Liferay\liferay-portal-5.2.2\deploy\t-portlet-5.2.2.1.war copied successfully. Deployment will start in a few seconds.

I was waiting for more than few seconds javascript:%20; and nothing happend
Regards