<?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>betweenGo &#187; JBoss</title>
	<atom:link href="http://betweengo.com/category/jboss/feed/" rel="self" type="application/rss+xml" />
	<link>http://betweengo.com</link>
	<description>We make Ruby on Rails easy.  We make ATG easy.</description>
	<lastBuildDate>Tue, 06 Dec 2011 14:03:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Configuring JBoss for HTTPS</title>
		<link>http://betweengo.com/2011/02/16/configuring-jboss-for-https/</link>
		<comments>http://betweengo.com/2011/02/16/configuring-jboss-for-https/#comments</comments>
		<pubDate>Wed, 16 Feb 2011 14:19:55 +0000</pubDate>
		<dc:creator>Frank Kim</dc:creator>
				<category><![CDATA[JBoss]]></category>
		<category><![CDATA[ATG]]></category>
		<category><![CDATA[configuration]]></category>

		<guid isPermaLink="false">http://betweengo.com/2011/02/16/configuring-jboss-for-https/</guid>
		<description><![CDATA[Keys 1 by ~Brenda-Starr~ This is how I configured JBoss to handle HTTPS requests for secure ATG applications. Create the keystore and private key. $ cd /opt/jboss/jboss-eap-4.3/jboss-as/server/atg/conf $ keytool -genkey -alias jbosskey -keyalg RSA -keystore server.keystore Generate and store the certificate. $ keytool -export -alias jbosskey -file server.crt -keystore server.keystore $ keytool -import -alias jbosscert [...]
Related posts:<ol>
<li><a href='http://betweengo.com/2009/07/20/create-additional-jboss-application-server-configurations/' rel='bookmark' title='Create Additional JBoss Application Server Configurations'>Create Additional JBoss Application Server Configurations</a></li>
<li><a href='http://betweengo.com/2010/12/19/turning-on-debug-in-jboss/' rel='bookmark' title='Turning On Debug in JBoss'>Turning On Debug in JBoss</a></li>
<li><a href='http://betweengo.com/2009/07/21/namenotfoundexceptions-during-start-up-of-atg-application-on-jboss/' rel='bookmark' title='NameNotFoundExceptions during start up of ATG application on JBoss'>NameNotFoundExceptions during start up of ATG application on JBoss</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><a title="Keys 1" href="http://www.flickr.com/photos/brenda-starr/3466560105/"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; margin-right: auto; padding-top: 0px; border: 0px;" src="http://farm4.static.flickr.com/3557/3466560105_0b6f694d4a.jpg" border="0" alt="" /></a></p>
<p style="text-align: center;"><a title="Keys 1 | Flickr" href="http://www.flickr.com/photos/brenda-starr/3466560105/">Keys 1</a> by <a title="Flickr: ~Brenda-Starr~'s Photostream" href="http://www.flickr.com/photos/brenda-starr/3466560105/">~Brenda-Starr~</a></p>
<p>This is how I configured JBoss to handle HTTPS requests for <a title="Turning on Secure for ATG Applications" href="http://betweengo.com/2010/11/10/turning-on-secure-for-atg-applications/">secure ATG applications</a>.</p>
<ol>
<li>Create the keystore and private key.
<pre>$ cd /opt/jboss/jboss-eap-4.3/jboss-as/server/atg/conf
$ keytool -genkey -alias jbosskey -keyalg RSA -keystore server.keystore</pre>
</li>
<li>Generate and store the certificate.
<pre>$ keytool -export -alias jbosskey -file server.crt -keystore server.keystore
$ keytool -import -alias jbosscert -file server.crt -keystore server.keystore</pre>
</li>
<li>Enable HTTPS.
<pre>$ vi /opt/jboss/jboss-eap-4.3/jboss-as/server/atg/deploy/jboss-web.deployer/server.xml</pre>
<p>Uncomment SSL HTTP/1.1 Connector section and edit. For example:</p>
<pre>    &lt;Connector port="8443" address="${jboss.bind.address}"
               protocol="HTTP/1.1" SSLEnabled="true"
               maxThreads="150" scheme="https" secure="true"
               clientAuth="false" sslProtocol="TLS"
               keystoreFile="${jboss.server.home.dir}/conf/server.keystore"
               keystorePass="letmein" /&gt;</pre>
</li>
<li>Start JBoss with keystore specified. On UNIX you can do this by updating <tt>run.conf</tt>. For example:
<pre>JAVA_OPTS="-Xms128m -Xmx512m -XX:MaxPermSize=128m -Djavax.net.ssl.trustStore=/opt/jboss/jboss-eap-4.3/jboss-as/server/atg/conf/server.keystore -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dsun.lang.ClassLoader.allowArraySyntax=true"</pre>
</li>
</ol>
<p>Note that if you are using service bindings (i.e. uncommented service bindings section of <tt>conf/jboss-service.xml</tt>) then the bindings in the XML configuration file (e.g. <tt>sample-bindings.xml</tt>) will take precedence.  In this case the secure port becomes 8543.</p>
<p>For further reading please see <a title="HOWTO Configure JBoss for HTTPS" href="https://wiki.jasig.org/display/CASUM/HOWTO+Configure+JBoss+for+HTTPS">HOWTO Configure JBoss for HTTPS</a>.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fbetweengo.com%2F2011%2F02%2F16%2Fconfiguring-jboss-for-https%2F&amp;title=Configuring%20JBoss%20for%20HTTPS" id="wpa2a_2"><img src="http://betweengo.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p><p>Related posts:<ol>
<li><a href='http://betweengo.com/2009/07/20/create-additional-jboss-application-server-configurations/' rel='bookmark' title='Create Additional JBoss Application Server Configurations'>Create Additional JBoss Application Server Configurations</a></li>
<li><a href='http://betweengo.com/2010/12/19/turning-on-debug-in-jboss/' rel='bookmark' title='Turning On Debug in JBoss'>Turning On Debug in JBoss</a></li>
<li><a href='http://betweengo.com/2009/07/21/namenotfoundexceptions-during-start-up-of-atg-application-on-jboss/' rel='bookmark' title='NameNotFoundExceptions during start up of ATG application on JBoss'>NameNotFoundExceptions during start up of ATG application on JBoss</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://betweengo.com/2011/02/16/configuring-jboss-for-https/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Turning On Debug in JBoss</title>
		<link>http://betweengo.com/2010/12/19/turning-on-debug-in-jboss/</link>
		<comments>http://betweengo.com/2010/12/19/turning-on-debug-in-jboss/#comments</comments>
		<pubDate>Sun, 19 Dec 2010 17:46:28 +0000</pubDate>
		<dc:creator>Frank Kim</dc:creator>
				<category><![CDATA[JBoss]]></category>
		<category><![CDATA[debug]]></category>

		<guid isPermaLink="false">http://betweengo.com/?p=1115</guid>
		<description><![CDATA[There are probably many ways of turning debug on in JBoss. In windows the way I do it is by uncommenting the line in&#60;JBoss&#62;/bin/run.bat that starts with: rem set JAVA_OPTS=-Xdebug Uncommenting in DOS bat files is simply done by removing the rem command: set JAVA_OPTS=-Xdebug I created aliases for turning debug on and off. I [...]
Related posts:<ol>
<li><a href='http://betweengo.com/2009/07/27/debug-atg-running-on-jboss-with-eclipse/' rel='bookmark' title='Debug ATG running on JBoss with Eclipse'>Debug ATG running on JBoss with Eclipse</a></li>
<li><a href='http://betweengo.com/2009/09/28/running-jboss-with-oracle/' rel='bookmark' title='Running JBoss with Oracle'>Running JBoss with Oracle</a></li>
<li><a href='http://betweengo.com/2011/02/16/configuring-jboss-for-https/' rel='bookmark' title='Configuring JBoss for HTTPS'>Configuring JBoss for HTTPS</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/thomwatson/1132365/"><img class="alignleft" title="Prius Power Button" alt="Prius Power Button" src="http://farm1.static.flickr.com/1/1132365_fd5c479ec1_m.jpg" width="240" height="240" /></a>There are probably many ways of turning debug on in JBoss.</p>
<p>In windows the way I do it is by uncommenting the line in&lt;JBoss&gt;/bin/run.bat that starts with:</p>
<pre>rem set JAVA_OPTS=-Xdebug</pre>
<p>
  <br />Uncommenting in DOS bat files is simply done by removing the rem command:</p>
<p></p>
<pre>set JAVA_OPTS=-Xdebug</pre>
<p>
  <br />I created aliases for turning debug on and off. I use a script which simply replaces one string with another.</p>
<p></p>
<pre>alias debugon='changeString.sh &quot;^rem set JAVA_OPTS=-Xdebug&quot; &quot;set JAVA_OPTS=-Xdebug&quot; ${JBOSS}/bin/run.bat &amp;&amp; chmod 755 ${JBOSS}/bin/run.bat &amp;&amp; unix2dos ${JBOSS}/bin/run.bat'
alias debugoff='changeString.sh &quot;^set JAVA_OPTS=-Xdebug&quot; &quot;rem set JAVA_OPTS=-Xdebug&quot; ${JBOSS}/bin/run.bat &amp;&amp; chmod 755 ${JBOSS}/bin/run.bat &amp;&amp; unix2dos ${JBOSS}/bin/run.bat'</pre>
<p>
  <br />On Unix I do a similar thing, uncommenting this line in &lt;JBoss&gt;/bin/run.conf:</p>
<p></p>
<pre>#JAVA_OPTS=&quot;$JAVA_OPTS -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n&quot;</pre>
<p>
  <br />Uncommenting in Unix shell scripts is simply done by removing the # character at the beginning of the line.</p>
<p></p>
<pre>JAVA_OPTS=&quot;$JAVA_OPTS -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n&quot;</pre>
<p>
  <br />These are my aliases on UNIX for turning debug on and off.</p>
<p></p>
<pre>alias debugon=&quot;changeString.sh '^#JAVA_OPTS=\&quot;\$JAVA_OPTS -Xrunjdwp:transport=dt_socket' 'JAVA_OPTS=\&quot;\$JAVA_OPTS -Xrunjdwp:transport=dt_socket' ${JBOSS_HOME}/bin/run.conf&quot;
alias debugoff=&quot;changeString.sh '^JAVA_OPTS=\&quot;\$JAVA_OPTS -Xrunjdwp:transport=dt_socket' '#JAVA_OPTS=\&quot;\$JAVA_OPTS -Xrunjdwp:transport=dt_socket' ${JBOSS_HOME}/bin/run.conf&quot;</pre>
<p>
  <br />One of the reasons I created the scripts was because on Windows suspend=y by default. Therefore when in debug mode you have to start your debugger or the JBoss server will not completely start up. On Unix suspend=n by default. If you change suspend=n on Windows too then the server will start up without waiting for the debugger to attach.</p>
<p>Note that you can only have one server with debug on for a given port, e.g. port 8787.&#160; So if you try to start more than one JBoss server with that port, only the first will start.&#160; The solution is to start only one server with debug on or start different servers with different debug ports.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fbetweengo.com%2F2010%2F12%2F19%2Fturning-on-debug-in-jboss%2F&amp;title=Turning%20On%20Debug%20in%20JBoss" id="wpa2a_4"><img src="http://betweengo.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p><p>Related posts:<ol>
<li><a href='http://betweengo.com/2009/07/27/debug-atg-running-on-jboss-with-eclipse/' rel='bookmark' title='Debug ATG running on JBoss with Eclipse'>Debug ATG running on JBoss with Eclipse</a></li>
<li><a href='http://betweengo.com/2009/09/28/running-jboss-with-oracle/' rel='bookmark' title='Running JBoss with Oracle'>Running JBoss with Oracle</a></li>
<li><a href='http://betweengo.com/2011/02/16/configuring-jboss-for-https/' rel='bookmark' title='Configuring JBoss for HTTPS'>Configuring JBoss for HTTPS</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://betweengo.com/2010/12/19/turning-on-debug-in-jboss/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Running JBoss with Oracle</title>
		<link>http://betweengo.com/2009/09/28/running-jboss-with-oracle/</link>
		<comments>http://betweengo.com/2009/09/28/running-jboss-with-oracle/#comments</comments>
		<pubDate>Mon, 28 Sep 2009 11:00:00 +0000</pubDate>
		<dc:creator>Frank Kim</dc:creator>
				<category><![CDATA[JBoss]]></category>
		<category><![CDATA[ATG]]></category>
		<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://betweengo.com/2009/09/28/running-jboss-with-oracle/</guid>
		<description><![CDATA[(Photo: oracle by you are the atman) Most commercial websites that use JBoss also use Oracle.  To run JBoss with Oracle you simply need to tell JBoss where to find the Oracle JDBC drivers. To do this modify run.bat or run.sh and set the JBOSS_CLASSPATH to include the Oracle JDBC jar file before set JBOSS_CLASSPATH=C:\oracle\product\10.2.0\db_1\jdbc\lib\ojdbc14.jar [...]
Related posts:<ol>
<li><a href='http://betweengo.com/2009/07/27/debug-atg-running-on-jboss-with-eclipse/' rel='bookmark' title='Debug ATG running on JBoss with Eclipse'>Debug ATG running on JBoss with Eclipse</a></li>
<li><a href='http://betweengo.com/2010/12/19/turning-on-debug-in-jboss/' rel='bookmark' title='Turning On Debug in JBoss'>Turning On Debug in JBoss</a></li>
<li><a href='http://betweengo.com/2009/07/14/recurring-illegal-access-errors-in-jboss-when-running-atg/' rel='bookmark' title='Recurring Illegal Access Errors in JBoss when running ATG'>Recurring Illegal Access Errors in JBoss when running ATG</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p style="text-align: center"><img src="http://farm1.static.flickr.com/32/65521680_dd1d6f1ea8.jpg" alt="" /></p>
<p style="text-align: center">(Photo: <a title="oracle on Flickr" href="http://www.flickr.com/photos/midlander/65521680/">oracle</a> by <a title="Flickr: you are the atman's Photostream" href="http://www.flickr.com/photos/midlander/">you are the atman</a>)</p>
<p>Most commercial websites that use JBoss also use Oracle.  To run JBoss with Oracle you simply need to tell JBoss where to find the Oracle JDBC drivers. To do this modify run.bat or run.sh and set the JBOSS_CLASSPATH to include the Oracle JDBC jar file before</p>
<pre>set JBOSS_CLASSPATH=C:\oracle\product\10.2.0\db_1\jdbc\lib\ojdbc14.jar</pre>
<p>I did this right before run.bat checks to see if JBOSS_CLASSPATH is empty.</p>
<pre>rem If JBOSS_CLASSPATH or JAVAC_JAR is empty, don't include it, as this will
rem result in including the local directory in the classpath, which makes
rem error tracking harder.
if not "%JAVAC_JAR%" == "" set RUNJAR=%JAVAC_JAR%;%RUNJAR%
if "%JBOSS_CLASSPATH%" == "" set RUN_CLASSPATH=%RUNJAR%
if "%RUN_CLASSPATH%" == "" set RUN_CLASSPATH=%JBOSS_CLASSPATH%;%RUNJAR%</pre>
<p>After doing this you might need to tell your web application how to configure the data sources. I wrote a post about <a title="NameNotFoundExceptions during start up of ATG application on JBoss" href="http://betweengo.com/2009/07/21/namenotfoundexceptions-during-start-up-of-atg-application-on-jboss/">how to configure your data source for ATG web applications</a>.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fbetweengo.com%2F2009%2F09%2F28%2Frunning-jboss-with-oracle%2F&amp;title=Running%20JBoss%20with%20Oracle" id="wpa2a_6"><img src="http://betweengo.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p><p>Related posts:<ol>
<li><a href='http://betweengo.com/2009/07/27/debug-atg-running-on-jboss-with-eclipse/' rel='bookmark' title='Debug ATG running on JBoss with Eclipse'>Debug ATG running on JBoss with Eclipse</a></li>
<li><a href='http://betweengo.com/2010/12/19/turning-on-debug-in-jboss/' rel='bookmark' title='Turning On Debug in JBoss'>Turning On Debug in JBoss</a></li>
<li><a href='http://betweengo.com/2009/07/14/recurring-illegal-access-errors-in-jboss-when-running-atg/' rel='bookmark' title='Recurring Illegal Access Errors in JBoss when running ATG'>Recurring Illegal Access Errors in JBoss when running ATG</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://betweengo.com/2009/09/28/running-jboss-with-oracle/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create Additional JBoss Application Server Configurations</title>
		<link>http://betweengo.com/2009/07/20/create-additional-jboss-application-server-configurations/</link>
		<comments>http://betweengo.com/2009/07/20/create-additional-jboss-application-server-configurations/#comments</comments>
		<pubDate>Mon, 20 Jul 2009 12:43:00 +0000</pubDate>
		<dc:creator>Frank Kim</dc:creator>
				<category><![CDATA[JBoss]]></category>
		<category><![CDATA[ATG]]></category>

		<guid isPermaLink="false">http://betweengo.com/2009/07/20/create-additional-jboss-application-server-configurations/</guid>
		<description><![CDATA[I thought to create an additional JBoss application server configuration one would have to use some kind of administration tool. It turned out to be much simpler. cp -R server/default server/betweengo If you want to create an ATG application server configuration you can do this. cp -R server/atg server/betweengo The only difference between the default [...]
Related posts:<ol>
<li><a href='http://betweengo.com/2009/07/21/namenotfoundexceptions-during-start-up-of-atg-application-on-jboss/' rel='bookmark' title='NameNotFoundExceptions during start up of ATG application on JBoss'>NameNotFoundExceptions during start up of ATG application on JBoss</a></li>
<li><a href='http://betweengo.com/2010/01/28/enabling-non-xa-resources-in-jboss-4-2-with-atg/' rel='bookmark' title='Enabling non-XA Resources in JBoss 4.2 with ATG'>Enabling non-XA Resources in JBoss 4.2 with ATG</a></li>
<li><a href='http://betweengo.com/2011/02/16/configuring-jboss-for-https/' rel='bookmark' title='Configuring JBoss for HTTPS'>Configuring JBoss for HTTPS</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.atg.com/insightlive2006/sponsors.jhtml"><img class="alignright" title="JBoss" border="0" alt="JBoss" src="http://www.atg.com/insightlive2006/images/jboss_logo.gif" width="155" height="92" /></a> I thought to create an additional JBoss application server configuration one would have to use some kind of administration tool.</p>
<p>It turned out to be much simpler.</p>
<pre>cp -R server/default server/betweengo</pre>
<p>If you want to create an ATG application server configuration you can do this.</p>
<pre>cp -R server/atg server/betweengo</pre>
<p>The only difference between the default server configuration and the atg server configuration is that the latter has two additional datasource XML files for communicating with the SOLID database.</p>
<pre>atg/deploy/atg-apps-solid-ds.xml
atg/deploy/atg-solid-ds.xml</pre>
<p>For further reading please see <a href="http://www.atg.com/service/main.jsp?t=solutionTab&amp;ft=searchTab&amp;ps=solutionPanels&amp;locale=en_US&amp;_dyncharset=UTF-8&amp;solutionId=atg42187">JBoss configurations to run an application</a> (need active ATG support contract to see this document) or <a title="Building Your Own JBoss Configuration" href="http://www.murraywilliams.com/computers/buildjboss/jboss2.html">Building Your Own JBoss Configuration</a> or <a title="Chapter 4.  Using JBoss Application Server" href="http://www.redhat.com/docs/en-US/Red_Hat_Application_Stack/2.2/html/Release_Notes/sn-usingjbossas.html#sn-linuxservice">Using JBoss Application Server</a>.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fbetweengo.com%2F2009%2F07%2F20%2Fcreate-additional-jboss-application-server-configurations%2F&amp;title=Create%20Additional%20JBoss%20Application%20Server%20Configurations" id="wpa2a_8"><img src="http://betweengo.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p><p>Related posts:<ol>
<li><a href='http://betweengo.com/2009/07/21/namenotfoundexceptions-during-start-up-of-atg-application-on-jboss/' rel='bookmark' title='NameNotFoundExceptions during start up of ATG application on JBoss'>NameNotFoundExceptions during start up of ATG application on JBoss</a></li>
<li><a href='http://betweengo.com/2010/01/28/enabling-non-xa-resources-in-jboss-4-2-with-atg/' rel='bookmark' title='Enabling non-XA Resources in JBoss 4.2 with ATG'>Enabling non-XA Resources in JBoss 4.2 with ATG</a></li>
<li><a href='http://betweengo.com/2011/02/16/configuring-jboss-for-https/' rel='bookmark' title='Configuring JBoss for HTTPS'>Configuring JBoss for HTTPS</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://betweengo.com/2009/07/20/create-additional-jboss-application-server-configurations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enabling Trace Level Debugging in JBoss</title>
		<link>http://betweengo.com/2008/07/05/enabling-trace-level-debugging-in-jboss/</link>
		<comments>http://betweengo.com/2008/07/05/enabling-trace-level-debugging-in-jboss/#comments</comments>
		<pubDate>Sat, 05 Jul 2008 20:34:21 +0000</pubDate>
		<dc:creator>Frank Kim</dc:creator>
				<category><![CDATA[JBoss]]></category>
		<category><![CDATA[Logging]]></category>

		<guid isPermaLink="false">http://betweengo.com/?p=208</guid>
		<description><![CDATA[In JBoss 4.0.4.GA it took me awhile to figure out how to enable trace level debugging. Typically you could do something like this to enable trace level debugging for a category of classes. &#60;category name="com.betweengo.app"&#62; &#60;priority value="TRACE"/&#62; &#60;/category&#62; However JBoss 4.0.4.GA has an older log4j implementation so you need to use JBoss&#8217;s custom TRACE level. [...]
Related posts:<ol>
<li><a href='http://betweengo.com/2006/04/04/howto-log-sql-on-jboss/' rel='bookmark' title='How to Log SQL on JBoss'>How to Log SQL on JBoss</a></li>
<li><a href='http://betweengo.com/2010/01/28/enabling-non-xa-resources-in-jboss-4-2-with-atg/' rel='bookmark' title='Enabling non-XA Resources in JBoss 4.2 with ATG'>Enabling non-XA Resources in JBoss 4.2 with ATG</a></li>
<li><a href='http://betweengo.com/2008/05/27/log4j-levels/' rel='bookmark' title='Log4j levels'>Log4j levels</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>In JBoss 4.0.4.GA it took me awhile to figure out how to enable trace level debugging.</p>
<p>Typically you could do something like this to enable trace level debugging for a category of classes.</p>
<pre>&lt;category  name="com.betweengo.app"&gt;
  &lt;priority  value="TRACE"/&gt;
&lt;/category&gt;</pre>
<p>However JBoss 4.0.4.GA has an older log4j implementation so you need to use JBoss&#8217;s custom TRACE level.</p>
<pre>&lt;category  name="com.betweengo.app"&gt;
  &lt;priority  value="TRACE" class="org.jboss.logging.XLevel"/&gt;
&lt;/category&gt;</pre>
<p>This is documented in the release notes for JBoss-4.2.1.GA.</p>
<blockquote><p>Since the latest log4j includes a trace level, there is no need to reference the custom jboss TRACE level in conf/jboss-log4j.xml configs, JBAS-4163.</p></blockquote>
<p>There is additional information on trace level debugging in the articles <a title="JBossWiki : JBossMessagingUser_Enabling_TRACE_logging_on_server" href="http://wiki.jboss.org/wiki/JBossMessagingUser_Enabling_TRACE_logging_on_server">Enabling TRACE logging on server </a>and <a title="JBoss.com - logging" href="http://www.jboss.com/developers/guides/logging">Using Logging</a>.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fbetweengo.com%2F2008%2F07%2F05%2Fenabling-trace-level-debugging-in-jboss%2F&amp;title=Enabling%20Trace%20Level%20Debugging%20in%20JBoss" id="wpa2a_10"><img src="http://betweengo.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p><p>Related posts:<ol>
<li><a href='http://betweengo.com/2006/04/04/howto-log-sql-on-jboss/' rel='bookmark' title='How to Log SQL on JBoss'>How to Log SQL on JBoss</a></li>
<li><a href='http://betweengo.com/2010/01/28/enabling-non-xa-resources-in-jboss-4-2-with-atg/' rel='bookmark' title='Enabling non-XA Resources in JBoss 4.2 with ATG'>Enabling non-XA Resources in JBoss 4.2 with ATG</a></li>
<li><a href='http://betweengo.com/2008/05/27/log4j-levels/' rel='bookmark' title='Log4j levels'>Log4j levels</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://betweengo.com/2008/07/05/enabling-trace-level-debugging-in-jboss/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Log SQL on JBoss</title>
		<link>http://betweengo.com/2006/04/04/howto-log-sql-on-jboss/</link>
		<comments>http://betweengo.com/2006/04/04/howto-log-sql-on-jboss/#comments</comments>
		<pubDate>Wed, 05 Apr 2006 05:27:05 +0000</pubDate>
		<dc:creator>Frank Kim</dc:creator>
				<category><![CDATA[Hibernate]]></category>
		<category><![CDATA[JBoss]]></category>
		<category><![CDATA[JDBC]]></category>
		<category><![CDATA[Logging]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[log4j]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://betweengo.com/?p=74</guid>
		<description><![CDATA[Edit the log4j.xml in the conf directory as shown below to turn on SQL debugging of the JDBC CMP plugin. /apps/jboss/server/default/conf :-&#62;diff -c log4j.xml~ log4j.xml *** log4j.xml~ Mon Sep 30 18:09:27 2002 --- log4j.xml Tue Apr 4 20:41:18 2006 *************** *** 61,73 **** &#60;!-- ============================== --&#62; &#60;appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender"&#62; ! &#60;param name="Threshold" value="INFO"/&#62; &#60;param name="Target" [...]
Related posts:<ol>
<li><a href='http://betweengo.com/2008/07/05/enabling-trace-level-debugging-in-jboss/' rel='bookmark' title='Enabling Trace Level Debugging in JBoss'>Enabling Trace Level Debugging in JBoss</a></li>
<li><a href='http://betweengo.com/2009/05/04/unit-test-for-threaded-logging/' rel='bookmark' title='Unit Test for Threaded Logging'>Unit Test for Threaded Logging</a></li>
<li><a href='http://betweengo.com/2008/05/27/log4j-levels/' rel='bookmark' title='Log4j levels'>Log4j levels</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Edit the <code>log4j.xml</code> in the <code>conf</code> directory as shown below to turn on SQL debugging of the JDBC CMP plugin.</p>
<pre>/apps/jboss/server/default/conf :-&gt;diff -c log4j.xml~ log4j.xml
*** log4j.xml~  Mon Sep 30 18:09:27 2002
--- log4j.xml   Tue Apr  4 20:41:18 2006
***************
*** 61,73 ****
    &lt;!-- ============================== --&gt;

    &lt;appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender"&gt;
!     &lt;param name="Threshold" value="INFO"/&gt;
      &lt;param name="Target" value="System.out"/&gt;

      &lt;layout class="org.apache.log4j.PatternLayout"&gt;
        &lt;!-- The default pattern: Date Priority [Category] Message\\n --&gt;
        &lt;param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%c{1}] %m%n"/&gt;

      &lt;/layout&gt;
    &lt;/appender&gt;

--- 61,79 ----
    &lt;!-- ============================== --&gt;

    &lt;appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender"&gt;
!     &lt;!--&lt;param name="Threshold" value="INFO"/&gt;--&gt;
!     &lt;param name="Threshold" value="DEBUG"/&gt;
      &lt;param name="Target" value="System.out"/&gt;

      &lt;layout class="org.apache.log4j.PatternLayout"&gt;
        &lt;!-- The default pattern: Date Priority [Category] Message\\n --&gt;
        &lt;param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%c{1}] %m%n"/&gt;

      &lt;/layout&gt;
+
+     &lt;category name="org.jboss.ejb.plugins.cmp.jdbc"&gt;
+       &lt;priority value="DEBUG"/&gt;
+     &lt;/category&gt;
+
    &lt;/appender&gt;</pre>
<p>If you want to log Hibernate SQL statements:</p>
<pre>    &lt;category name="org.hibernate.SQL"&gt;
      &lt;priority value="DEBUG"/&gt;
    &lt;/category&gt;</pre>
<p>If you want to log everything Hibernate&#8217;s doing, including SQL statements, schema export, transactions, etc.:</p>
<pre>    &lt;category name="org.hibernate.SQL"&gt;
      &lt;priority value="DEBUG"/&gt;
    &lt;/category&gt;</pre>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fbetweengo.com%2F2006%2F04%2F04%2Fhowto-log-sql-on-jboss%2F&amp;title=How%20to%20Log%20SQL%20on%20JBoss" id="wpa2a_12"><img src="http://betweengo.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p><p>Related posts:<ol>
<li><a href='http://betweengo.com/2008/07/05/enabling-trace-level-debugging-in-jboss/' rel='bookmark' title='Enabling Trace Level Debugging in JBoss'>Enabling Trace Level Debugging in JBoss</a></li>
<li><a href='http://betweengo.com/2009/05/04/unit-test-for-threaded-logging/' rel='bookmark' title='Unit Test for Threaded Logging'>Unit Test for Threaded Logging</a></li>
<li><a href='http://betweengo.com/2008/05/27/log4j-levels/' rel='bookmark' title='Log4j levels'>Log4j levels</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://betweengo.com/2006/04/04/howto-log-sql-on-jboss/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
