<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>KnobsLeversButtons &#187; MySQL</title>
	<atom:link href="http://blog.pulleman.com/category/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.pulleman.com</link>
	<description>Software thingabees. Little things</description>
	<lastBuildDate>Sun, 13 Nov 2011 08:42:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='blog.pulleman.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>KnobsLeversButtons &#187; MySQL</title>
		<link>http://blog.pulleman.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://blog.pulleman.com/osd.xml" title="KnobsLeversButtons" />
	<atom:link rel='hub' href='http://blog.pulleman.com/?pushpress=hub'/>
		<item>
		<title>ATG 2007.1 on Mac OS X with MySQL</title>
		<link>http://blog.pulleman.com/2007/08/13/atg-20071-on-mac-os-x-with-mysql/</link>
		<comments>http://blog.pulleman.com/2007/08/13/atg-20071-on-mac-os-x-with-mysql/#comments</comments>
		<pubDate>Mon, 13 Aug 2007 21:29:32 +0000</pubDate>
		<dc:creator>Ronald Pulleman</dc:creator>
				<category><![CDATA[ATG]]></category>
		<category><![CDATA[JBoss]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://blog.pulleman.com/2007/08/13/atg-20071-on-mac-os-x-with-mysql/</guid>
		<description><![CDATA[For some weeks now ATG 2007.1 is available. My entry about installing ATG on Mac OS X explained how to install ATG 2006.3 on Mac OS X Tiger which is not supported by ATG . It got a few hits, so perhaps an update is needed. Pre installation Have jboss-4.0.5GA ready. This is the only [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.pulleman.com&amp;blog=913562&amp;post=48&amp;subd=pulleman&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>For some weeks now <a href="http://groups.google.com/group/atg_tech/browse_thread/thread/4777157ac5978e46">ATG 2007.1</a> is available. My entry about <a href="http://blog.pulleman.com/2007/03/25/atg-jboss-and-mysql-on-mac-os-x">installing ATG on Mac OS X</a> explained how to install ATG 2006.3 on Mac OS X Tiger which is not supported by ATG . It got a few hits, so perhaps an update is needed.</p>
<h2>Pre installation</h2>
<ul>
<li>Have jboss-4.0.5GA ready. This is the only version supported by ATG 2007.1.</li>
<li>Have MySQL ready. Only 5.0.20 is supported. However I have used 5.0.45 and so far it seems to be working fine.  Make sure you use the InnoDB engine instead of the MyISAM.</li>
<li>Create an ATG user on MySQL in a way you seem fit</li>
<li>Add export JBOSS_HOME=&lt;your JBOSS 4.0.5GA path here&gt; to .bash_login. If you use another shell, you know what to do.</li>
<li>Take care of your permissions.</li>
<li>Download ATG2007.1 for Unix</li>
</ul>
<h2>Installation and configuration</h2>
<ul>
<li>Run <code>ATG2007.1.bin</code></li>
<li>When asked to enter the path where to install ATG, remove the space. It will make things easier.</li>
<li>When asked for JAVA_HOME use <code>/System/Library/Frameworks/JavaVM.framework/Versions/ 1.5.0/Home</code> or your preferred version.</li>
<li>Drop your license files in &lt;ATG folder&gt;/home/localconfig</li>
<li>Add the following line <code>export ATGJRE=/System/Library/Frameworks/JavaVM.framework/ Versions/CurrentJDK/Commands/java</code> to <code>dasEnv.sh</code></li>
<li>Copy MySQL JDBC driver (<code>mysql-connector-java-5.0.7-bin.jar</code>) to &lt;JBOSS_HOME&gt;/server/atg/lib</li>
<li>Add a mysql-ds.xl to &lt;JBOSS_HOME&gt;/server/atg/deploy and fill in the correct database name etc.</li>
<li>Create a file, like this: /home/localconfig/atg/dynamo/service/jdbc/JTDataSource.properties<br />
The ATG documentation states to create a jbossconfig folder with a change to a manifest to point to that path. I skipped that.</li>
<li>Edit this JTDataSource.properties. It should contain:<br />
<code>JNDIName=java:/MySqlDS</code><br />
and<br />
<code>$class=atg.nucleus.JNDIReference</code></li>
<li>Run datascripts:
<ul>
<li>/Applications/ATG2007.1/DAS/sql/install/mysql/das_ddl.sql</li>
<li>/Applications/ATG2007.1/DPS/sql/install/mysql/dps_ddl.sql</li>
<li>/Applications/ATG2007.1/DSS/sql/install/mysql/dss_ddl.sql</li>
<li>/Applications/ATG2007.1/DCS/sql/install/mysql/dcs_ddl.sql</li>
</ul>
<p>I used <code>mysql -D &lt;dbname&gt; &lt; /Applications/ATG2007.1/DAS/sql/install/mysql/ das_ddl.sql --user=&lt;username&gt; --password=&lt;password&gt;</code></li>
</ul>
<h2>Some notes</h2>
<p>Adding Darwin to &lt;ATG folder&gt;/home/bin/DynamoEnv.sh is not something I use anymore as I did in 2006.3. I will assume Solaris. This will make patching easier, as Robert Hellwig found out.</p>
<p>Unlike ATG 2006.3 ATG2007.1 JTDatasource.properties can contain <code>$class=atg.nucleus.JNDIReference</code></p>
<p>The executing of the SQL scripts was not correct in the previous Blog. The user and password command was wrong. Why didn&#8217;t anybody tell me?</p>
<p>On the previous blog entry, I got some questions on how you can tell MySQL to use InnoDB. Check your my.cnf or my.ini file. It&#8217;s in the ATG documentation:<br />
<img src="http://pulleman.files.wordpress.com/2007/08/atg-doc.png?w=458&#038;h=119" alt="ATG Doc" height="119" width="458" /></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/pulleman.wordpress.com/48/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/pulleman.wordpress.com/48/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pulleman.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pulleman.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pulleman.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pulleman.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pulleman.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pulleman.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pulleman.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pulleman.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pulleman.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pulleman.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pulleman.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pulleman.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pulleman.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pulleman.wordpress.com/48/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.pulleman.com&amp;blog=913562&amp;post=48&amp;subd=pulleman&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.pulleman.com/2007/08/13/atg-20071-on-mac-os-x-with-mysql/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/561387d0c0c3fc3d68c109499fa468e6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Ronald Pulleman</media:title>
		</media:content>

		<media:content url="http://pulleman.files.wordpress.com/2007/08/atg-doc.png" medium="image">
			<media:title type="html">ATG Doc</media:title>
		</media:content>
	</item>
		<item>
		<title>MySQL preference pane</title>
		<link>http://blog.pulleman.com/2007/04/05/mysql-preference-pane/</link>
		<comments>http://blog.pulleman.com/2007/04/05/mysql-preference-pane/#comments</comments>
		<pubDate>Thu, 05 Apr 2007 17:55:24 +0000</pubDate>
		<dc:creator>Ronald Pulleman</dc:creator>
				<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://blog.pulleman.com/2007/04/05/mysql-preference-pane/</guid>
		<description><![CDATA[When using the MySQL preference pane to start and stop MySQL on my Mac, I was not quickly able to find which script was actually run. This was not configurable. Find and grep did not help me. It seems that the prefpane goes to /usr/local/mysql/support-files/mysql.server and does a start and stop Since I use a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.pulleman.com&amp;blog=913562&amp;post=14&amp;subd=pulleman&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>When using the MySQL preference pane to start and stop MySQL on my Mac, I was not quickly able to find which script was actually run. This was not configurable. <em>Find</em> and <em>grep</em> did not help me.</p>
<p>It seems that the prefpane goes to <code>/usr/local/mysql/support-files/mysql.server </code> and does a start and stop</p>
<p>Since I use a couple of MySQL versions, setting your symbolic link becomes really important.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/pulleman.wordpress.com/14/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/pulleman.wordpress.com/14/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pulleman.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pulleman.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pulleman.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pulleman.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pulleman.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pulleman.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pulleman.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pulleman.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pulleman.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pulleman.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pulleman.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pulleman.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pulleman.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pulleman.wordpress.com/14/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.pulleman.com&amp;blog=913562&amp;post=14&amp;subd=pulleman&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.pulleman.com/2007/04/05/mysql-preference-pane/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/561387d0c0c3fc3d68c109499fa468e6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Ronald Pulleman</media:title>
		</media:content>
	</item>
		<item>
		<title>SolidDB Storage Engine</title>
		<link>http://blog.pulleman.com/2007/03/29/soliddb-storage-engine/</link>
		<comments>http://blog.pulleman.com/2007/03/29/soliddb-storage-engine/#comments</comments>
		<pubDate>Thu, 29 Mar 2007 18:58:55 +0000</pubDate>
		<dc:creator>Ronald Pulleman</dc:creator>
				<category><![CDATA[ATG]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Solid]]></category>

		<guid isPermaLink="false">http://pulleman.wordpress.com/2007/03/29/soliddb-storage-engine/</guid>
		<description><![CDATA[The ATG Creating Commerce Applications course uses the Solid Embedded Engine. So ofcourse when trying to run the Solid Sql scripts in my MySQL database it fails on the following line: alter table dynamusic_item_bought set pessimistic This is only natural since this is a typical Solid statement. When googling to see how I can translate [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.pulleman.com&amp;blog=913562&amp;post=8&amp;subd=pulleman&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The ATG Creating Commerce Applications course uses the <a href="http://www.solidtech.com/en/products/relationaldatabasemanagementsoftware/oem/overview.asp" title="Solid">Solid Embedded Engine</a>.  So ofcourse when trying to run the Solid Sql scripts in my MySQL database it fails on the following line:</p>
<p><code>alter table dynamusic_item_bought set pessimistic</code></p>
<p>This is only natural since this is a typical Solid statement. When <em>googling</em> to see how I can translate this to MySQL syntax I stumble on the <a href="http://dev.soliddb.com/en/index.php" title="SoliDB">SolidDB Storage Engine for MySQL</a> . He this is new! So when I use MySQL with this storage engine will it accept my SQL statement? I have no idea. I am completely in the dark how MySQL and its storage engines actually work. But hey let&#8217;s give it a try. Unfortunately there is only a Windows and a Linux version.  But somebody on the net compiled the sources for the PowerPC mac and had created a<a href="http://www.cybersite.com.au/databases/soliddb/ppc" title="MacSolidDB"> Mac build</a>. Hoorah.</p>
<p>However  the following code fails:<br />
<code><br />
CREATE TABLE `Fiets1` (<br />
`id` varchar(11) NOT NULL ,  PRIMARY KEY  (`id`)<br />
) ENGINE=solidDB DEFAULT CHARSET=latin1;<br />
</code><br />
But this one works<br />
<code><br />
CREATE TABLE `Fiets1` (<br />
`id` INTEGER NOT NULL , PRIMARY KEY  (`id`)<br />
) ENGINE=solidDB DEFAULT CHARSET=latin1;<br />
</code></p>
<p>It seems that I cannot do a primary key on a varchar. That&#8217;s odd.</p>
<p>Next step is to compile the stuff myself. However although I&#8217;m  perfectly able to compile the MySQL sources from <a href="http://mysql.org/downloads/mysql/5.0.html" title="mysql.org">mysql.org</a> on my MacBook, I get a compile error when downloading the linux sources from the <a href="http://www.solidtech.com/en/developers/CarrierGrade/solidDBMySQL_registration.asp" title="Solid linux">solid website. </a>Must be my inexperience.   <a href="http://dev.soliddb.com/community/node/4" title="Solid forums">Solid forums.<br />
</a></p>
<p>So now I&#8217;m on <a href="http://www.parallels.com/products/desktop?" title="Parallels">Parallels</a> for the remainder <img src='http://s0.wp.com/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' />  &#8230;.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/pulleman.wordpress.com/8/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/pulleman.wordpress.com/8/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pulleman.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pulleman.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pulleman.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pulleman.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pulleman.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pulleman.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pulleman.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pulleman.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pulleman.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pulleman.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pulleman.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pulleman.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pulleman.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pulleman.wordpress.com/8/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.pulleman.com&amp;blog=913562&amp;post=8&amp;subd=pulleman&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.pulleman.com/2007/03/29/soliddb-storage-engine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/561387d0c0c3fc3d68c109499fa468e6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Ronald Pulleman</media:title>
		</media:content>
	</item>
		<item>
		<title>Little ATG annoyances</title>
		<link>http://blog.pulleman.com/2007/03/27/little-atg-annoyances/</link>
		<comments>http://blog.pulleman.com/2007/03/27/little-atg-annoyances/#comments</comments>
		<pubDate>Tue, 27 Mar 2007 09:26:37 +0000</pubDate>
		<dc:creator>Ronald Pulleman</dc:creator>
				<category><![CDATA[ATG]]></category>
		<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[JBoss]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://pulleman.wordpress.com/2007/03/27/little-atg-annoyances/</guid>
		<description><![CDATA[I&#8217;m a complete ATG newbie. So perhaps some stuff is due to my inexperience, but things which seem odd to me: Eclipse ATG plugin When doing the New ATG Module in Eclipse a manifest is created with ATG-Required: DAS DPS DSS DAS There is a double DAS entry there. ACC I missed the create J2EE [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.pulleman.com&amp;blog=913562&amp;post=7&amp;subd=pulleman&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p> I&#8217;m a complete ATG newbie. So perhaps some stuff is due to my inexperience, but things which seem odd to me:</p>
<p><strong>Eclipse ATG plugin<br />
</strong></p>
<p>When doing the <em>New ATG Module</em> in Eclipse a manifest is created with</p>
<p><em>ATG-Required: DAS DPS DSS DAS</em></p>
<p>There is a double DAS entry there.</p>
<p><strong>ACC</strong></p>
<p>I missed the create J2EE application under the ACC.  It seems this is only available if you use DAS. Since I&#8217;m using JBoss, this is not available. Why is this?</p>
<p>More items are missing in the ACC.  Well the ACC is going the way of the mammoth  I guess.</p>
<p><strong>Dynamusic</strong></p>
<p>Positive: It seems that <em>Dynamusic</em> from Developing ATG Applications is going to work. The Solid SQL script creating the Dynamusic tables  was accepted by MySQL (after removing the drop statements).  At least the first chapter worked. Although you <em>have</em> to use Eclipse in stead of the ACC.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/pulleman.wordpress.com/7/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/pulleman.wordpress.com/7/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pulleman.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pulleman.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pulleman.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pulleman.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pulleman.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pulleman.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pulleman.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pulleman.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pulleman.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pulleman.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pulleman.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pulleman.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pulleman.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pulleman.wordpress.com/7/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.pulleman.com&amp;blog=913562&amp;post=7&amp;subd=pulleman&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.pulleman.com/2007/03/27/little-atg-annoyances/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/561387d0c0c3fc3d68c109499fa468e6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Ronald Pulleman</media:title>
		</media:content>
	</item>
		<item>
		<title>ATG, JBoss and MySQL on Mac OS X</title>
		<link>http://blog.pulleman.com/2007/03/25/atg-jboss-and-mysql-on-mac-os-x/</link>
		<comments>http://blog.pulleman.com/2007/03/25/atg-jboss-and-mysql-on-mac-os-x/#comments</comments>
		<pubDate>Sun, 25 Mar 2007 20:02:56 +0000</pubDate>
		<dc:creator>Ronald Pulleman</dc:creator>
				<category><![CDATA[ATG]]></category>
		<category><![CDATA[JBoss]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://pulleman.wordpress.com/2007/03/25/atg-jboss-and-mysql-on-mac-os-x/</guid>
		<description><![CDATA[Since Mac OS X is not a platform supported by ATG , installation can be&#8230; a bit troublesome. Everything ATG related is hard to find with Google so I decided to write this down. This is the installation of the ATG 2006.3 version. At the end perhaps not everything is necessary, but the result works [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.pulleman.com&amp;blog=913562&amp;post=3&amp;subd=pulleman&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Since Mac OS X is not a platform supported by ATG , installation can be&#8230; a  bit troublesome.  Everything ATG related is hard to find with Google so I decided to write this down. This is the installation of the ATG 2006.3  version.</p>
<p>At the end perhaps not everything is necessary, but the result works for me.</p>
<p>I found a lot of tips on Nabble by <em>qmnonic</em> . Thanks for sharing</p>
<p>&lt;EDIT on June 15, 2007&gt;</p>
<p>Steps 7, 8 and 9 are not necessary. So you can skip them</p>
<p>&lt;/EDIT&gt;</p>
<p><strong>Pre installation</strong></p>
<ul>
<li>Have jboss-4.0.3SP1 ready. This is the only version supported by ATG.</li>
<li>Have MySQL ready. Only 5.0.20 is supported. However I have used 5.0.27 and so far it seems to be working fine.  Make sure you use the InnoDB engine instead of the MyISAM. If you don&#8217;t, prepare for the infamous <a href="http://bugs.mysql.com/bug.php?id=4541" title="UNIQUE keys longer than 1000 bytes">1000 characters unique key problem.</a> I found this on <a href="http://www.nabble.com/ATG-2006.3-with-MySQL-5.x-on-Linux-t1945448.html" title="Nabble">Nabble</a>. Further integration of MySQL and JBoss is described below. However I used an O&#8217;Reilly article: <a href="http://www.onjava.com/pub/a/onjava/2004/02/25/jbossjdbc.html" title="ORA">JBoss and MySQL</a></li>
<li>Take care of your permissions.</li>
<li>Add  export JBOSS_HOME=&lt; your JBOSS path here&gt; to .bash_login. If you use another shell, you know what to do.</li>
</ul>
<p><strong>Installation and configuration</strong></p>
<ol>
<li>Download the unix installer ATG2006.3.bin and install ATG. Your life will be easier if you do not use the default space.</li>
<li>Drop your license files in &lt;ATG folder&gt;/home/localconfig</li>
<li>Add Darwin to &lt;ATG folder&gt;/home/bin/DynamoEnv.sh as explained in ATG SolutionID atg33147 as follows:
<ol>
<li>Add: DARWIN_OSDIR_NAME=&#8221;Darwin&#8221;</li>
<li>Add: elif [ $UNIXFLAVOR = Darwin ]<br />
then<br />
OSDIRNAME=$DARWIN_OSDIR_NAME</li>
</ol>
</li>
<li>Added dasEnv.sh to &lt;ATG folder&gt;/home/localconfig/  with the next line<br />
export ATGJRE=/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Commands/java   as described on <a href="http://www.nabble.com/ATG-2006.3-startup-on-Linux-using-JBoss-4.0.3SP1-t1947500.html" title="Nabble">Nabble</a>.</li>
<li>Copy MySQL JDBC driver to  &lt;JBOSS_HOME&gt;/server/atg/lib</li>
<li>Add mysql-ds.xl to &lt;JBOSS_HOME&gt;/server/atg/deploy fill in the correct database name etc.</li>
<li>Add MySqlDS datasource to standardjaws.xml as follows:<br />
&lt;jaws&gt;<br />
&lt;datasource&gt;java:/MySqlDS&lt;/datasource&gt;<br />
&lt;type-mapping&gt;mySQL&lt;/type-mapping&gt;<br />
&lt;/jaws&gt;</li>
<li>Edit standardjbosscmp-jdbc.xml  (I guess this is not necessary, since it is for EJB&#8217;s. But better safe then sorry. I&#8217;ll remove it later to see if still works)<br />
&lt;jbosscmp-jdbc&gt;<br />
&lt;defaults&gt;<br />
&lt;datasource&gt;java:/MySqlDS&lt;/datasource&gt;<br />
&lt;datasource-mapping&gt;mySQL&lt;/datasource-mapping&gt;<br />
&lt;/defaults&gt;<br />
&lt;/jbosscmp-jdbc&gt;</li>
<li>Add the following text to login-config.xml (Again I&#8217;m not sure is needed, I&#8217;ll check this later):<br />
&lt;application-policy name = &#8220;MySqlDbRealm&#8221;&gt;<br />
&lt;authentication&gt;<br />
&lt;login-module code =  &#8220;org.jboss.resource.security.ConfiguredIdentityLoginModule&#8221;<br />
flag = &#8220;required&#8221;&gt;<br />
&lt;module-option name =&#8221;principal&#8221;&gt;sa&lt;/module-option&gt;<br />
&lt;module-option name =&#8221;userName&#8221;&gt;sa&lt;/module-option&gt;<br />
&lt;module-option name =&#8221;password&#8221;&gt;&lt;/module-option&gt;<br />
&lt;module-option name =&#8221;managedConnectionFactoryName&#8221;&gt;<br />
jboss.jca:service=LocalTxCM,name=MySqlDS<br />
&lt;/module-option&gt;<br />
&lt;/login-module&gt;<br />
&lt;/authentication&gt;<br />
&lt;/application-policy&gt;</li>
<li>Create a file, like this: /&lt;ATG_HOME&gt;/home/localconfig/atg/dynamo/service/jdbc/JTDataSource.properties<br />
The ATG documentation states to create a jbossconfig folder with a change to a manifest to point to that path. I skipped that.</li>
<li>Edit this JTDataSource.properties. It should contain:<br />
JNDIName=java:/MySqlDS<br />
and should NOT contain<br />
$class=atg.nucleus.JNDIReference<br />
This is wrong. error in ATG docs I guess. It results in classnotfoundexception in my case. Leaving it out seems to fix it?!</li>
<li> Run datascripts<br />
/Applications/ATG 2006.3/DAS/sql/install/mysql/das_ddl.sql<br />
/Applications/ATG 2006.3/DPS/sql/install/mysql/dps_ddl.sql<br />
/Applications/ATG 2006.3/DSS/sql/install/mysql/dss_ddl.sql<br />
I used mysql <em>&lt;dbname&gt;</em>  &lt; dss_ddl.sql  &#8211;user=<em>&lt;user&gt;</em> &#8211;password=<em>&lt;password&gt;</em></li>
</ol>
<p><strong>After installation </strong></p>
<p>Run by using the startDynamoOnJBOSS.sh  script form &lt;ATG_HOME&gt;home/bin folder and  use  -c atg  to use the atg server-config-name.</p>
<p>I sometimes had to delete the ATGDAF.ear from the Deploy folder and retry, when changing some configuration. It seems they are not always recopied.</p>
<p>These steps worked for me to get a basic Nucleus install where the ACC is working correctly.</p>
<p>Good luck</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/pulleman.wordpress.com/3/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/pulleman.wordpress.com/3/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pulleman.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pulleman.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pulleman.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pulleman.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pulleman.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pulleman.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pulleman.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pulleman.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pulleman.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pulleman.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pulleman.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pulleman.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pulleman.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pulleman.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.pulleman.com&amp;blog=913562&amp;post=3&amp;subd=pulleman&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.pulleman.com/2007/03/25/atg-jboss-and-mysql-on-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/561387d0c0c3fc3d68c109499fa468e6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Ronald Pulleman</media:title>
		</media:content>
	</item>
	</channel>
</rss>
