RE: Liferay 5.0 and Tomcat Bundle question

801705, modified 18 Years ago. New Member Posts: 2 Join Date: 5/14/08 Recent Posts
I am new to portals and Tomcat, so this may be an obvious question, but why do I get a different version of Liferay when I use the startup.bat script than when I run Tomcat as a service? Is there an explaination somewhere that describes how to configure the service to run the version of Liferay that is used with startup.bat. The service version seems to hang regularily.

Thank you for your help.

Derek
thumbnail
218094, modified 18 Years ago. Junior Member Posts: 66 Join Date: 10/24/07 Recent Posts
Out of the box, Liferay is configured to use HSQL as the database. On the first startup, liferay loads the sample data into the database and HSQL puts it in a files named lportal.* in the current directory when tomcat is started from.

The windows service that start tomcat might launch tomcat will probably use C:\Windows\System32 folder as the current working directory and thus the lportal files might get created here. There is a good chance the Windows user running tomcat might not have write permissions on this folder.

When using HSQL I always try to launch tomcat from the same directory all the time. This will ensure that my changes are preserved and available when I startup tomcat (liferay) the next time.

_raju
801705, modified 18 Years ago. New Member Posts: 2 Join Date: 5/14/08 Recent Posts
Raju,

Thank you for the suggestions. I tried running Tomcat as an admin on the local machine, but no luck. There are several files in \bin, but I am not sure that any of these are the one you are referring to. I have tried following the info on the wiki, but have struck out. I finally gave up and installed mysql. So far it seems to be working, but unfortunately I have to redo all of the work I have done in the old database.

Derek