现在的位置: 首页 > 综合 > 正文

liferay启动tomcat问题

2013年08月17日 ⁄ 综合 ⁄ 共 891字 ⁄ 字号 评论关闭

 由于大家普遍反映我以登陆64的服务器 服务器就卡(呵呵 ,我也不知道原因)

于是乎我决定为了大家的幸福,我要告别64,哈哈。

我在其他的服务器上面搭建个环境,前面一切都顺利,因为已经搭建过很多次了,

可是到最后启动tomcat的时候,启动到Auto deploy scanner started for /ltc/home/liferay/deploy 就说什么都不往下走了,自己鼓捣了半天也没搞定,

后来在群里面问了一嗓子,在大家的帮助下终于搞定了,解决方法如下:

修改portal/portal-ejb/class/portal.properties

# Set the following to true if you want to index your entire library of files on startup.

index.on.startup=true

# Set the following to true if you want the indexing on startup to be

# executed on a separate thread to speed up execution.

index.with.thread=false


将true和false的值换一下,之后重新部署

也可以用rar打开tomcat/webapps/ROOT/WEB-INF/lib里面的portal-ejb.jar,把portal.properties拖出来,修改完再拖回去

.或者tomcat/webapps/ROOT/WEB-INF/classes/portal-ext.properties,里面添加index.on.startup=false也有效


这样做就不用重新部署了

但是,虽然解决了,tomcat能启动,能正常使用了,但是,在启动的时候有个 error:ERROR [LuceneServlet:102] java.io.IOException: Lock obtain timed out: Lock@C:/ltc/liferay4.2.2/tomcat/temp/lucene-a752935b5af5ef791728c018b499a4cb-write.lock

还没有解决。

抱歉!评论已关闭.