<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.vitarara.org/cms" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>Vita Rara: A Life Uncommon - Jetty</title>
 <link>http://www.vitarara.org/cms/taxonomy/term/67/all</link>
 <description></description>
 <language>en</language>
<item>
 <title>Maven Jetty Plugin Logging Woes</title>
 <link>http://www.vitarara.org/cms/node/92</link>
 <description>&lt;p&gt;My logging issues weren&#039;t completely over yesterday. I first adopted the &quot;org.apache.commons.logging.impl.SimpleLog&quot; method in the Jetty plugin, but this still spewed far too many lines of logging in my Struts 2 application. The major culprit was FreeMarker. It logs a tremendous amount of data. Far more than I would ever think the average non-FreeMarker developer would ever need.&lt;/p&gt;
&lt;p&gt;So, I decided I needed to go the log4j route, so I could control the levels for the various libraries. I copied the dependencies section as explained &lt;a href=&quot;http://www.mortbay.org/maven-plugin/howto.html&quot;&gt;on the jetty page&lt;/a&gt;. This lead to errors when parsing JSP pages and tags. Something in those dependencies introduced something strange into the Jetty runtime environment. After futzing about for a while, and sleeping on it I decided to just delete the dependencies and still try to use log4j. Lo and behold it worked. I started with the log4j.properties file in /src/main/resources created by the Struts 2 Maven archetype as my starting point, and now I have a finely tuned log4j setup.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.vitarara.org/cms/node/92&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.vitarara.org/cms/node/92#comment</comments>
 <category domain="http://www.vitarara.org/cms/java">Java</category>
 <category domain="http://www.vitarara.org/cms/taxonomy/term/67">Jetty</category>
 <category domain="http://www.vitarara.org/cms/taxonomy/term/61">Maven</category>
 <category domain="http://www.vitarara.org/cms/taxonomy/term/57">Struts 2</category>
 <pubDate>Sun,  4 Feb 2007 09:35:17 -0500</pubDate>
 <dc:creator>Mark</dc:creator>
 <guid isPermaLink="false">92 at http://www.vitarara.org/cms</guid>
</item>
<item>
 <title>Maven Jetty Plugin Logging</title>
 <link>http://www.vitarara.org/cms/node/90</link>
 <description>&lt;p&gt;I&#039;ve gotten Maven, Jetty, Spring, and JPA playing well together! I&#039;ve ecstatic. Bye, bye JBoss. I don&#039;t know that I&#039;ll never run JBoss for development again, but I don&#039;t think it will be common.&lt;/p&gt;
&lt;p&gt;Anyway, upon getting the &lt;a href=&quot;http://www.mortbay.org/maven-plugin/index.html&quot;&gt;Jetty Maven Plugin&lt;/a&gt; working (mvn jetty:run) it was logging too much debug information. Hitting one page ran out a 10,000 line buffer on my terminal. There was a simple quick &lt;a href=&quot;http://www.mortbay.org/maven-plugin/howto.html&quot;&gt;fix&lt;/a&gt; though. Add a few properties to the plugin configuration in your POM file and voila, reasonable logging.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.vitarara.org/cms/node/90&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.vitarara.org/cms/node/90#comment</comments>
 <category domain="http://www.vitarara.org/cms/taxonomy/term/67">Jetty</category>
 <category domain="http://www.vitarara.org/cms/taxonomy/term/55">JPA</category>
 <category domain="http://www.vitarara.org/cms/taxonomy/term/61">Maven</category>
 <category domain="http://www.vitarara.org/cms/taxonomy/term/17">Quadran</category>
 <pubDate>Sat,  3 Feb 2007 15:03:00 -0500</pubDate>
 <dc:creator>Mark</dc:creator>
 <guid isPermaLink="false">90 at http://www.vitarara.org/cms</guid>
</item>
</channel>
</rss>

