<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Starting Alfresco on Tomcat from Eclipse IDE in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/starting-alfresco-on-tomcat-from-eclipse-ide/m-p/219502#M172632</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The way I've been doing it to set the env. vars used by ant to point to the same installation of Tomcat I have the Eclipse plugin pointed to.&amp;nbsp; Those can be defined something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;-Denv.TOMCAT_HOME=${workspace_loc}/apache-tomcat-6.0.20&lt;BR /&gt;-Denv.APP_TOMCAT_HOME=${workspace_loc}/apache-tomcat-6.0.20&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;I used an Eclipse external ant builder pointing to Alfresco source build.xml and installed the Tomcat tree into my local workspace as a project - hence the ${workspace_loc} Eclipse var.&amp;nbsp; I'm also using tomcat 6.0.20.&amp;nbsp; You would replace &lt;/SPAN&gt;&lt;EM&gt;{workspace_loc}/apache-tomcat-6.0.20&lt;/EM&gt;&lt;SPAN&gt; with the path to Tomcat root.&amp;nbsp; The environment vars can be set directly on the ant external tool definition or you can set them globally.&amp;nbsp; I)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then I run the the default ant target (build-tomcat) and it will compile the source tree, generate the alfresco.war and share.war and deploy these to your Tomcat install.&amp;nbsp; I typically only do this once in the beginning of a project and then work out the shared directory classpath for extensions, etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the Tomcat plugin JVM settings I have the following for a Gentoo Linux system (Core2-duo 4gb&amp;nbsp; RAM):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;-server -Xss1024K -Xms1G -Xmx2G -XX:MaxPermSize=128M -XX:NewSize=512m&lt;BR /&gt;-Denv.TOMCAT_HOME=&amp;lt;tomcat_root&amp;gt;&lt;BR /&gt;-Denv.APP_TOMCAT_HOME=&amp;lt;tomcat_root&amp;gt;&lt;BR /&gt;-Denv.alfresco.home=&amp;lt;tomcat_root&amp;gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;EM&gt;Where &amp;lt;tomcat_root&amp;gt; is replaced with the full path to where you installed Tomcat and referenced it in the top level Tomcat settings. Note: AFAIK the Tomcat plugin does not expand Eclipse variables as you may be used to in other configuration dialogs.&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Under the Classpath (before generated classpath) settings point to the &amp;lt;tomcat_root&amp;gt;/shared/classes directory.&amp;nbsp; This is where extensions can be placed such as alfresco-global.properties and other configuration customizations.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Once those are there you can run Tomcat from the Eclipse plugin (little icons in your toolbar).&amp;nbsp; Alfresco and share should expand and begin bootstrapping the db, etc.&amp;nbsp; Keep in mind you can customize the database and alf_root settings by placing a file in &amp;lt;tomcat_root&amp;gt;/shared/classes/alfresco-global.properties with the overrides.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;YMMV on the memory settings.&amp;nbsp; I've converged on those via trial and error and reading other posts in the forums.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hopefully this makes sense.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-Jeff Simpson&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Zia Consulting, Inc&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Aug 2009 17:32:13 GMT</pubDate>
    <dc:creator>fooblahblah</dc:creator>
    <dc:date>2009-08-06T17:32:13Z</dc:date>
    <item>
      <title>Starting Alfresco on Tomcat from Eclipse IDE</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/starting-alfresco-on-tomcat-from-eclipse-ide/m-p/219501#M172631</link>
      <description>Hi,I'm trying to run Alfresco 3.2 from Eclipse. To that end I've followed the following documentation: http://wiki.alfresco.com/wiki/Alfresco_on_EclipseI am able to compile successfully, albeit with a bunch of "deprecated" warnings.I've installed the Tomcat plugin, but could not find information on</description>
      <pubDate>Tue, 04 Aug 2009 19:18:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/starting-alfresco-on-tomcat-from-eclipse-ide/m-p/219501#M172631</guid>
      <dc:creator>ipeters</dc:creator>
      <dc:date>2009-08-04T19:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: Starting Alfresco on Tomcat from Eclipse IDE</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/starting-alfresco-on-tomcat-from-eclipse-ide/m-p/219502#M172632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The way I've been doing it to set the env. vars used by ant to point to the same installation of Tomcat I have the Eclipse plugin pointed to.&amp;nbsp; Those can be defined something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;-Denv.TOMCAT_HOME=${workspace_loc}/apache-tomcat-6.0.20&lt;BR /&gt;-Denv.APP_TOMCAT_HOME=${workspace_loc}/apache-tomcat-6.0.20&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;I used an Eclipse external ant builder pointing to Alfresco source build.xml and installed the Tomcat tree into my local workspace as a project - hence the ${workspace_loc} Eclipse var.&amp;nbsp; I'm also using tomcat 6.0.20.&amp;nbsp; You would replace &lt;/SPAN&gt;&lt;EM&gt;{workspace_loc}/apache-tomcat-6.0.20&lt;/EM&gt;&lt;SPAN&gt; with the path to Tomcat root.&amp;nbsp; The environment vars can be set directly on the ant external tool definition or you can set them globally.&amp;nbsp; I)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then I run the the default ant target (build-tomcat) and it will compile the source tree, generate the alfresco.war and share.war and deploy these to your Tomcat install.&amp;nbsp; I typically only do this once in the beginning of a project and then work out the shared directory classpath for extensions, etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the Tomcat plugin JVM settings I have the following for a Gentoo Linux system (Core2-duo 4gb&amp;nbsp; RAM):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;-server -Xss1024K -Xms1G -Xmx2G -XX:MaxPermSize=128M -XX:NewSize=512m&lt;BR /&gt;-Denv.TOMCAT_HOME=&amp;lt;tomcat_root&amp;gt;&lt;BR /&gt;-Denv.APP_TOMCAT_HOME=&amp;lt;tomcat_root&amp;gt;&lt;BR /&gt;-Denv.alfresco.home=&amp;lt;tomcat_root&amp;gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;EM&gt;Where &amp;lt;tomcat_root&amp;gt; is replaced with the full path to where you installed Tomcat and referenced it in the top level Tomcat settings. Note: AFAIK the Tomcat plugin does not expand Eclipse variables as you may be used to in other configuration dialogs.&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Under the Classpath (before generated classpath) settings point to the &amp;lt;tomcat_root&amp;gt;/shared/classes directory.&amp;nbsp; This is where extensions can be placed such as alfresco-global.properties and other configuration customizations.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Once those are there you can run Tomcat from the Eclipse plugin (little icons in your toolbar).&amp;nbsp; Alfresco and share should expand and begin bootstrapping the db, etc.&amp;nbsp; Keep in mind you can customize the database and alf_root settings by placing a file in &amp;lt;tomcat_root&amp;gt;/shared/classes/alfresco-global.properties with the overrides.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;YMMV on the memory settings.&amp;nbsp; I've converged on those via trial and error and reading other posts in the forums.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hopefully this makes sense.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-Jeff Simpson&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Zia Consulting, Inc&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2009 17:32:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/starting-alfresco-on-tomcat-from-eclipse-ide/m-p/219502#M172632</guid>
      <dc:creator>fooblahblah</dc:creator>
      <dc:date>2009-08-06T17:32:13Z</dc:date>
    </item>
  </channel>
</rss>

