无法在Liferay Portal 6.0上设置自动部署目录 [英] Unable to set auto deploy directory on Liferay Portal 6.0
问题描述
我正在JBoss 5.1.1上使用Liferay 6.0,Windows 8是OS.在服务器启动时,我总是会收到以下错误消息,说明找不到自动部署目录:
I am working with Liferay 6.0 on JBoss 5.1.1, Windows 8 is the OS. On server startup I always get the following error explaining the auto deploy directory can't be found:
ERROR [AutoDeployDir:90] Directory F:\liferay-portal-ee-6.0\deploy could not be created
这很有意义,因为我没有F:驱动器.但是,我无法按照门户网站属性"下查看时,我可以看到我在ext.properties
中输入的值确实显示为auto.deploy.deploy.dir
的值.但是,当服务器启动时,它使用F:\liferay-portal-ee-6.0\deploy
作为自动部署目录并记录以上错误.我已经调试了GlobalStartupAction
类,该类初始化了Liferay的自动部署,并且可以看到它正在调用PrefsPropsUtil.getString(String, String)
来检索自动部署目录的值,并且它将我在portal-ext.properties
中设置的值作为第二个参数传递,根据 PrefsPropsUtil Java文档第二个参数是默认值.当我深入研究PrefsPropsUtil.getString
调用时,我可以看到它正在使用PortalPreferencesLocalServiceImpl
实例检索companyId
,ownerId
和ownerType
分别设置为0、0和1的属性列表. .由于PortalPreferencesLocalServiceImpl
是本地",所以我假设它不会在其他计算机上检索值.我已经完成了广泛的目录和文件搜索,以查找对auto.deploy.deploy.dir
的引用以及诸如F:\liferay-portal-ee-6.0
之类的值,并且我无法在设置此属性的位置进行调整.该值从何而来?为什么不使用我的覆盖?
This makes sense because I don't have an F: drive. However, I'm unable to configure it in the portal-ext.properties
file as explained here. When I log into the Liferay control panel, and look under Portal Administration -> Portal Properties, I can see that the value I put in ext.properties
is indeed displayed as the value for auto.deploy.deploy.dir
. However, when the server starts up, it is using F:\liferay-portal-ee-6.0\deploy
as the auto deploy directory and logging the error above. I have debugged the GlobalStartupAction
class which initializes Liferay's auto deploy and I can see that it's calling PrefsPropsUtil.getString(String, String)
to retrieve the value for the auto deploy directory and it's passing the value I set in portal-ext.properties
as the second argument, according to the PrefsPropsUtil Java doc the second argument is a default value. When I dig down into the PrefsPropsUtil.getString
call I can see that it's using an instance of PortalPreferencesLocalServiceImpl
to retrieve a list of properties by companyId
, ownerId
and ownerType
which are set to 0, 0 and 1 respectively. Since the PortalPreferencesLocalServiceImpl
is "local" I'm assuming it's not going to a different machine to retrieve values. I've done extensive directory and file searching for references to auto.deploy.deploy.dir
and values like F:\liferay-portal-ee-6.0
and I'm unable to fine where this property is getting set. Where is this value coming from and why isn't my override being used?
推荐答案
由于使用的是Liferay 6.0,请转到控制面板"->插件安装"->安装更多Portlet"->配置".
Since you are using Liferay 6.0, go to Control Panel-> Plugins Installation -> Install More Portlets -> Configuration.
在配置"选项卡中,您可能会看到部署"目录设置为F:\ liferay-portal-ee-6.0 \ deploy
In the configuration tab, you may see the Deploy directory set to be F:\liferay-portal-ee-6.0\deploy
这可能是因为有人从控制面板修改了该值,或者您正在使用其他现有Liferay安装中的数据库转储.
This may be because either someone has modified the value from the control panel or you are using database dump from some other existing Liferay installation.
这篇关于无法在Liferay Portal 6.0上设置自动部署目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!