<?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>Sam Alston&#039;s Blog &#187; admin</title>
	<atom:link href="http://kennelbound.com/author/admin/feed/" rel="self" type="application/rss+xml" />
	<link>http://kennelbound.com</link>
	<description></description>
	<lastBuildDate>Wed, 07 Sep 2011 17:25:23 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Running Lejos on RCX 2.0 and Mac OSX Snow Leopard</title>
		<link>http://kennelbound.com/running-lejos-on-rcx-2-0-and-mac-osx-snow-leopard/</link>
		<comments>http://kennelbound.com/running-lejos-on-rcx-2-0-and-mac-osx-snow-leopard/#comments</comments>
		<pubDate>Sun, 27 Mar 2011 23:12:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://kennelbound.com/running-lejos-on-rcx-2-0-and-mac-osx-snow-leopard/</guid>
		<description><![CDATA[Yesterday I purchased a Lego Mindstorms NXT 2.0 for my son.
It was ridiculously expensive. I had a focus on robotics in my BS program, so I was excited to build some robots with him. At the time, we used the Lego Robotics Invention System (now called RCX). I went onto craigslist and found one of <a href="http://kennelbound.com/running-lejos-on-rcx-2-0-and-mac-osx-snow-leopard/" class="more-link">More &#62;</a>]]></description>
			<content:encoded><![CDATA[<p>Yesterday I purchased a Lego Mindstorms NXT 2.0 for my son.</p>
<p>It was ridiculously expensive. I had a focus on robotics in my BS program, so I was excited to build some robots with him. At the time, we used the Lego Robotics Invention System (now called RCX). I went onto craigslist and found one of these machines so that I could build robots with my son, but without the $300+ pricetag.</p>
<p>After procuring the machine, I spent some time trying to setup the development environment I had used back in college. Unfortunately, the C toolchain I had used was not available for Mac (at least, I couldn&#8217;t find a tutorial on setting it up.) I found an interesting firmware replacement at lejos.org that allows you to code your applications in java, using a custom library set.</p>
<p>Being a Java developer by day, this appealed to me quite a bit. So I set about the long process of trying to get lejos to work on my 64-bit Snow Leopard MBP&#8230; and failed miserably. There were compilation issues (conversion of 64-bit pointers to 32-bit handles in the code necessary to communicate with the IR tower (used to program the RCX).</p>
<p>Finally, I found <a href="http://lejos.sourceforge.net/forum/viewtopic.php?f=10&amp;t=1673">http://lejos.sourceforge.net/forum/viewtopic.php?f=10&amp;t=1673</a>, and the link by tsinn where he&#8217;d setup an installer for the lejos subsystem and toolchain onto Mac OSX 10.5 (a 32-bit system). After downloading his system, then making a couple of tweaks, I was able to generate the following package: <a href="http://kennelbound.com/downloads/lejos3.zip" title="lejos3">http://kennelbound.com/downloads/lejos3.zip</a></p>
<p>To use, simply do the following:</p>
<p>1) Download and extract the lejos3,zip to a local folder (such as /personal/lejos3)<br />
2) Edit the lejos.env file and change the LEJOS_HOME to point to the directory where you extracted it.<br />
3) Open a command console, and cd to the LEJOS_HOME directory<br />
4) Type in &#8220;source lejos.env&#8221; (without the quotes)<br />
5) cd to the LEJOS_HOME/bin directory<br />
6) Install the firmware onto the RCX using &#8220;./firmdl&#8221; without the quotes<br />
7) You should see some progress. Once it completes, you now have the RCX running lejos!</p>
<p>You can test it with a simple Hello World application:</p>
<p>1) cd to lejos3/examples/test/hworld<br />
2) execute &#8220;lejosjc HelloWorld; lejos HelloWorld&#8221; without the quotes to compile and send the program to the RCX.<br />
3) Once it&#8217;s done, on the RCX, press the &#8220;Run&#8221; button.</p>
<p>You should see &#8220;hello world&#8221; on the RCX&#8217;s LCD.</p>
<p>Next time, I&#8217;ll write down how I have Intellij setup so that I can run and load the applications with ease!</p>
]]></content:encoded>
			<wfw:commentRss>http://kennelbound.com/running-lejos-on-rcx-2-0-and-mac-osx-snow-leopard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WSDL2Java with Maven &#8211; Fixing &#8220;BadCommandLineException: grammar is not specified&#8221;</title>
		<link>http://kennelbound.com/wsdl2java-with-maven-fixing-badcommandlineexception-grammar-is-not-specified/</link>
		<comments>http://kennelbound.com/wsdl2java-with-maven-fixing-badcommandlineexception-grammar-is-not-specified/#comments</comments>
		<pubDate>Wed, 28 Oct 2009 21:49:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[java wsdl autogen spring xsd maven]]></category>

		<guid isPermaLink="false">http://kennelbound.com/?p=8</guid>
		<description><![CDATA[At my job, we use the wsdl2java maven plugin to generate the appropriate classes from the webservices&#8217; wsdl document.  When we received notice that we were to incorporate a new webservice into the system, we thought &#8220;No big deal, we&#8217;ll just use the plugin and be off!&#8221;
Unfortunately, we ran into the dreaded &#8220;com.sun.tools.xjc.BadCommandLineException: grammar <a href="http://kennelbound.com/wsdl2java-with-maven-fixing-badcommandlineexception-grammar-is-not-specified/" class="more-link">More &#62;</a>]]></description>
			<content:encoded><![CDATA[<p>At my job, we use the wsdl2java maven plugin to generate the appropriate classes from the webservices&#8217; wsdl document.  When we received notice that we were to incorporate a new webservice into the system, we thought &#8220;No big deal, we&#8217;ll just use the plugin and be off!&#8221;</p>
<p>Unfortunately, we ran into the dreaded &#8220;com.sun.tools.xjc.BadCommandLineException: grammar is not specified&#8221; error.  After inspecting the code I couldn&#8217;t find any issue.  The wsdl was right there, and it didn&#8217;t reference any outside xsds or anything?  What&#8217;s the problem?</p>
<p>I did a google search.  Found some interesting threads from nabble that had nothing to do with my problem.  Eventually, I found that (with a misleading name) the wsdl2java plugin doesn&#8217;t automatically pickup xsds.  If you are pointed to a directory that has XSDs (usually referenced by the actual wsdl files) it will autogen from those.  But if your xsd are in a subdirectory (or not needed for such a simple webservice) then wsdl2java blows up with the grammar error.</p>
<p>I ended up the following in my pom:</p>
<pre>
<pre class="brush: xml">
&lt;plugin&gt;
    &lt;groupId&gt;com.sun.tools.xjc.maven2&lt;/groupId&gt;
    &lt;artifactId&gt;maven-jaxb-plugin&lt;/artifactId&gt;
    &lt;executions&gt;
        &lt;execution&gt;
            &lt;!-- This one has the xsd&#039;s in the same directory, so it was already working --&gt;
            &lt;id&gt;simple-xsd-wsdl2java&lt;/id&gt;
            &lt;phase&gt;generate-sources&lt;/phase&gt;
            &lt;goals&gt;
                &lt;goal&gt;generate&lt;/goal&gt;
            &lt;/goals&gt;
            &lt;configuration&gt;
                &lt;!-- directory of the wsdls and the xsds --&gt;
                &lt;schemaDirectory&gt;src/main/wsdl/simple&lt;/schemaDirectory&gt;
                &lt;generateDirectory&gt;src/autogen/simple&lt;/generateDirectory&gt;
                &lt;readOnly&gt;true&lt;/readOnly&gt;
            &lt;/configuration&gt;
        &lt;/execution&gt;
        &lt;execution&gt;
            &lt;!-- This one was only the WSDL files, with no external XSDs --&gt;
            &lt;id&gt;wsdlOnly-wsdl2java&lt;/id&gt;
            &lt;phase&gt;generate-sources&lt;/phase&gt;
            &lt;goals&gt;
                &lt;goal&gt;generate&lt;/goal&gt;
            &lt;/goals&gt;
            &lt;configuration&gt;
                &lt;!-- directory of the wsdl files --&gt;
                &lt;schemaDirectory&gt;src/main/wsdl/wsdlOnly&lt;/schemaDirectory&gt;
                &lt;generateDirectory&gt;src/main/autogen/wsdlOnly&lt;/generateDirectory&gt;
                &lt;readOnly&gt;true&lt;/readOnly&gt;
                &lt;includeSchemas&gt;
                    &lt;!-- Each schema has to be spelled out as an includedSchema, or it will be ignored --&gt;
                    &lt;includeSchema&gt;AccountService.wsdl&lt;/includeSchema&gt;
                    &lt;includeSchema&gt;SystemService.wsdl&lt;/includeSchema&gt;
                    &lt;includeSchema&gt;GiftService.wsdl&lt;/includeSchema&gt;
                &lt;/includeSchemas&gt;
                &lt;!-- Indicates to the grammar parser that the schema files are in the wsdl format --&gt;
                &lt;args&gt;-wsdl&lt;/args&gt;
            &lt;/configuration&gt;
        &lt;/execution&gt;
    &lt;/executions&gt;
&lt;/plugin&gt;
</pre>
</pre>
<p>Notice that in the wsdlOnly configuration I have specifed each schema file separately.  I think there is a way to specify a directory/wildcard search, but I didn&#8217;t spend the time figuring it out.  The other immensely important part is adding the args section.  This tells the parser that the files are in wsdl format, not in XSD.</p>
<p>I hope that this helps anyone out there looking for a way to auto generate class files to use with SpringWS from stand-alone wsdl files.</p>
]]></content:encoded>
			<wfw:commentRss>http://kennelbound.com/wsdl2java-with-maven-fixing-badcommandlineexception-grammar-is-not-specified/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Moving to Wordpress!</title>
		<link>http://kennelbound.com/moving-to-wordpress/</link>
		<comments>http://kennelbound.com/moving-to-wordpress/#comments</comments>
		<pubDate>Wed, 16 Sep 2009 03:03:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[wordpress general]]></category>

		<guid isPermaLink="false">http://kennelbound.com/?p=3</guid>
		<description><![CDATA[I&#8217;m migrating my old blog to a Wordpress based one.  It might take a while since I had such a vast number of blog posts on blogger.  That being said, the Fallout 3 Hacker Solver should be up ASAP.
Let me know what you think of the new look and feel!
]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m migrating my old blog to a Wordpress based one.  It might take a while since I had such a vast number of blog posts on blogger.  That being said, the Fallout 3 Hacker Solver should be up ASAP.</p>
<p>Let me know what you think of the new look and feel!</p>
]]></content:encoded>
			<wfw:commentRss>http://kennelbound.com/moving-to-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

