留言板

GWT application deployment under Liferay 7 CE GA3

Damien Guillermet,修改在7 年前。

GWT application deployment under Liferay 7 CE GA3

Junior Member 帖子: 44 加入日期: 15-7-9 最近的帖子
Hello everybody,

I'm trying to deploy an application using GWT on the Liferay Portal 7 CE GA3.
The GWT module compilation produces a file MyPortlet.nocache.js packaged in the WAR folder /MyPortlet. I can import it via the header-portlet-javascript tag in the liferay-portlet.xml file. This script contains instructions to load several generated files (css and js) also located in the /MyPortlet folder. However during the view phase these files cannot be founded (404 error in web-browser console) because it tries to get them from (for instance) : http://localhost:8080/gwt/standard/standard.css (in nocache.js file it's a relative path, gwt/standard/standard.css).
Of course without these files it's impossible to render the output generated by GWT.

I guess it relates to the new OSGi architecture of Liferay 7 but I would be greatly grateful to anyone having a solution emoticon Otherwise it seems that GWT is incompatible with Liferay 7 emoticon

EDIT : I could provide a simple war to reproduce if it can help, except if there is already an explanation emoticon

Best regards,
Damien.

Lien vers le post en français : https://web.liferay.com/fr/community/forums/-/message_boards/message/83093013