Fórum

Liferay 6.0 Windows service

thumbnail
Bart Versloot, modificado 14 Anos atrás.

Liferay 6.0 Windows service

New Member Postagens: 2 Data de Entrada: 04/03/10 Postagens Recentes
Is it possible to run this version as a windows service? by moddify the old (liferay 5 version) service.bat?
because tomcat.exe isn't in the bin directory anymore!!

Thanks!!
thumbnail
Corné A, modificado 14 Anos atrás.

RE: Liferay 6.0 Windows service

Liferay Legend Postagens: 1313 Data de Entrada: 03/10/06 Postagens Recentes
None of Tomcat 6 Liferay distributions have tomcat.exe in the bin;
Maybe you could install your own Tomcat 6 and deploy LR on i or copy the .exe
thumbnail
Bart Versloot, modificado 14 Anos atrás.

RE: Liferay 6.0 Windows service

New Member Postagens: 2 Data de Entrada: 04/03/10 Postagens Recentes
Corné A:
None of Tomcat 6 Liferay distributions have tomcat.exe in the bin;
Maybe you could install your own Tomcat 6 and deploy LR on i or copy the .exe


Liferay Tomcat Distributions do have Tomcat.exe in they Bin folder open this version and see... liferay-portal-tomcat-6.0-5.2.3.zip
thumbnail
Corné A, modificado 14 Anos atrás.

RE: Liferay 6.0 Windows service

Liferay Legend Postagens: 1313 Data de Entrada: 03/10/06 Postagens Recentes
Sorry Bart you're quite right.
They are automatically removed by our build scripts.

When you build Liferay yourself from SVN this is not, for sure ;)

Or maybe you could tell Jonathan Neil or issue a ticket.
thumbnail
Corné A, modificado 14 Anos atrás.

RE: Liferay 6.0 Windows service

Liferay Legend Postagens: 1313 Data de Entrada: 03/10/06 Postagens Recentes
Hey wait are you talking about the latest preview release.
It wasn't Announced yet here so I suppose you are one of the first emoticon
Announcement

Remmember it's a Preview
thumbnail
Jonathan Neal, modificado 14 Anos atrás.

RE: Liferay 6.0 Windows service

Junior Member Postagens: 66 Data de Entrada: 29/08/07 Postagens Recentes
Hi Bart,

Right you are, Liferay 6.0 doesn't include the Windows executable, and that's because Apache Tomcat 6.0.24 is not bundled with those executables any longer.

http://tomcat.apache.org/download-60.cgi

As you can see on that page, they've included a separate 32-bit Windows version, a separate 64-bit Windows version, and even a separate 64-bit Itanium Windows version. In our case, it made sense to use the default. However, you could probably copy the latest executable from one of these packages of your choice and use that.

What are your thoughts?

Jonathan
thumbnail
Jeff Zhuk, modificado 13 Anos atrás.

RE: Liferay 6.0 Windows service

Junior Member Postagens: 64 Data de Entrada: 09/09/09 Postagens Recentes
**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 of 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:
-XXemoticonermSize=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,

Jeff