<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Florian Heinisch&#039;s Blog</title>
	<atom:link href="http://heiflo.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://heiflo.com</link>
	<description>Posts on software development and stuff</description>
	<lastBuildDate>Thu, 20 Jan 2011 13:15:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
		<item>
		<title>Install Java on CentOS</title>
		<link>http://heiflo.com/2011/01/install-java-on-centos/</link>
		<comments>http://heiflo.com/2011/01/install-java-on-centos/#comments</comments>
		<pubDate>Thu, 20 Jan 2011 13:12:42 +0000</pubDate>
		<dc:creator>heiflo</dc:creator>
				<category><![CDATA[Dev]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Tomcat]]></category>

		<guid isPermaLink="false">http://heiflo.com/?p=161</guid>
		<description><![CDATA[As you cannot install Oracle&#8217;s (former Sun&#8217;s) JDK with the comfy CentOS package manger Yum, you&#8217;ll have to install Java manually. This article describes how to install Java 1.6 via command line on CentOS 5.5. Let&#8217;s go! Before we log &#8230; <a href="http://heiflo.com/2011/01/install-java-on-centos/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>As you cannot install Oracle&#8217;s (former Sun&#8217;s) JDK with the comfy CentOS package manger <a title="Yum" href="http://www.centos.org/docs/5/html/yum/" target="_blank">Yum</a>, you&#8217;ll have to install Java manually. This article describes how to install Java 1.6 via command line on CentOS 5.5. Let&#8217;s go!</p>
<p>Before we log into CentOS, we need to get the JDK download link from Oracle&#8217;s website. Therefore, go to <a href="http://www.oracle.com/technetwork/java/javase/downloads/index.html">http://www.oracle.com/technetwork/java/javase/downloads/index.html</a> and click the button <code>Download JDK</code>:</p>
<p><a rel="attachment wp-att-171" href="http://heiflo.com/2011/01/install-java-on-centos/java_download01/"><img class="aligncenter size-medium wp-image-171" title="Oracle Java Download Page" src="http://heiflo.com/wp-content/uploads/2010/10/java_download01-300x217.png" alt="" width="300" height="217" /></a></p>
<p>On the next page, select from the <code>Platform</code> drop down list either <code>Linux</code> (if your CentOS runs on a 32bit system) or <code>Linux x64</code> for a 64bit system. Then, click <code>Continue:</code></p>
<p><a rel="attachment wp-att-177" href="http://heiflo.com/2011/01/install-java-on-centos/java_download02/"><img class="aligncenter size-medium wp-image-177" title="Choose your Java distribution" src="http://heiflo.com/wp-content/uploads/2010/10/java_download02-300x217.png" alt="Choose your Java distribution" width="300" height="217" /></a></p>
<p>On the next page copy the download link by right-clicking on <code>jdk-6u23-linux-x64.bin</code> and choose <code>Copy Link Location</code> from the browser&#8217;s context menu:</p>
<p><a rel="attachment wp-att-178" href="http://heiflo.com/2011/01/install-java-on-centos/java_download03/"><img class="aligncenter size-medium wp-image-178" title="Copy Java download link" src="http://heiflo.com/wp-content/uploads/2010/10/java_download03-300x217.png" alt="Copy Java download link" width="300" height="217" /></a></p>
<p>Now, please log into your CentOS system via command line. We will install Java to <code>/usr/java</code>. If you prefer a different location just change the path accordingly in the following commandos:</p>
<ol>
<li>Create the folder /usr/java:<br />
<code>cd /usr</code><br />
<code>mkdir java</code></li>
<li>Change to the java directory and download Java from Oracle (paste the long download URL we copied earlier between quotes):<br />
<code>cd java</code><br />
<code>wget "http://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/VerifyItem-Start/jdk-6u23-linux-x64.bin?BundledLineItemUUID=phqJ_hCyWd8AAAEtmUBKPKN3&amp;OrderID=SauJ_hCyzLMAAAEtjUBKPKN3&amp;ProductID=6gGJ_hCwIQYAAAEsKIMcKluK&amp;FileName=/jdk-6u23-linux-x64.bin"</code></li>
<li>Actually, the long URL we copied earlier redirects to the very download URL. So <code>wget</code> saved the download to a file named<br />
<code>jdk-6u23-linux-x64.bin?AuthParam=1295528165_cf13992779f41d08023a501f6b61f497&amp;TicketId=B%2Fw2lh2ATV9LQRBDPlFTkAXl&amp;GroupName=CDS&amp;FilePath=%2FESD6%2FJSCDL%2Fjdk%2F6u23-b05%2Fjdk-6u23-linux-x64.bin&amp;File=jdk-6u23-linux-x64.bin</code><br />
So, let&#8217;s rename the bulky filename:<br />
<span style="font-size: 13px; font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; line-height: 19px;">mv jdk-6u23-linux-x64.bin?AuthParam=1295528165_cf13992779f41d08023a501f6b61f497&amp;TicketId=B%2Fw2lh2ATV9LQRBDPlFTkAXl&amp;GroupName=CDS&amp;FilePath=%2FESD6%2FJSCDL%2Fjdk%2F6u23-b05%2Fjdk-6u23-linux-x64.bin&amp;File=jdk-6u23-linux-x64.bin jdk-6u23-linux-x64.bin</span></li>
<li>Make sure the file is executable:<br />
<code>chmod +x jdk-6u23-linux-x64.bin</code></li>
<li><span style="font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: small;"><span style="line-height: 19px;">Next run the installer:<br />
</span></span> <code>./jdk-6u23-linux-x64.bin</code><br />
At the end of the installation just hit enter.</li>
<li>Remove the installation package:<br />
<code>rm -f jdk-6u23-linux-x64.bin</code></li>
<li>Finally, we need to add a symbolic link to the Java executable:<br />
<code>ln -s /usr/java/jdk1.6.0_23/bin/java /usr/bin/java</code><br />
I assumed you only want to have one version of Java installed. Just in case you already have another Java version installed and you want to be able to flexibly choose among those versions, you can establish the symbolic link with the <code>alternatives</code> command:<br />
<code>alternatives --install /usr/bin/java java /usr/java/jdk1.6.0_23/bin/java 2</code><br />
<code>alternatives --config java</code><br />
Choose the Java version you want to have referenced.</li>
</ol>
<p>That&#8217;s it! Type <code>java -version</code> on the command line and you should get a similar result to this:</p>
<p><code>java version "1.6.0_23"<br />
Java(TM) SE Runtime Environment (build 1.6.0_23-b05)<br />
Java HotSpot(TM) 64-Bit Server VM (build 19.0-b09, mixed mode)</code></p>
<p>Finally, you might want to add the environment variable <code>JAVA_HOME</code> (which is needed by Apache Tomcat server, for example). To do so, simply type this command in your command line:</p>
<p><code>echo "export JAVA_HOME=/usr/java/jdk1.6.0_23" &gt;&gt; /etc/profile</code></p>
<p>This commando will write the <code>JAVA_HOME</code> environment variable to the file <code>/etc/profile</code> which contains system wide environment configuration.</p>
<p>Here you go. Enjoy running Java applications on your CentOS system!</p>
]]></content:encoded>
			<wfw:commentRss>http://heiflo.com/2011/01/install-java-on-centos/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Deploy Alfresco Share on Tomcat 6</title>
		<link>http://heiflo.com/2010/03/deploy-alfresco-share-on-tomcat-6/</link>
		<comments>http://heiflo.com/2010/03/deploy-alfresco-share-on-tomcat-6/#comments</comments>
		<pubDate>Sun, 21 Mar 2010 18:38:51 +0000</pubDate>
		<dc:creator>heiflo</dc:creator>
				<category><![CDATA[Dev]]></category>
		<category><![CDATA[Alfresco]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Tomcat]]></category>

		<guid isPermaLink="false">http://www.heiflo.com/?p=29</guid>
		<description><![CDATA[As I could not find a complete tutorial on how to deploy Afresco Share on an existing Apache Tomcat version 6 I&#8217;ll now summarize all steps required. Prerequisites Before following the next steps make sure you have Java 1.5 or &#8230; <a href="http://heiflo.com/2010/03/deploy-alfresco-share-on-tomcat-6/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>As I could not find a complete tutorial on how to deploy Afresco Share on an existing Apache Tomcat version 6 I&#8217;ll now summarize all steps required.</p>
<p><strong>Prerequisites</strong></p>
<p>Before following the next steps make sure you have</p>
<ol>
<li>Java 1.5 or Java 1.6</li>
<li>Apache Tomcat 6.x</li>
<li>MySQL 5.x</li>
</ol>
<p>installed.</p>
<p><strong>Step 1: Get Alfresco Community Edition<br />
</strong></p>
<p>Download the file archive <code><a title="Download Alfresco Share" href="http://process.alfresco.com/ccdl/?file=release/community/build-2039/alfresco-community-war-3.2.tar.gz" target="_blank">alfresco-community-war-3.2.tar.gz</a></code> and unpack the archive. It contains the <code>alfresco.war</code> and <code>share.war</code> web applications that you&#8217;ll need to get Alfresco Share up and running.</p>
<p><strong>Step 2: Create database and database user</strong></p>
<p>On Mac OS/Linux open a shell, on Windows open the command line. Log on to MySQL with the root user:</p>
<p><code>&gt; mysql -u root -p</code></p>
<p>Next, create the database and a user for Alfresco and grant the according rights to the database user:</p>
<p><code>mysql&gt; create database alfresco default character set utf8;<br />
mysql&gt; create user alfresco identified by 'alfresco';<br />
mysql&gt; grant all on alfresco.* to 'alfresco'@'localhost' identified by 'alfresco' with grant option;<br />
mysql&gt; grant all on alfresco.* to 'alfresco'@'localhost.localdomain' identified by 'alfresco' with grant option;</code></p>
<p><strong>Step 3: Prepare Apache Tomcat</strong></p>
<p>Make sure that your Tomcat installation disposes of the directories <code>&lt;TOMCAT_HOME&gt;/shared/classes </code>and &lt;<code>TOMCAT_HOME&gt;/shared/lib</code>. Tomcat 6 does not get distributed with these directories by default. If they are missing, please create them. Next, open the file <code>&lt;TOMCAT_HOME&gt;/conf/catalina.properties</code> and change the value of <code>shared.loader=</code> to:</p>
<p><code>shared.loader=${catalina.home}/shared/classes,${catalina.home}/shared/lib/*.jar</code></p>
<p>That way, Tomcat loads for all web applications any classes/property files and libraries that are located in these directories.</p>
<p>Alfresco does not get shipped with a JDBC driver for MySQL. You can download the current driver from <a href="http://dev.mysql.com/downloads/connector/j/5.1.html">http://dev.mysql.com/downloads/connector/j/5.1.html</a>. Unpack the archive and copy the driver <code>mysql-connector-java-5.1.12-bin.jar</code> (at the time of writing this post this driver was the current one) to <code>&lt;TOMCAT_HOME&gt;/shared/lib</code>.</p>
<p>Copy from your dowloaded unpacked <code>alfresco-community-war-3.2.tar.gz</code> archive the file <code>&lt;ALFRESCO_ARCHIVE&gt;/extensions/extension/alfresco-global.properties</code> to <code>&lt;TOMCAT_HOME&gt;/shared/classes</code>. Open the file <code>alfresco-global.properties</code> and change the value of <code>db.driver=</code> to (line 29):</p>
<p><code>db.driver=com.mysql.jdbc.Driver</code></p>
<p>Before we can start deploying Alfresco, make sure your Tomcat installation has a configured heap size of at least 256 MB. By default, Tomcat is started with the default heap size of your JVM. Usually, with these default settings the deployment of Alfresco will fail.</p>
<p>To increase Tomcat&#8217;s heap size on a Unix/Linux system open the file <code>&lt;TOMCAT_HOME&gt;/bin/startup.sh</code> and add following line at the beginning of the file:</p>
<p><code>export CATALINA_OPTS="-Xms256m -Xmx512m -XX:MaxPermSize=196m"</code></p>
<p>On Windows based systems open the file <code>&lt;TOMCAT_HOME&gt;/bin/startup.cmd</code> and add the following line at the beginning of the file:</p>
<p><code>set CATALINA_OPTS="-Xms256m -Xmx512m -XX:MaxPermSize=196m"</code></p>
<p>In case Tomcat was running you have to restart it in order the heap size changes take effect.</p>
<p><strong>Step 4: Deploy Alfresco web applications</strong></p>
<p>Start Tomcat by executing the start script <code>&lt;TOMCAT_HOME/bin/startup.sh</code> (Unix/Linux systems) or <code>&lt;TOMCAT_HOME/bin/startup.cmd</code> (Windows systems).</p>
<p>Simply copy the file <code>&lt;ALFRESCO_ARCHIVE&gt;/alfresco.war</code> to <code>&lt;TOMCAT_HOME&gt;/webapps</code>. As long as you have not changed Tomcat&#8217;s default deploy settings, Tomcat will deploy the web archive automatically. Have a look at Tomcat&#8217;s logfile located at <code>&lt;TOMCAT_HOME&gt;/logs/catalina.out</code>. At the end of the log file there should be an entry similar to</p>
<p><code>18:52:46,528 User:System INFO  [service.descriptor.DescriptorService] Alfresco started (Community): Current version 3.2.0 (2039) schema 2019 - Installed version 3.2.0 (2039) schema 2019</code></p>
<p>Next, copy the file <code>&lt;ALFRESCO_ARCHIVE&gt;/share.war</code> to <code>&lt;TOMCAT_HOME&gt;/webapps</code>. At the end of the Tomcat&#8217;s log file you should see an entry like</p>
<p><code>23:56:58,258  INFO  [web.site.FrameworkHelper] Successfully Initialized Web Framework</code></p>
<p>Well done, we are finished. Let&#8217;s open Alfresco Share in your favorite browser. Therefore, type <code>http://localhost:8080/share</code> in the address bar. You should the see the following screen:</p>
<p><a href="http://www.heiflo.com/wp-content/uploads/2010/03/alfresco_login.png"><img class="aligncenter size-medium wp-image-105" title="Alfresco login" src="http://www.heiflo.com/wp-content/uploads/2010/03/alfresco_login-300x197.png" alt="Alfresco login" width="300" height="197" /></a></p>
<p>Login with username <code>admin</code> and password <code>admin</code>.<br />
The document <a href="http://wiki.alfresco.com/w/images/d/de/Getting_Started_with_Share_for_Alfresco_Community_Edition_3_2.pdf">http://wiki.alfresco.com/w/images/d/de/Getting_Started_with_Share_for_Alfresco_Community_Edition_3_2.pdf</a> will help you to get acquainted with Alfresco Share. Have fun!</p>
]]></content:encoded>
			<wfw:commentRss>http://heiflo.com/2010/03/deploy-alfresco-share-on-tomcat-6/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Eclipse Galileo WebDAV Plugin</title>
		<link>http://heiflo.com/2009/07/eclipse-galileo-webdav-plugin/</link>
		<comments>http://heiflo.com/2009/07/eclipse-galileo-webdav-plugin/#comments</comments>
		<pubDate>Thu, 30 Jul 2009 22:23:22 +0000</pubDate>
		<dc:creator>heiflo</dc:creator>
				<category><![CDATA[Dev]]></category>
		<category><![CDATA[Eclipse]]></category>

		<guid isPermaLink="false">http://www.heiflo.com/?p=15</guid>
		<description><![CDATA[As I never remember how to install the WebDAV plugin for Eclipse installations newer than version 3.1 I would like to share the information how to do that: Download the plugin FTP/WebDAV feature Unizp the downloaded file eclipse-FTP-WebDAV-I20070430-0800.zip Copy the contents &#8230; <a href="http://heiflo.com/2009/07/eclipse-galileo-webdav-plugin/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>As I never remember how to install the WebDAV plugin for Eclipse installations newer than version 3.1 I would like to share the information how to do that:</p>
<ol>
<li>Download the plugin <a href="http://www.eclipse.org/eclipse/platform-team/patches/eclipse-FTP-WebDAV-I20070430-0800.zip">FTP/WebDAV feature</a></li>
<li>Unizp the downloaded file <code>eclipse-FTP-WebDAV-I20070430-0800.zip</code></li>
<li>Copy the contents from the folder <code>features</code> to <code>&lt;YOUR_ECLIPSE_FOLDER&gt;/features</code></li>
<li>Copy the contents from the folder <code>plugins</code> to <code>&lt;YOUR_ECLIPSE_FOLDER&gt;/plugins</code></li>
<li>Restart Eclipse</li>
<li>In Eclipse, choose from the menu bar <code>Window</code> &gt; <code>Show View</code> &gt; <code>Other ...</code> &gt; <code>Target Management</code> &gt; <code>Site Explorer</code></li>
<li>The Site Explorer view should be visible now. Right click into the Site Explorer view and choose <code>New</code> &gt; <code>Target Site</code></li>
<li>From the popup window choose <code>WebDAV</code>, click <code>Next</code> and enter the <code>Server URL</code>, <code>User</code> and <code>Password</code> (in most cases you can leave the <code>Proxy Server URL</code> empty)</li>
</ol>
<p>That&#8217;s it!</p>
]]></content:encoded>
			<wfw:commentRss>http://heiflo.com/2009/07/eclipse-galileo-webdav-plugin/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Hello World!</title>
		<link>http://heiflo.com/2009/05/hello-world/</link>
		<comments>http://heiflo.com/2009/05/hello-world/#comments</comments>
		<pubDate>Fri, 08 May 2009 18:57:12 +0000</pubDate>
		<dc:creator>heiflo</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.heiflo.com/?p=4</guid>
		<description><![CDATA[As with every new system/framework/programming language of course there needs to be shouted a loud hello to the world. Hello World! Here I am. Finally, I got my blog site set up which was overdue for quite a while. I &#8230; <a href="http://heiflo.com/2009/05/hello-world/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>As with every new system/framework/programming language of course there needs to be shouted a loud <em>hello</em> to the <em>world</em>.</p>
<p><strong>Hello World!</strong> Here I am. Finally, I got my blog site set up which was overdue for quite a while. I got so much useful information from people sharing their solutions to problems or thoughts on interesting topics so that I would like give back as much as I can!</p>
]]></content:encoded>
			<wfw:commentRss>http://heiflo.com/2009/05/hello-world/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

