<?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>tmtbox &#187; Setup</title>
	<atom:link href="http://www.tmtbox.com/tag/setup/feed" rel="self" type="application/rss+xml" />
	<link>http://www.tmtbox.com</link>
	<description>technology media and telecomm</description>
	<lastBuildDate>Sun, 01 Jan 2012 17:38:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Setup blojsom</title>
		<link>http://www.tmtbox.com/setup-blojsom</link>
		<comments>http://www.tmtbox.com/setup-blojsom#comments</comments>
		<pubDate>Fri, 16 Nov 2007 01:40:50 +0000</pubDate>
		<dc:creator>kevin</dc:creator>
				<category><![CDATA[resource]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[blojsom]]></category>
		<category><![CDATA[Setup]]></category>

		<guid isPermaLink="false">http://www.tmtbox.com/archives/setup-blojsom</guid>
		<description><![CDATA[Download the blojsom 3.0 blojsom.war file. Create a web application directory for the blojsom 3.0 WAR file in %TOMCAT_HOME%/webapps. % mkdir blojsom Copy the blojsom.war file into the %TOMCAT_HOME%/webapps/blojsom directory. Unpack the blojsom.war file. jar xvf blojsom.war Delete the blojsom.war file. Install the MySQL Database Driver After unpacking the MySQL JDBC Driver, copy the mysql-connector-java-3.1.12-bin.jar [...]]]></description>
			<content:encoded><![CDATA[<ul>
<li>Download the blojsom 3.0 <tt>blojsom.war</tt> file.</li>
<li>Create a web application directory for the blojsom 3.0 WAR file in <tt>%TOMCAT_HOME%/webapps</tt>.<br />
<blockquote><p>% mkdir blojsom</p></blockquote>
</li>
<li>Copy the <tt>blojsom.war</tt> file into the <tt>%TOMCAT_HOME%/webapps/blojsom</tt> directory.</li>
<li>Unpack the <tt>blojsom.war</tt> file.<br />
<blockquote><p>jar xvf blojsom.war</p></blockquote>
</li>
<li>Delete the <tt>blojsom.war</tt> file.</li>
</ul>
<h2><a name="TomcatSetupforMySQL-InstalltheMySQLDatabaseDriver"></a>Install the MySQL Database Driver</h2>
<ul>
<li>After unpacking the MySQL JDBC Driver, copy the <tt>mysql-connector-java-3.1.12-bin.jar</tt> (or appropriate version) file to <tt>%TOMCAT_HOME%/common/lib</tt>.</li>
</ul>
<h2><a name="TomcatSetupforMySQL-Configureblojsom'sDatabaseSettings"></a>Configure blojsom&#8217;s Database Settings</h2>
<ul>
<li>Edit <tt>%TOMCAT_HOME%/webapps/blojsom/WEB-INF/classes/blojsom-helper-beans-include.xml</tt> and change only the values for the username and password for your database to the username and password you created earlier.
<p class="code">
<p class="codeContent">
<pre class="code-xml"><span class="code-tag">&lt;bean id=<span class="code-quote">"dataSource"</span> class=<span class="code-quote">"org.apache.commons.dbcp.BasicDataSource"</span> destroy-method=<span class="code-quote">"close"</span>&gt;</span>
    <span class="code-tag">&lt;property name=<span class="code-quote">"driverClassName"</span> value=<span class="code-quote">"com.mysql.jdbc.Driver"</span>/&gt;</span>
    <span class="code-tag">&lt;property name=<span class="code-quote">"url"</span> value=<span class="code-quote">"jdbc:mysql://localhost/blojsom?autoReconnect=true&amp;amp;useUnicode=true&amp;amp;characterEncoding=utf-8"</span>/&gt;</span>
    <span class="code-tag">&lt;property name=<span class="code-quote">"username"</span> value=<span class="code-quote">"someuser"</span>/&gt;</span>
    <span class="code-tag">&lt;property name=<span class="code-quote">"password"</span> value=<span class="code-quote">"somepassword"</span>/&gt;</span>
<span class="code-tag">&lt;/bean&gt;</span></pre>
</li>
<li>Edit <tt>%TOMCAT_HOME%/webapps/blojsom/WEB-INF/classes/blojsom.xml</tt>. You may need to change the value for the <tt>dbScript</tt> or <tt>detectBlojsomSQL</tt> property for your particular database. This will be noted in the database installation instructions.
<p class="code">
<p class="codeContent">
<pre class="code-xml"><span class="code-tag">&lt;bean id=<span class="code-quote">"dbloader"</span> class=<span class="code-quote">"org.blojsom.util.database.DatabaseLoader"</span> init-method=<span class="code-quote">"init"</span>&gt;</span>
    <span class="code-tag">&lt;property name=<span class="code-quote">"sessionFactory"</span>&gt;</span>
        <span class="code-tag">&lt;ref bean=<span class="code-quote">"hibernateSessionFactory"</span>/&gt;</span>
    <span class="code-tag">&lt;/property&gt;</span>
    <span class="code-tag">&lt;property name=<span class="code-quote">"dbScript"</span> value=<span class="code-quote">"/WEB-INF/classes/blojsom-full-initial-data-mysql.sql"</span>/&gt;</span>
    <span class="code-tag">&lt;property name=<span class="code-quote">"upgrading"</span> value=<span class="code-quote">"false"</span>/&gt;</span>
    <span class="code-tag">&lt;property name=<span class="code-quote">"servletConfig"</span>&gt;</span>
        <span class="code-tag">&lt;ref bean=<span class="code-quote">"servletConfigFactoryBean"</span>/&gt;</span>
    <span class="code-tag">&lt;/property&gt;</span>
    <span class="code-tag">&lt;property name=<span class="code-quote">"detectBlojsomSQL"</span>&gt;</span>
        <span class="code-tag">&lt;value&gt;</span>show tables;<span class="code-tag">&lt;/value&gt;</span>
    <span class="code-tag">&lt;/property&gt;</span>
<span class="code-tag">&lt;/bean&gt;</span></pre>
</li>
</ul>
<h2><a name="TomcatSetupforMySQL-Accessblojsom"></a>Access blojsom</h2>
<ul>
<li>Start Tomcat</li>
<li>You may now access your blog at <span class="nobr"><a href="http://localhost:8080/blojsom/blog/default/" title="Visit page outside Confluence" rel="nofollow">http://localhost:8080/blojsom/blog/default/<sup><img src="http://wiki.blojsom.com/wiki/images/icons/linkext7.gif" class="rendericon" align="absmiddle" border="0" height="7" width="7" /></sup></a></span></li>
<li>You may access the administration console at <span class="nobr"><a href="http://localhost:8080/blojsom/blog/default/?flavor=admin" title="Visit page outside Confluence" rel="nofollow">http://localhost:8080/blojsom/blog/default/?flavor=admin<sup><img src="http://wiki.blojsom.com/wiki/images/icons/linkext7.gif" class="rendericon" align="absmiddle" border="0" height="7" width="7" /></sup></a></span></li>
<li>The default user and password is <tt>default/default</tt>. Be sure to change the password immediately after logging in. You can change this under <tt>Weblog Settings | Users</tt>.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.tmtbox.com/setup-blojsom/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

