Deploy .war file on a server (Liferay+Tomcat Bundle)

一个人想着一个人 提交于 2020-01-13 13:51:09

问题


I have my new Liferay site ready and trying to test it in a real environment. I just got Tomcat-Liferay bundle installed on my server successfully and copied the .war file into the deploy directory next to tomcat according to instructions from some forums and comments; but after going to the URL, I still see the default Liferay page and my page doesn't get diplayed. What an I doing wrong here?

Thanks in advance!


回答1:


Deploying a theme or portlet plugin doesnt change the way the portal looks by default. You have to apply the theme on a page or set of pages after deployment. Similarly for portlet you should add the portlet on a page after deployment.

Coming back to your question, since it is a theme, once the the theme is deployed, login to Liferay, click on Manage Pages. You should see Look and Feel tab at two levels. One is the page set level that is for all the pages in that group whether public or private and the other is page level, that is just for one page.

Click on Look and Feel tab based on your requirement(whether you want the theme to be applied on all the pages or just a single page). Here you should see the current theme that is applied(by default it should be classic theme) and Available themes. Your new theme should be visible in Available themes section. Just click on your theme and the look and feel of your portal page or pages should change.




回答2:


Got it working. Drop them.war file into the deploy folder next to tomcat folder, and if there is a database other than Liferay's own database, define its parameters in the portal-ext.properties file. Also if you have saved any files in the data folder next to tomcat, you might need to import that as well.



来源:https://stackoverflow.com/questions/10296973/deploy-war-file-on-a-server-liferaytomcat-bundle

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!