<?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</title>
	<atom:link href="http://kennelbound.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://kennelbound.com</link>
	<description></description>
	<lastBuildDate>Thu, 29 Oct 2009 15:14:49 +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>Games: Fallout 3 Hacking Minigame Solver</title>
		<link>http://kennelbound.com/fallout-3-solver/</link>
		<comments>http://kennelbound.com/fallout-3-solver/#comments</comments>
		<pubDate>Thu, 29 Oct 2009 15:14:20 +0000</pubDate>
		<dc:creator>sam</dc:creator>
				<category><![CDATA[Games]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[fallout3]]></category>

		<guid isPermaLink="false">http://kennelbound.com/?p=12</guid>
		<description><![CDATA[I&#8217;ve added my Fallout 3 Solver back to the website, so if you were having trouble finding it before it is back now.
For those that haven&#8217;t used it before: In Fallout 3 there are computer terminals all around the world.  To access some of them you have to pass a &#8220;hacking&#8221; puzzle.  Sometimes its fun [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve added my <a title="Hacking Minigame Solver" href="http://kennelbound.com/fallout3/">Fallout 3 Solver</a> back to the website, so if you were having trouble finding it before it is back now.</p>
<p>For those that haven&#8217;t used it before: In Fallout 3 there are computer terminals all around the world.  To access some of them you have to pass a &#8220;hacking&#8221; puzzle.  Sometimes its fun to play this out and try and solve the puzzle manually.  However, often I really needed what was in the next room and the door was controlled by the computer.</p>
<p>To ensure that I didn&#8217;t lose my chances, I wrote this solving tool.</p>
<p>The tool has percentages based upon how common the letters are in it.  For example, the letter e is the most common letter in the English language.  It seems to me then that a word with an e in it is more likely to occur than a word with no e&#8217;s in it.  That being said, the percentages are just for fun.</p>
<p>Enjoy and leave me comments!</p>
]]></content:encoded>
			<wfw:commentRss>http://kennelbound.com/fallout-3-solver/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 [...]]]></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>

<!-- Dynamic page generated in 0.313 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2010-03-09 12:53:59 -->
