Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
Omkar Khandare
Unable to undo effect of EXT plugin.
February 22, 2013 5:55 AM
Answer

Omkar Khandare

Rank: Junior Member

Posts: 40

Join Date: March 6, 2012

Recent Posts

Can anybody tell me how can i undo my EXT plugin effect..

I Overrode CreateAccountAction of liferay.

It was giving GroupFriendlyURLException

Now i want try same with hook Plugin as per Mika's Blog.
but i unable to undo changes made by previous EXT plugin.
its calling the same action again and again.

Plz help..
David H Nebinger
RE: Unable to undo effect of EXT plugin.
February 22, 2013 5:59 AM
Answer

David H Nebinger

Rank: Liferay Legend

Posts: 5742

Join Date: September 1, 2006

Recent Posts

delete the ext plugin from the webapps directory while tomcat is still running.
Omkar Khandare
RE: Unable to undo effect of EXT plugin.
February 22, 2013 6:08 AM
Answer

Omkar Khandare

Rank: Junior Member

Posts: 40

Join Date: March 6, 2012

Recent Posts

I am using Eclipse IDE.

I removed it from server it shows message like changes made by EXT plugin will not undone
Do some Project context cleanup.

then I run clean from right click menu of my Tomcat server in eclipse,

But unable to get older version of my CreateAccountAction.
Chintan Akhani
RE: Unable to undo effect of EXT plugin.
February 22, 2013 7:30 AM
Answer

Chintan Akhani

Rank: Regular Member

Posts: 106

Join Date: March 13, 2008

Recent Posts

Apart from deleting ext plugin from webapps, below are the stpes which you need o follow.

1. Remove the ext plugin from webapps.
2.stop the server.
3. Navigate to webapps/ ROOT/WEB-INF, remove for 'liferay-portlet-ext.xml', 'portlet-ext.xml', 'tiles-def-ext.xml', "ext-{ext-plagun}-ext.xml'. Do not delete 'struts-config.xml'
4. Navigate to 'ROOT/WEB-INF/lib', search fpr 'ext-{ext-plagin}-ext.jar', delete these four jar files.
5. Navigate to 'tomcat/lib/ext' and delete 'ext-{ext-plugin}-service.jar' file.
6. Restart the server, and see the console, it should prompt a message ' ext is undeployed'.

Please let me know in case you phase any problem.
Omkar Khandare
RE: Unable to undo effect of EXT plugin.
February 25, 2013 5:57 AM
Answer

Omkar Khandare

Rank: Junior Member

Posts: 40

Join Date: March 6, 2012

Recent Posts

Yeah it works..

But i was trying to Override CreateAccountAction using hook.

It gives ClassNot FoundException.

In most of the posts i found EXT plugin would be better for it.

If i want Override Only create_account.jsp Page & CreateAccountAction's
addUser Method How can i do it.

I want write custom create account jsp page which will receive dynamic Role parameter from any page.
& on submission Overridden addUser Will get the parameter & assign the role to the newly created User.

I am attaching the Action file that i am using for EXT plugin currently.
i have overridden the jsp page also, liferay shows my jsp but on action call
Sign in portlet not available.
shows.
& It gives GroupFriendlyURLException on cosole.

Plz Help.

My full EXT plugin attached.
Attachments: SACreateAccountAction.java (18.2k), sa-user-registration-ext.rar (33.2k)
Gnaniyar Zubair
RE: Unable to undo effect of EXT plugin.
February 25, 2013 5:59 AM
Answer

Gnaniyar Zubair

Rank: Liferay Master

Posts: 598

Join Date: December 19, 2007

Recent Posts

If you are overriding only addUser method , then why are you copied all the method in your custom createaccount action..?

just keep addUser method and deploy...
Omkar Khandare
RE: Unable to undo effect of EXT plugin.
February 25, 2013 6:13 AM
Answer

Omkar Khandare

Rank: Junior Member

Posts: 40

Join Date: March 6, 2012

Recent Posts

I tried with only addUser method also.

but facing the same problem.

then i found overridden processAction method consisting GroupFriendlyURLException instance to be caught in one of the post

so i implemented that also along with render method.
Chintan Akhani
RE: Unable to undo effect of EXT plugin.
February 27, 2013 8:22 AM
Answer

Chintan Akhani

Rank: Regular Member

Posts: 106

Join Date: March 13, 2008

Recent Posts

If you are extending 'CreateAccountAction' in ext than it requires one more change in struts-config.xml. Find out the action entry for same in struts-config.xml, copy that action entry and paste it in struts-config-ext.xml, now change the class name from 'CreateAccountAction' to your custom class name.

Whenever you deploy ext, make sure you follow deployment steps. After deployment, to verify whether it is deployed successfully or not, please look at console, it should display ext is deployed successfully.

Please let me know in case you face any problem.