Vista combinada Visión Plana Vista de árbol
Discusiones [ Anterior | Siguiente ]
toggle
Jens Hamisch
Liferay 6.1 CE GA1, JBoss AS 7.0.2, jsp overridung via hook not working
23 de junio de 2012 7:50
Respuesta

Jens Hamisch

Ranking: Junior Member

Mensajes: 26

Fecha de incorporación: 7 de junio de 2012

Mensajes recientes

Hi,


I'm trying to override the "configuration.jsp" in the asset_publisher portlet using a hook.

The WAR file containing the hook gets deployed to the server.
The server log shows the following at the time, when I upload the WAR file using the control panel.


16:06:53,539 INFO (com.liferay.portal.kernel.deploy.auto.AutoDeployScanner) 16:06:53,539 INFO [AutoDeployDir:167] Processing segeln-de-asset-publisher-hook-6.1.0.1.1.war
16:06:53,540 INFO (com.liferay.portal.kernel.deploy.auto.AutoDeployScanner) 16:06:53,540 INFO [HookAutoDeployListener:43] Copying hook plugin for /var/jboss/standalone/deploy/segeln-de-asset-publisher-hook-6.1.0.1.1.war
16:06:53,544 INFO (com.liferay.portal.kernel.deploy.auto.AutoDeployScanner) Expanding: /var/jboss/standalone/deploy/segeln-de-asset-publisher-hook-6.1.0.1.1.war into /var/tmp/20120623160653544
16:06:53,552 INFO (com.liferay.portal.kernel.deploy.auto.AutoDeployScanner) Copying 1 file to /var/tmp/20120623160653544/WEB-INF
16:06:53,586 INFO (com.liferay.portal.kernel.deploy.auto.AutoDeployScanner) Copying 1 file to /var/tmp/20120623160653544/WEB-INF/classes
16:06:53,587 INFO (com.liferay.portal.kernel.deploy.auto.AutoDeployScanner) Copying 1 file to /var/tmp/20120623160653544/WEB-INF/classes
16:06:53,588 INFO (com.liferay.portal.kernel.deploy.auto.AutoDeployScanner) Copying 1 file to /var/tmp/20120623160653544/WEB-INF
16:06:53,589 INFO (com.liferay.portal.kernel.deploy.auto.AutoDeployScanner) Copying 1 file to /var/tmp/20120623160653544/WEB-INF
16:06:53,597 INFO (com.liferay.portal.kernel.deploy.auto.AutoDeployScanner) Building war: /var/tmp/20120623160653594
16:06:53,643 INFO (com.liferay.portal.kernel.deploy.auto.AutoDeployScanner) Warning: META-INF/jsp/html/portlet/asset_publisher/configuration.jsp modified in the future.
16:06:53,654 INFO (com.liferay.portal.kernel.deploy.auto.AutoDeployScanner) Building war: /opt/jboss_7.0.2/standalone/deployments/segeln-de-asset-publisher-hook.war
16:06:53,760 INFO (com.liferay.portal.kernel.deploy.auto.AutoDeployScanner) Deleting directory /var/tmp/20120623160653544
16:06:53,796 INFO (com.liferay.portal.kernel.deploy.auto.AutoDeployScanner) 16:06:53,796 INFO [HookAutoDeployListener:49] Hook for /var/jboss/standalone/deploy/segeln-de-asset-publisher-hook-6.1.0.1.1.war copied successfully. Deployment will start in a few seconds.


JBoss has copied over the WAR file in the /deploy directory at this time.
It bundles another WAR file (same name w/o liferay version) into the /deployments directory and deploy this as follows:


16:06:57,334 INFO (MSC service thread 1-6) 16:06:57,333 INFO [PluginPackageUtil:1099] Reading plugin package for segeln-de-asset-publisher-hook
16:06:57,336 INFO (MSC service thread 1-6) 16:06:57,336 INFO [HookHotDeployListener:1101] Hook for segeln-de-asset-publisher-hook was unregistered
16:06:57,343 INFO [org.jboss.as.server.deployment] (MSC service thread 1-10) Stopped deployment segeln-de-asset-publisher-hook.war in 13ms
16:06:57,344 INFO [org.jboss.as.server.deployment] (MSC service thread 1-9) Starting deployment of "segeln-de-asset-publisher-hook.war"
16:06:57,373 INFO [org.jboss.as.jpa] (MSC service thread 1-6) added javax.persistence.api dependency to segeln-de-asset-publisher-hook.war

16:06:57,389 INFO (MSC service thread 1-7) 16:06:57,389 INFO [PluginPackageUtil:1099] Reading plugin package for segeln-de-asset-publisher-hook
16:06:57,402 INFO (MSC service thread 1-7) 16:06:57,402 INFO [HookHotDeployListener:1901] Registering hook for segeln-de-asset-publisher-hook
16:06:57,405 INFO (MSC service thread 1-7) 16:06:57,405 INFO [HookHotDeployListener:978] Hook for segeln-de-asset-publisher-hook is available for use
16:06:57,428 INFO [org.jboss.web] (MSC service thread 1-7) registering web context: /segeln-de-asset-publisher-hook
16:06:58,022 INFO [org.jboss.as.server.controller] (DeploymentScanner-threads - 1) Replaced deployment "segeln-de-asset-publisher-hook.war" with deployment "segeln-de-asset-publisher-hook.war"



Deployment seems to work fine. There's no glue in the server log file pointing to any issue ...
...but:

At this time in the VFS of JBoss I may locate two versions of the configuration.jsp file:
- One of those in the ROOT.war tree,
- the other one in the segeln-de-asset-publisher-hook.war tree.

However there's no configuration.portal.jsp anywhere ...

And, as expected, the core configuration.jsp is still in use.



Do I miss something?


I'm running JBoss in standalone mode on the development system right now.
The deployment is closed (zipped WAR files), because the production system to which the entire portal is to be transferred runs in managed domain mode, which does not support exploded deployments.


Thanks in advance for your help.


Jens
Jens Hamisch
RE: Liferay 6.1 CE GA1, JBoss AS 7.0.2, jsp overridung via hook not working
24 de junio de 2012 1:01
Respuesta

Jens Hamisch

Ranking: Junior Member

Mensajes: 26

Fecha de incorporación: 7 de junio de 2012

Mensajes recientes

Hi,


I tried an exploded deployment on the development server and things were working as expected.
The hook is working, the jsp got replaced and the .portal.jsp became visible in the deployed directory tree. However the .portal.jsp nevertheless was not available on the VFS. However the portal showed the changed introduced by the hook.

So is there something special to JBOSS closed deployments?

Does this result in the conclusion, that liferay is not supported in a JBOSS managed domain setup, because this implies closed deployments?
There's a howto out on the net addressing this:
http://blogs.xtivia.com/home/-/blogs/configuring-liferay-6-1-ce-ga1-on-jboss-7-0-2-as-a-managed-domain?_33_redirect=null

However as exploded deployment is not supported in a JBOSS managed domain setup, this howto also includes packing ROOT.war into a zipfile ...


Any ideas out there?


Kind regards,
Jens
Hitoshi Ozawa
RE: Liferay 6.1 CE GA1, JBoss AS 7.0.2, jsp overridung via hook not working
8 de julio de 2012 6:50
Respuesta

Hitoshi Ozawa

Ranking: Liferay Legend

Mensajes: 7990

Fecha de incorporación: 23 de marzo de 2010

Mensajes recientes

Have you seen the following thread?

http://www.liferay.com/community/forums/-/message_boards/message/13579379