Vista combinada Visión Plana Vista de árbol
Discusiones [ Anterior | Siguiente ]
toggle
Hiepnq Nguyen
Problem when deploy ext plugin with liferay 6.1 on jboss
4 de julio de 2012 3:13
Respuesta

Hiepnq Nguyen

Ranking: New Member

Mensajes: 13

Fecha de incorporación: 23 de agosto de 2010

Mensajes recientes

I downloaded and unpacked liferay-jboss-bundled from liferay.com. Jboss is version 7.0.2

I develop a extension plugin to change configuration it. I add two file portal-ext.properties and system-ext.properties in docroot/WEB-INF/ext-impl/src ... Its name is Setting-ext

I deployed this ext plugin, restart jboss AS ... there is no error, Setting-ext.deployed file was created in deployment folder. But when I check directory $LIFERAY_HOME/jboss-as-7.1.1.Final/standalone/deployments/ROOT.war/WEB-INF/classes, those files (portal-ext.properties & system-ext.properties) are not appeared and have not any setting in ext-plugin is applied ...

I try deploying it on Tomcat (with tomcat bundles - version 7.0.23), then those 2 files are appeared and applied ..

What is bug?
David H Nebinger
RE: Problem when deploy ext plugin with liferay 6.1 on jboss
4 de julio de 2012 4:50
Respuesta

David H Nebinger

Community Moderator

Ranking: Liferay Legend

Mensajes: 11471

Fecha de incorporación: 1 de septiembre de 2006

Mensajes recientes

You cannot deploy portal-ext.properties and/or system-ext.properties via a hook, an EXT plugin, etc.

Just drop them in the location indicated in the installation doco and it will work.

It is not a bug of any kind, I'm sure you haven't been reading about deploying these files in this manner from any Liferay documentation...
Hiepnq Nguyen
RE: Problem when deploy ext plugin with liferay 6.1 on jboss
4 de julio de 2012 8:50
Respuesta

Hiepnq Nguyen

Ranking: New Member

Mensajes: 13

Fecha de incorporación: 23 de agosto de 2010

Mensajes recientes

Thank David H Nebinger!

But when I deploy it on Tomcat, 2 files portal-ext.properties and system-ext.properties are added in the $CATALINA_HOME/webapps/ROOT/WEB-INF/classes ...
And when I created an EXT via SDK ( ./create.sh ), It was generating a default portal-ext.properties file in the docroot/WEB-INF/ext-impl/src directory ... so I think they can be deployed via an EXT ... U can refer from page 58 - "liferay-developer-guide-6.0.pdf" - Creating an Ext plugin - or this link...

Plz tell me why it is not available on Jboss 7.x? (I tried it on jboss 7.0.2 and 7.1.1 - and received a same result)...
David H Nebinger
RE: Problem when deploy ext plugin with liferay 6.1 on jboss
4 de julio de 2012 12:32
Respuesta

David H Nebinger

Community Moderator

Ranking: Liferay Legend

Mensajes: 11471

Fecha de incorporación: 1 de septiembre de 2006

Mensajes recientes

The portal-ext.properties file mentioned there has the same restrictions as a hook, as only certain properties can be overriden in this way, and system-ext.properties certainly is not supported.

The only way to deploy the actual portal-ext.properties and system-ext.properties is to drop them into the ROOT/WEB-INF/classes directory.

Period.
Hiepnq Nguyen
RE: Problem when deploy ext plugin with liferay 6.1 on jboss
4 de julio de 2012 18:50
Respuesta

Hiepnq Nguyen

Ranking: New Member

Mensajes: 13

Fecha de incorporación: 23 de agosto de 2010

Mensajes recientes

Thank you!

In file portal-ext.properties ... I want to replace default company logo by my logo ...
Fisrt of all, I create an EXT plugin project is named "Setting-ext", I put myLogo.png file into an another directory (resource/images) of this project ...
And I override image.default.company.logo=resources/images/myLogo.png in file portal-ext.properties, after that I drop it to ROOT/WEB-INF/classes ...
Finally, I deploy EXT project (Setting-ext) ...

I receive 2 result:
- On Tomcat: It is working well and I replaced default company logo by my logo successfully ...
- On Jboss 7.x, It seems not working and I have not received any logo (default Liferay logo is not appeared, too)

Why is it? How should I deploy it?
Fanzhen Meng
RE: Problem when deploy ext plugin with liferay 6.1 on jboss
1 de febrero de 2013 0:48
Respuesta

Fanzhen Meng

Ranking: New Member

Mensajes: 1

Fecha de incorporación: 16 de marzo de 2012

Mensajes recientes

I have the same problem with Liferay 6.1.1 and Jboss 7.1.1

And get headache for a couple of days!!! Our customers are waiting to use the project !!!

So if anyone here know how to resolve it ,please tell me !!!

Thanks in advance!!!
Thiago Leão Moreira
RE: Problem when deploy ext plugin with liferay 6.1 on jboss
25 de julio de 2013 13:15
Respuesta

Thiago Leão Moreira

LIFERAY STAFF

Ranking: Liferay Legend

Mensajes: 1433

Fecha de incorporación: 10 de octubre de 2007

Mensajes recientes

I'm facing the same issue with Java 1.7, with Java 1.6 it works like a charm. Has someone found the root cause of the problem?