开发者

Liferay Web Application Integration (WAI) problem

I am trying to get an existing application to show up as a portlet in Liferay. I have confirmed that the WAR file will deploy in Tomcat/Jetty. Apparently, I should be able to simply copy the WAR file to Liferay's deploy folder and Liferay will take care of the rest.

The portlet does show up in the 'Add' menu, but I get a 404 error once I have added it. The path seems to be wrong.

The path Liferay seems to try to go to is: http://localhost:8080/web/guest/home/-/waiapp/jms-gui/

However, the application is running at: http://loca开发者_运维知识库lhost:8080/jms-gui/secure/jmsPortlet

I'm not sure what to change or how to configure this to get it to work. Any help would be appreciated.

Thanks, Michael Kolakowski


Apparently, I should be able to simply copy the WAR file to Liferay's deploy folder and Liferay will take care of the rest.

No, this isn't true.

Liferay is portlet container. By "existing application" you probably mean usual java webapp, Servlet API based. Portlets have their own API, you cannot just take Servlet based webapp and turn it into portlet webapp without changing the code, because Portlets are different from Servlets.

In your case you could probably go for iFrame portlet that would iFrame your webapp, which you can deploy to same Tomcat where Liferay is running, if you wish. But you shouldn't deploy it via Liferay deployment procedure, because that's intended for Liferay plugins, not for usual webapps.


Yes, you should be able to, though there are some limitations. Here Liferay Wiki is the relevant documentation, such as it is. I only discovered this recently by dropping a grails app into my liferay server's hot deploy directory to see what would happen. Once it was deployed I started looking around in the webapps folder and was surprised to see portlet.xml and liferay-portlet.xml files. Sure enough once I logged in and looked at the Add Portlet menu there was an 'undefined' category and my grails app as a portlet. Authentication isn't shared, and I believe you can break it if your webapp has an outward link off site. Still, pretty fun hack!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜