<?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 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/219501#M172631</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to run Alfresco 3.2 from Eclipse. To that end I've followed the following documentation: &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Alfresco_on_Eclipse" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Alfresco_on_Eclipse&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am able to compile successfully, albeit with a bunch of "deprecated" warnings.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I've installed the Tomcat plugin, but could not find information on how this works other than finding the info on setting the Tomcat options.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;More searching led me to this documentation: &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Development_Environment" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Development_Environment&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;I created the database and skipped the steps related to checking out the code, since I already had done that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also followed the steps outlined in &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Install_Tomcat6" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Install_Tomcat6&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the Development Environment documentation it recommends using the "&lt;/SPAN&gt;&lt;STRONG&gt;start-tomcat-application&lt;/STRONG&gt;&lt;SPAN&gt;" target to launch the app server. However, doing so produced the following out-of-memory error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;14:42:01,393 ERROR [org.springframework.web.context.ContextLoader] Context initialization failed&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Caused by: java.lang.OutOfMemoryError: PermGen space&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does launching Tomcat in this manner not take into consideration the server parameters I set under Eclipse -&amp;gt; Windows -&amp;gt; Preferences -&amp;gt; Tomcat -&amp;gt; JVM Settings?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If not, where would I set them?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At any rate, I would prefer to simply use the Eclipse menu item "Tomcat -&amp;gt; Start Tomcat". When I try this I only see the following vague indication of a problem in the Console: "&amp;lt;terminated&amp;gt; C:\alfresco_dev\Java\jre6\bin=javaw.exe"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can someone advise me what the recommended way for testing Alfresco is, when working inside of Eclipse?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;FWIW, my eventual goal is to simply define an action that kicks of an Oracle BPEL workflow, which is published as a web service. But first I'd like to make sure I have a firm grasp on building the entire application and setting up my development environment.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for any tips!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ingo&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PS. Update: I have seen the article on tuning at &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/JVM_Tuning" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/JVM_Tuning&lt;/A&gt;&lt;SPAN&gt; . But in my case I'm using the new 3.2 release, so the scripts should reflect the higher PermGen space setting. But anyways, I would prefer to use the Eclipse tomcat plugin for launching the app server.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Aug 2009 19:18:04 GMT</pubDate>
    <dc:creator>ipeters</dc:creator>
    <dc:date>2009-08-04T19:18:04Z</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>

