论坛

主页 » Liferay IDE » English

组合视图 统一视图 树状图
讨论主题 [ 上一个 | 下一个 ]
toggle
Pascal BEGUE
Multiple ext plugins
2010年12月1日 下午12:07
答复

Pascal BEGUE

等级: Junior Member

帖子: 29

加入日期: 2009年12月17日

最近的帖子

Hi,

As far as I know, it is possible to have more than one ext plugins with the plugins SDK.

Unfortunately, it is not possible with the Liferay IDE (I am getting an error message).

Am I wrong ? Do I have to limit my developments using only one ext plugin ?

Thanks for your help.

Pascal
Sandeep Nair
RE: Multiple ext plugins
2010年12月2日 上午6:13
答复

Sandeep Nair

等级: Liferay Legend

帖子: 1692

加入日期: 2008年11月5日

最近的帖子

Frankly speaking Pascal i was happy with one extension environment. Ext plugin has lots of problem even in EE version. There are class loading issues. In ext environment you just had to start server once after deployment. Here you have to start server twice and that too in a proper way.

So to answer your question if possible stick to one Ext Plugin.
Tomas Polesovsky
RE: Multiple ext plugins
2010年12月3日 下午1:17
答复

Tomas Polesovsky

LIFERAY STAFF

等级: Liferay Master

帖子: 586

加入日期: 2009年2月13日

最近的帖子

Hi Pascal,

I'm trying to make Ext Plugin more usable (see LPS-9442). But for now it is really far easier to use just one.

-- tom
Olaf Kock
RE: Multiple ext plugins
2010年12月7日 下午2:55
答复

Olaf Kock

LIFERAY STAFF

等级: Liferay Legend

帖子: 1961

加入日期: 2008年9月23日

最近的帖子

Tomas Polesovsky:
But for now it is really far easier to use just one.


+1, when you use multiple ext-plugins, you're supposed to touch each file in only one ext-plugin. Every plugin that contains a file that's already been touched by a different ext-plugin will be rejected. Now think of web-xml...

Using multiple ext-plugins definitely works, but is to be considered to be an advanced feature - usable if you know what you have to expect. As Tomas said - it's really a lot easier to just use one for the time being.
Gregory Amerson
RE: Multiple ext plugins
2010年12月17日 上午11:11
答复

Gregory Amerson

LIFERAY STAFF

等级: Liferay Master

帖子: 935

加入日期: 2010年2月16日

最近的帖子

Thanks guys for the discussion. Until all of the work that Tomas has been doing actually lands in portal, at least for 6.0.x I think its safest to only have one ext-plugin per tomcat instance. Especially for the Liferay IDE which many first-time liferay developers will be using.
Jack Bakker
RE: Multiple ext plugins
2010年12月18日 上午10:15
答复

Jack Bakker

等级: Liferay Master

帖子: 645

加入日期: 2010年1月3日

最近的帖子

Not sure if this is helpful comment:

for each client workspace, I've been maintaining a *-util regular Java project which I export to /lib/ext/*-util.jar which does various things including interfacing with service jars (also deployed to /lib/ext) (comparators, general utilities for multiple portlets, etc.)

use of ext plugin over global classpath jar needs consideration ; my advantage is that I outsource for ext approach but still can use my own global jars without interfering with ext ; and I can have multiple /lib/ext/*.jar for many things
Gregory Amerson
RE: Multiple ext plugins
2011年2月8日 上午7:31
答复

Gregory Amerson

LIFERAY STAFF

等级: Liferay Master

帖子: 935

加入日期: 2010年2月16日

最近的帖子

Just an update, in the upcoming release of Liferay IDE 1.5 (releasing in about a week) you can do deploy multiple Ext plugins to the Liferay tomcat instance due to the improvements in Ext deployments made in upcoming 6.0.6 version of Liferay Portal.
Jack Bakker
RE: Multiple ext plugins
2011年4月5日 下午5:58
答复

Jack Bakker

等级: Liferay Master

帖子: 645

加入日期: 2010年1月3日

最近的帖子

interesting this

just coming out of the silent dev zone towards deploy of new www.cbi.ca (on 6.0.5) with much public and private going on (plug plug in ?)

I guess additional challenge is coordinating multiple ext from one or more parties involved
kiran kumar
RE: Multiple ext plugins
2012年6月5日 下午11:02
答复

kiran kumar

等级: New Member

帖子: 5

加入日期: 2012年2月1日

最近的帖子

I am using Liferay 6.1 EE. Both plugins sdk and tomcat bundle are EE. Is it possible to deploy morethan one ext(ant deploy). The first ext war is deployed and is applied successfully. When I deploy the second ext war, i got
14:09:46,924 ERROR [ExtHotDeployListener:159] Extension environment for sample-file-ext cannot be applied because of detected conflicts:
Captcha-Portlet-Action-ext:
ext-web/docroot/META-INF/MANIFEST.MF
ext-web/docroot/WEB-INF/liferay-portlet-ext.xml
ext-web/docroot/WEB-INF/portlet-ext.xml
ext-web/docroot/WEB-INF/struts-config-ext.xml
ext-web/docroot/WEB-INF/tiles-defs-ext.xml
ext-web/docroot/WEB-INF/web.xml

Is it the limitation of Liferay to use only one ext? or have I missed any configuration setting?

Thanks.
David H Nebinger
RE: Multiple ext plugins
2012年6月6日 上午5:21
答复

David H Nebinger

等级: Liferay Legend

帖子: 7252

加入日期: 2006年9月1日

最近的帖子

No, you missed the discussion that each separate EXT should not modify the same files.

Your log message shows that you're doing that, the "Extension environment for sample-file-ext cannot be applied because of detected conflicts" message.
kiran kumar
RE: Multiple ext plugins
2012年6月7日 上午6:03
答复

kiran kumar

等级: New Member

帖子: 5

加入日期: 2012年2月1日

最近的帖子

No. Both the ext's contain different Actions. One of the ext contains CaptchaPortletAction and the other one contains LoginAction with each struts-config-ext.xml modified accordingly in both the ext's.

The same is happening when I deploy(ant deploy) two sample blank ext's(created with plugins sdk 6.1 ee) and deployed.

But, I am able to deploy(direct deploy) through the eclipse IDE any number of ext wars. Whereas ant deploy, I can only deploy one ext, and for the second one I got "Conflicts" error.
David H Nebinger
RE: Multiple ext plugins
2012年6月7日 上午6:13
答复

David H Nebinger

等级: Liferay Legend

帖子: 7252

加入日期: 2006年9月1日

最近的帖子

Because each of the EXT plugins have the standard XML files that cannot be merged, hence your error.

Just because they have different actions doesn't mean there's not corresponding stuff in the standard files that hook them up.

Just say no to multiple EXT plugins. Use one w/ both of your action classes in it.
kiran kumar
RE: Multiple ext plugins
2012年6月8日 上午4:14
答复

kiran kumar

等级: New Member

帖子: 5

加入日期: 2012年2月1日

最近的帖子

Thanks David H Nebinger.

Is there any scope to use multiple ext's or I should strictly stick to a single extension environment that contains many action classes?
David H Nebinger
RE: Multiple ext plugins
2012年6月8日 上午5:13
答复

David H Nebinger

等级: Liferay Legend

帖子: 7252

加入日期: 2006年9月1日

最近的帖子

Multiple EXTs were not meant to be supported. While some may have been able to get a narrow configuration to work, it should be avoided.

Frankly, there is no reason at all for multiple EXTs. EXTs have clearly defined use cases and, since you're the developer, you only need just one.

Most of your work should be going into the other plugins, anyway.
kiran kumar
RE: Multiple ext plugins
2012年6月10日 下午11:55
答复

kiran kumar

等级: New Member

帖子: 5

加入日期: 2012年2月1日

最近的帖子

Thanks David.
Dileepkumar R
RE: Multiple ext plugins
2012年6月11日 上午3:14
答复

Dileepkumar R

等级: New Member

帖子: 4

加入日期: 2012年3月5日

最近的帖子

Hi David,

What the case if multiple developers are developing multiple ext's with different Actions using Extension Environment. How to deploy them?
David H Nebinger
RE: Multiple ext plugins
2012年6月11日 上午5:16
答复

David H Nebinger

等级: Liferay Legend

帖子: 7252

加入日期: 2006年9月1日

最近的帖子

Use a decent SCM tool that can merge changes from many developers.

I'm currently playing with git/github.com, so I can see that they would support such a thing...
Sylvain Sicard
RE: Multiple ext plugins
2012年9月22日 上午9:43
答复

Sylvain Sicard

等级: New Member

帖子: 2

加入日期: 2012年6月28日

最近的帖子

This is not only a SCM issue.
There are a couple of use case where multiple ext-plugins would be more convenient than one.
For example, if my compagny works on several Liferay projects, I would have one "generic fix pack" ext plugin and one "project specific" ext plugin. The first ext would be in one svn repo ( a compagny wide repo ) with it's own life cycle and the second ext would be in a project specific repo.
In this use case it would be great to deploy the two ext plugins and let Liferay merge them at runtime.
Hitoshi Ozawa
RE: Multiple ext plugins
2012年9月22日 下午6:40
答复

Hitoshi Ozawa

等级: Liferay Legend

帖子: 7954

加入日期: 2010年3月23日

最近的帖子

The problem with multiple ext-plugins is application server may not load ext-plugins in the same order everytime. If ext-plugins aren't dependent of each other, this won't be a problem but if there is, it may cause an error. From the liferay.com side, it would be better to make developers merge all changes into one ext-plugin before it's deployed to lessen bug reports that's really a fault of the developer.

I just don't see why you just can't write a simple script to merge all your files into one ext-plugin and just deploy that. It's probably going to be easier to track bugs this way too.
Raja Seth
RE: Multiple ext plugins
2013年1月10日 下午11:14
答复

Raja Seth

等级: Regular Member

帖子: 123

加入日期: 2011年8月18日

最近的帖子

Thanks a lot Hitoshi. It served my problem.... emoticon