« Zurück zu Starting Liferay...

Get tomcat6.exe and tomcat6w.exe and install Liferay as a service on 32 bit and 64 bit Windows

The parent article was very useful for me and I will just add two-three points that I came across while struggling to make Liferay work as a service on 32 bit and then on 64 bit Windows. This was done in the same manner for Liferay 5.2.3 and for Liferay 6.0.

Where to get the Tomcat6.exe and Tomcat6w.exe? They are not in the main Liferay distribution bundle, neither in the main Tomcat distribution. Here are a couple links for the Tomcat 6.0.18 Go to Apache.org Home - Download http://tomcat.apache.org/download-60.cgi

Select Archives: http://archive.apache.org/dist/tomcat/tomcat-6/ Then v.6.0.18 and the bin directory: http://archive.apache.org/dist/tomcat/tomcat-6/v6.0.18/bin/

Download and save apache-tomcat-6.0.18.exe - this one includes both files needed to start Tomcat as a service.

This EXE file will install the service on your Windows machine in the Liferay directory.

After unzipping the liferay-tomcat bundle I renamed the liferay... directory in the "liferay" and "tomcat..." directory in the "tomcat6". I will use this naming for simplicity.

Before running this exe file make sure you have two copies of the Liferay-Tomcat bundles unzipped on your machine. (For 64 bit machine check first 64 bit details"" below)

Installation of the service will overwrite several directories and you might need to restore tomcat6/conf and tomcat/webapps directories. I'd recommeomend to remove first all the sub-directories from the tomcat6 directory. Run the apache-tomcat-6.0.18.exe file and make your installation in the liferay/tomcat6 directory. Double click on the tomcat6/bin/tomcat6w.exe and use GUI on the screen to configure Java options.

In the JAVA tab add these lines: -XX:PermSize=128m -XX:MaxPermSize=256m

Set initial memory pool and maximum memory pool to 1024.

Apply and Use General - Start controls to check that the Tomcat is starting. (It will). Then stop the service and copy necessary directories (accept bin) from liferay copy into the main liferay/tomcat6 directories.

Start the service! -------------------

64 bit details

64 bit JDK and JRE distributions from Sun Microsystems miss two things that are in the way and you'll need to fix both.

a) Service installation process expects jre/client/jvm.dll but 64 bit distributions have no jre/client directory. It was renamed into jre/server.

By copy/paste jre/server into jre/client (copy, not move!) you solve this one.

b) jvm.dll requires msvcp71.dll to be in the Windows/system32 Download the msvcp71.dll from http://www.dll-files.com/dllindex/dll-files.shtml?msvcp71 and copy this dll into Windows/systems32

Go to the Installation section above and continue installation. -----------------

Hope this work for you too,

Jeff

0 Anhänge
26757 Angesehen
Durchschnitt (0 Stimmen)
Die durchschnittliche Bewertung ist 0.0 von max. 5 Sternen.
Kommentare
Antworten im Thread Autor Datum
You're not forced to install a tomcat.exe... Christophe Cariou 13. April 2011 02:36

You're not forced to install a tomcat.exe bundle. You can retrieve only the necessary files (tcnative-1.dll, tomcat6w.exe, tomcat6.exe, service.bat) from a zip version and paste it on your Liferay bundle. see (in french) http://mibinn.blogspot.com/2011/04/liferay-et-tomcat-creer-service-sous.html

rega­rds
Gepostet am 13.04.11 02:36.