Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Kyriacos Neocleous
Liferay attempts creating directories under /usr/local
February 24, 2012 6:54 AM
Answer

Kyriacos Neocleous

Rank: New Member

Posts: 8

Join Date: September 26, 2011

Recent Posts

Hi
I installed tomcat 6.0.35 under /usr/local and deployed liferay 6.0.5 (copied war file in /usr/local/apache-tomcat-6.0.35/webapps/). I see some exceptions in catalina.out indicating liferay is trying to create directories under /usr/local for some reason:

1java.lang.RuntimeException: Cannot create directory: /usr/local/data/lucene/0
2
311:38:00,524 INFO  [AutoDeployDir:84] Creating missing directory /usr/local/deploy
411:38:00,525 ERROR [AutoDeployDir:90] Directory /usr/local/deploy could not be created
5
6… /usr/local/share/GeoIP/…


Do you know what might be causing this?

Best Regards
Kyriacos
Hitoshi Ozawa
RE: Liferay attempts creating directories under /usr/local
February 24, 2012 7:06 AM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7949

Join Date: March 23, 2010

Recent Posts

Do you know what might be causing this?


Yes, you didn't read Liferay's documentation on how to install Liferay war file on Tomcat.

Read and do steps listed in Tomcat 6.0.x section in the following page:
http://www.liferay.com/documentation/liferay-portal/6.0/administration/-/ai/installing-liferay-for-an-enterpri-4
Kyriacos Neocleous
RE: Liferay attempts creating directories under /usr/local
February 24, 2012 7:54 AM
Answer

Kyriacos Neocleous

Rank: New Member

Posts: 8

Join Date: September 26, 2011

Recent Posts

Hi
Thanks for your reply. Can you please be more specific? Are you referring to the fact that "the liferay home has to be one directory level higher than the application server" ? I thought this was a mistake in the guide and it was referring to the liferay-tomcat bundle specific instructions.

Best Regards
Kyriacos
Kyriacos Neocleous
RE: Liferay attempts creating directories under /usr/local
February 24, 2012 8:32 AM
Answer

Kyriacos Neocleous

Rank: New Member

Posts: 8

Join Date: September 26, 2011

Recent Posts

I moved /usr/local/tomcat under new directory /usr/local/liferay/ which has the same user permissions. The errors disappeared now of course because the user can write in /usr/local/liferay. This does not make sense in the case of an existing application server with other applications running in it. Is there a way to specify a different liferay home for liferay to create these directories (data, deploy etc) in?
David H Nebinger
RE: Liferay attempts creating directories under /usr/local
February 24, 2012 8:55 AM
Answer

David H Nebinger

Community Moderator

Rank: Liferay Legend

Posts: 11294

Join Date: September 1, 2006

Recent Posts

Yes. You can change this in the portal-ext.properties file. auto.deploy.deploy.dir.
Hitoshi Ozawa
RE: Liferay attempts creating directories under /usr/local
February 26, 2012 4:44 AM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7949

Join Date: March 23, 2010

Recent Posts

You'll be able to set following properties in portal-ext.properties.
If you're not going to auto deploy, you can just set auto.deploy.enabled=false.

#
# Set this to true to enable auto deploy of layout templates, portlets, and
# themes.
#
auto.deploy.enabled=true

#
# Set the directory to scan for layout templates, portlets, and themes to
# auto deploy.
#
auto.deploy.deploy.dir=${liferay.home}/deploy