Forums

Home » Liferay IDE » English

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Pavel Horal
Recommended deployment context does not work
March 29, 2012 3:47 AM
Answer

Pavel Horal

Rank: New Member

Posts: 14

Join Date: June 16, 2011

Recent Posts

Hi,

I have a problem with Liferay IDE and simple portlet application. Liferay IDE is ignoring recommended-deployment-context in liferay-plugin-package.xml. My settings are:

* FOO as recommended-deployment-context (in liferay-plugin-package.xml)
* BAR as WTP's context-root (in .settings/org.eclipse.wst.common.component)
* BAZ as the project's name in Eclipse

The result is that the application is being deployed in the BAZ context - same as the project name, thus ignoring both Liferay package and WTP's configuration.

When I build the portlet from command line, I get XXX-1.0.war. When deployed manually, the recommended deployment context is correct (i.e. FOO) - that is why I think the problem must be in Liferay IDE.

I saw that recommended-deployment-context should be supported since Liferay IDE 1.4. Any advice what can be wrong? Can someone confirm it works?

My environment is:

* Liferay Portal 6.1 CE (Tomcat)
* Liferay IDE 1.5.0.v2012011

Thanks,
Pavel
Pavel Horal
RE: Recommended deployment context does not work
March 30, 2012 12:37 AM
Answer

Pavel Horal

Rank: New Member

Posts: 14

Join Date: June 16, 2011

Recent Posts

I think I might have confused support for recommended-deployment-context with support for Liferay's custom (non-root) context. So I am not sure whether this is bug (it is ignoring WTP's settings) or a feature request.
Pavel Horal
RE: Recommended deployment context does not work
March 30, 2012 1:58 AM
Answer

Pavel Horal

Rank: New Member

Posts: 14

Join Date: June 16, 2011

Recent Posts

Liferay IDE has support only for required-deployment-contexts - this is different configuration, which can affect the order of application deployment. There is no support for recommended-deployment-context.

When deploying application, this context XML is used:

1<?xml version="1.0" encoding="UTF-8"?>
2<Context docBase="/opt/liferay-hsql/tomcat-7.0.23/webapps/BAZ" reloadable="true" source="org.eclipse.jst.jee.server:BAZ"/>


I will investigate a little bit more before giving up... emoticon
Pavel Horal
RE: Recommended deployment context does not work
March 30, 2012 2:10 AM
Answer

Pavel Horal

Rank: New Member

Posts: 14

Join Date: June 16, 2011

Recent Posts

Ok... I've ended in

1com.liferay.ide.eclipse.server.tomcat.core.LiferayPublishOperation#publishDir


Moving forward would mean unreasonable effort for me. I will check issue tracker and enter feature request. I will post the link back here.

If anyone is having problems with this, the workaround is pretty simple - just rename your project to recommended-deployment-context.
Pavel Horal
RE: Recommended deployment context does not work
March 30, 2012 2:38 AM
Answer

Pavel Horal

Rank: New Member

Posts: 14

Join Date: June 16, 2011

Recent Posts

Created improvement request http://issues.liferay.com/browse/IDE-589 .