简体   繁体   English

Vaadin应用程序未在Liferay上部署为Portlet

[英]Vaadin app not deploying as portlet on liferay

Here is the case, 就是这种情况
I developed a small Vaadin app(Spring and JPA included with MYSQL DB) and tried to deploy it on local liferay portal. 我开发了一个小的Vaadin应用程序(MYSQL DB附带了Spring和JPA),并尝试将其部署在本地liferay门户上。
I used this this tutorial from liferay to start and then added other stuff. 我从liferay开始使用本教程 ,然后添加了其他内容。
But something is not working and I can't seem to figure out what, when I try to deploy app on liferay, log says 但是,当我尝试在liferay上部署应用程序时,日志似乎无法解决问题,我似乎无法弄清楚是什么

    Plugin package on context VaadinApp cannot be tracked because this WAR does not contain        
a liferay-plugin-package.xml file

I tried to figure out what does this mean but investigating on this issue did not give me any conclusion. 我试图弄清楚这是什么意思,但是对这个问题进行调查并没有得出任何结论。 I have all files in app needed for portlet but not this one. 我有Portlet所需的应用程序中的所有文件,但没有这个文件。
Is the problem maybe in DBs since liferay uses its own built-in HSQL and VaadinApp uses MYSQL? 由于liferay使用其自己的内置HSQL而VaadinApp使用MYSQL,这可能是数据库中的问题吗?

This is kind of an urgent matter so any help is greatly appreciated. 这是一件紧急的事情,因此非常感谢您的帮助。

Thanks 谢谢

I found the issue. 我发现了问题。
The problem was in DB as I presumed. 如我所料,问题出在数据库中。
Configuration of my DB connection in Vaadin app included a context.xml file with connection to DB configured and that is just the context.xml from Tomcat. 我在Vaadin应用程序中的数据库连接配置包括一个context.xml文件,该文件已配置了与数据库的连接,而这只是Tomcat中的context.xml。
What I did was that I taken the connection configuration from this context.xml and paste it directly to context.xml in Liferay's Tomcat and everything worked. 我所做的是我从此context.xml中获取了连接配置,并将其直接粘贴到Liferay的Tomcat中的context.xml中,一切正常。
This is why this Vaadin app worked when deployed on standalone Tomcat server as it was overriding context.xml in Tomcat itself which was not the case when done on Liferay. 这就是为什么此Vaadin应用程序部署在独立的Tomcat服务器上时可以工作的原因,因为它覆盖了Tomcat本身中的context.xml,而在Liferay上则不是这种情况。
Hope I helped someone with similar issue. 希望我能帮助有类似问题的人。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM