我正在运行与Liferay5.2.3捆绑在一起的Tomcat,并使用Eclipse 3.5(Galileo)作为我的IDE.我根据这篇博客文章在Eclipse中设置我的Tomcat服务器:http://www.jroller.com/holy/entry/developing_portlets_for_liferay_in.如果我通过Eclipse服务器配置启动Tomcat,Liferay/Tomcat使用我的C:\ Documents and Settings\user\Local Settings\Temp \目录.但是,如果我直接使用startup.bat脚本启动Tomcat,Liferay/Tomcat将使用Tomcat临时目录.我无法弄清楚Eclipse,Liferay或Tomcat是否决定使用哪个临时目录或如何更改它.我更喜欢使用Tomcat临时目录.
我有这个问题,同时与Lifera /捆绑的Tomcat 5.5和6.0(liferay-portal-tomcat-6.0-5.2.3.zip和liferay-portal-tomcat-5.5-5.2.3.zip).
有人有任何线索吗?
有没有办法从liferay服务器A创建/导出LAR并使用脚本甚至maven/hudson插件在liferay服务器B中导入?我正在使用Liferay 6.0.5.
谢谢,Stijn
我正在改变Liferay Intallation附带的本地Liferay portlet.如何通过钩子或类似的方法将函数更改为我自己的实现?
我已经阅读了如何制作前置条件和后置条件以及如何创建接口的新实现,但我不知道如何在一个我希望保留的portlet中替换随机类中的随机函数,否则就像它最初一样.
在Liferay的LDAP身份验证设置中使用时,b/n memberOf属性和groupMembership属性有何区别?
用户已成功导入.这些组也成功导入.
但是用户不会自动分配到组.当我将组变量从'groupMembership'更改为'memberOf'时,多个用户无法登录Liferay.
memberOf和groupMembership变量究竟是什么?

如何配置或覆盖Liferay门户属性portal.properties?
如何将自定义portlet添加到" Portal控制面板" 部分,如下图所示:

我会将全局AngularJS与Liferay Portal一起使用.因为,就像AngularJS的设计一样:
为何选择AngularJS?HTML非常适合声明静态文档,但是当我们尝试使用它来声明Web应用程序中的动态视图时,它就会动摇.AngularJS允许您为应用程序扩展HTML词汇表.由此产生的环境非常具有表现力,可读性和快速开发.
我会通过开发Liferay-Theme和Portlets来简单地使用html的声明性语法.
为了这个要求,我创建了新的Liferay-Theme并定制了一点portal_normal.vm:
<!DOCTYPE html>
<#include init />
<html ... ng-app="liferay">
<head>
...
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.8/angular.min.js"></script>
<script type="text/javascript" src="${javascript_folder}/my.js" charset="utf-8"></script>
</head>
<body class="${css_class}">
<div ng-controller="LiferayCtrl">
Run Code Online (Sandbox Code Playgroud)
这里my.js:
angular.module('liferay', [])
.controller('LiferayCtrl', function($scope) {
console.log("---==== Init AngularJS ====---");
$scope.Liferay = Liferay;
});
Run Code Online (Sandbox Code Playgroud)
我可以扩展控制器,就像获取Liferay-Site名称一样.
这有什么帮助的?
因此,我可以通过声明式html语法简单地访问Liferay JavaScript值和函数,而无需像AngularJS那样直接调用JavaScript函数.
例如,现在可以通过声明性html代码获取Liferay JavaScript的值和函数,就像这里一样,用于获取Web内容显示中的当前URL:
Liferay current URL: {{Liferay.currentURL}}
Run Code Online (Sandbox Code Playgroud)

但是,我的问题是:
当tomcat 8出现liferay时,我收到以下严重消息.
SEVERE [localhost-startStop-1] org.apache.tomcat.util.descriptor.web.SecurityConstraint.findUncoveredHttpMethods For security constraints with URL pattern [/bg/c/portal/protected] only the HTTP methods [POST GET] are covered. All other methods are uncovered.
03-Sep-2015 07:06:00.733 SEVERE [localhost-startStop-1] org.apache.tomcat.util.descriptor.web.SecurityConstraint.findUncoveredHttpMethods For security constraints with URL pattern [/sv/c/portal/protected] only the HTTP methods [POST GET] are covered. All other methods are uncovered.
03-Sep-2015 07:06:00.733 SEVERE [localhost-startStop-1] org.apache.tomcat.util.descriptor.web.SecurityConstraint.findUncoveredHttpMethods For security constraints with URL pattern [/zh/c/portal/protected] only the HTTP methods [POST GET] are covered. All other methods are uncovered.
Run Code Online (Sandbox Code Playgroud)
这对服务器启动没有任何影响,但不确定是什么原因引起的?任何帮助都会非常感激.
我将apache配置为liferay tomcat的反向代理,在liferay tomcat上配置了5个虚拟主机,下面的配置用于从apache提供错误页面.
Alias /error/ "/usr/share/apache2/error/"
Options -Indexes
ProxyPassMatch /error/(403|5xx) !
ProxyErrorOverride On
ErrorDocument 500 /error/5xx/500.html
ErrorDocument 403 /error/403/403.html
Run Code Online (Sandbox Code Playgroud)
问题是由于ProxyErrorOverride,apache也提供404次命中,有没有办法可以绕过404以便从后端服务器提供服务?
这样我可以为不同的虚拟主机分别设置404页面.由于未在apache上配置虚拟主机,因此我无法告诉apache为不同的站点提供不同的错误页面.
我想继续从apache服务403和500,所以ProxyErrorOverride不能关闭.
liferay ×10
liferay-6 ×4
tomcat ×3
eclipse ×2
angularjs ×1
apache ×1
configure ×1
directory ×1
java ×1
javascript ×1
ldap ×1
ldap-query ×1
liferay-ide ×1
portlet ×1
properties ×1
proxy ×1
security ×1
temp ×1
tomcat8 ×1