Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Abhi Ed
deploying ext plugin
December 25, 2012 11:53 PM
Answer

Abhi Ed

Rank: Regular Member

Posts: 118

Join Date: June 4, 2012

Recent Posts

Hello Friends ,
I have created a custom plugin for extending UpdateTermsOfUseAction class.

After building the ext plugin i have to manually copy ext-impl.jar and struts-ext.xml in their desired locations inside server .
I am using jboss 5.1.

When i just copy the war file of my plugin into deploy folder of liferay home (not the deploy inside server) , the plugin doesn't work.

Can I get clarification regarding my situation ?

Regards
Abhi
Amit Doshi
RE: deploying ext plugin
December 26, 2012 2:56 AM
Answer

Amit Doshi

Rank: Liferay Master

Posts: 544

Join Date: December 29, 2010

Recent Posts

Hi Abhi,

Can you plz elaborate, which version of liferay and ANT you are using ?


When i just copy the war file of my plugin into deploy folder of liferay home (not the deploy inside server) , the plugin doesn't work.

Can I get clarification regarding my situation ?


Have you made build.user-name.properties file in the plugin folder ?

And if you not done the same then plz do it and also un-comment the part of JBOSS Server.

Thanks & Regards,
Amit Doshi
Hitoshi Ozawa
RE: deploying ext plugin
January 2, 2013 5:42 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7990

Join Date: March 23, 2010

Recent Posts

Have you set dependencies in liferay-plugin-package.properties
Jitendra Rajput
RE: deploying ext plugin
January 2, 2013 10:53 PM
Answer

Jitendra Rajput

Rank: Liferay Master

Posts: 709

Join Date: January 7, 2011

Recent Posts

You can also achieve this functionality by creating hook. Check blog written by mika to override and adding struts action using hook.

http://www.liferay.com/web/mika.koivisto/blog/-/blogs/7132115
Abhi Ed
RE: deploying ext plugin
January 3, 2013 12:16 AM
Answer

Abhi Ed

Rank: Regular Member

Posts: 118

Join Date: June 4, 2012

Recent Posts

i am working the eclipse IDE and it autogenerated liferay-plugin-package.properties with the following entries :

name=CustomTermsOfUseAction
module-group-id=liferay
module-incremental-version=1
tags=
short-description=
change-log=
page-url=http://www.liferay.com
author=Liferay, Inc.
licenses=LGPL

Do I need to add some more entries in the file?
Abhi Ed
RE: deploying ext plugin
January 3, 2013 12:17 AM
Answer

Abhi Ed

Rank: Regular Member

Posts: 118

Join Date: June 4, 2012

Recent Posts

Jitendra Rajput:
You can also achieve this functionality by creating hook. Check blog written by mika to override and adding struts action using hook.

http://www.liferay.com/web/mika.koivisto/blog/-/blogs/7132115



I am using liferay 6.06 CE.I guess hook doesn't support action overriding in my version.
Abhi Ed
RE: deploying ext plugin
January 3, 2013 1:53 AM
Answer

Abhi Ed

Rank: Regular Member

Posts: 118

Join Date: June 4, 2012

Recent Posts

Amit Doshi:
Hi Abhi,

Can you plz elaborate, which version of liferay and ANT you are using ?


When i just copy the war file of my plugin into deploy folder of liferay home (not the deploy inside server) , the plugin doesn't work.

Can I get clarification regarding my situation ?


Have you made build.user-name.properties file in the plugin folder ?

And if you not done the same then plz do it and also un-comment the part of JBOSS Server.

Thanks & Regards,
Amit Doshi



Hii Amit ,
build.user-name.properties file isn't present in my ext plugin directory structure .
Where should I create it? I have attched an image showing my existing ext plugin structure

And regarding entries in build.user-name.properties file :
Do I need more entries than listed below?

ext.work.dir=/Users/ed/liferay/servers
app.server.dir=${ext.work.dir}/liferay-portal-6.0.0/jboss-5.1.0
app.server.zip.name=/Users/ed/liferay/portal/dist/liferay-portal-jboss-6.0.0.zip

By default Users here will be C:\Users\ed created by windows right???

Regards,
Abhi
Attachment

Attachments: actionProject.jpg (234.4k)
Rahul Sharma
RE: deploying ext plugin
January 3, 2013 5:31 AM
Answer

Rahul Sharma

Rank: Junior Member

Posts: 60

Join Date: January 10, 2012

Recent Posts

If the deploy folder is empty and still your ext is not working then you have to write a new line ",/WEB-INF/struts-config-ext.xml" in web.xml(ROOT/WEB-INF/) along with the entry of "/WEB-INF/struts-config.xml" .
Now your ext plugin should works.

Hope that helps!