<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>How to run your ext env or tomcat downloaded bundle as windows service</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=4025320" />
  <subtitle>How to run your ext env or tomcat downloaded bundle as windows service</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=4025320</id>
  <updated>2026-04-05T04:27:26Z</updated>
  <dc:date>2026-04-05T04:27:26Z</dc:date>
  <entry>
    <title>RE: How to run your ext env or tomcat downloaded bundle as windows service</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=4026801" />
    <author>
      <name>Daniel M Scott</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=4026801</id>
    <updated>2009-09-15T20:26:34Z</updated>
    <published>2009-09-15T20:26:34Z</published>
    <summary type="html">Hi Lisa&lt;br /&gt;&lt;br /&gt;Id never created a WIKI article before but heres the link, thanks for suggesting it&lt;br /&gt;&lt;a href="http://www.liferay.com/web/guest/community/wiki/-/wiki/Main/Setup+your+ext+env+or+tomcat+downloaded+bundle+as+windows+service"&gt;&lt;/a&gt;</summary>
    <dc:creator>Daniel M Scott</dc:creator>
    <dc:date>2009-09-15T20:26:34Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to run your ext env or tomcat downloaded bundle as windows service</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=4026202" />
    <author>
      <name>Lisa Simpson</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=4026202</id>
    <updated>2009-09-15T18:59:48Z</updated>
    <published>2009-09-15T18:59:48Z</published>
    <summary type="html">How about a wiki page???  This should be in the WIki for sure!</summary>
    <dc:creator>Lisa Simpson</dc:creator>
    <dc:date>2009-09-15T18:59:48Z</dc:date>
  </entry>
  <entry>
    <title>How to run your ext env or tomcat downloaded bundle as windows service</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=4025319" />
    <author>
      <name>Daniel M Scott</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=4025319</id>
    <updated>2009-09-15T14:42:11Z</updated>
    <published>2009-09-15T14:42:11Z</published>
    <summary type="html">Hi Guys&lt;br /&gt;&lt;br /&gt;I hope this helps other people that may experience the same problem, i was banging my head off a brick wall for days before getting the answer, i tried  setting setenv.bat, catalina.bat system enviroment variables, you name it, i tried it and couldnt get it to work.&lt;br /&gt;&lt;br /&gt;OK so you have either a) created your own ext enviroment following a book like Jonas X Yaun&amp;#39;s &amp;#34;Developing Liferay 5.2&amp;#34; which is very good, he&amp;#39;s also a very nice guy and very helpful. Or b) you downloaded the bundle and you want to put either a or b on a server and run it as a service.&lt;br /&gt;&lt;br /&gt;You will find tomcat in the location C:\liferay-portal-5.2.3\tomcat-6.0.18 - if you put it on your c: drive, (this is the bundle i downloaded) or for my ext enviroment its C:\liferay-portal\tomcat-6.0.18 (again its also on my c: drive)&lt;br /&gt;&lt;br /&gt;within the bin folder of tomcat is the service.bat file and you can use this to install the service and run it.  First things first, i have not set CATALINA_HOME or CATALINA_OPTS, or JAVA_OPTS Variables in the control panel system settings, i have however set ANT_HOME, ANT_OPTS, JAVA_HOME&lt;br /&gt;&lt;br /&gt;1) set JAVA_HOME in system to C:\Program Files\Java\jdk1.5.0_19 (or location where your java jdk is installed&lt;br /&gt;2) open command prompt and change directory to your ext env or downloaded bundle by doing typing the following cd C:\liferay-portal\tomcat-6.0.18\bin (path should be your path)&lt;br /&gt;3)type the following service.bat install&lt;br /&gt;4) you should see a message telling you its been installed, if however you get an error regarding permissions its beacuse you already have the service installed, if this is the case you need to delete this via regedit.  - See step 5 if this is the case if not go to 6&lt;br /&gt;5) open up new command prompt, type regedit and follow this path HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ look for tomcat6 or apache-tomcat depending on what you have installed and delete the entire folder. RESTART YOUR MACHINE go back to STEP 2 and continue.  You should now be able to install and go to step 6&lt;br /&gt;6) You should now be able to go to your tomcat bin folder and double click this file tomcat6w.exe which launches the GUI for configuring the service. If you have 2GB RAM these settings will work for you.  Under the JAVA tab set initial memory and maximum memory to 1024MB leave the Stack Size blank.&lt;br /&gt;7) under the JAVA Options: box above add these settings.&lt;br /&gt;-XX:+UseConcMarkSweepGC&lt;br /&gt;-XX:+CMSClassUnloadingEnabled&lt;br /&gt;-XX:MaxPermSize=128M&lt;br /&gt;Make sure there are no spaces at the end of each line and make sure each is on a single line seperate by a carrage return. hit apply&lt;br /&gt;8)Go to the general tab and start the service and navigate to your Local Host, mine is http://localhost:8484 however you can change this by changing the defaul from 8080 under by updating server.xml in C:\liferay-portal-5.2.3\tomcat-6.0.18\conf&lt;br /&gt;&lt;br /&gt;If you get an error regaringing the PERM GEN SPACE you could update the MAXPERMSIZE to 256 or 512 however i found this very good.&lt;br /&gt;&lt;br /&gt;Hope this was useful to you.&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;Dan</summary>
    <dc:creator>Daniel M Scott</dc:creator>
    <dc:date>2009-09-15T14:42:11Z</dc:date>
  </entry>
</feed>
