<?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>Thu, 24 Jun 2010 19:42:09 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<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
I did this [...]


Related posts:<ol><li><a href='http://betweengo.com/2009/07/27/debug-atg-running-on-jboss-with-eclipse/' rel='bookmark' title='Permanent Link: Debug ATG running on JBoss with Eclipse'>Debug ATG running on JBoss with Eclipse</a></li>
<li><a href='http://betweengo.com/2009/07/21/namenotfoundexceptions-during-start-up-of-atg-application-on-jboss/' rel='bookmark' title='Permanent Link: 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/2009/07/14/recurring-illegal-access-errors-in-jboss-when-running-atg/' rel='bookmark' title='Permanent Link: 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>Related posts:<ol><li><a href='http://betweengo.com/2009/07/27/debug-atg-running-on-jboss-with-eclipse/' rel='bookmark' title='Permanent Link: Debug ATG running on JBoss with Eclipse'>Debug ATG running on JBoss with Eclipse</a></li>
<li><a href='http://betweengo.com/2009/07/21/namenotfoundexceptions-during-start-up-of-atg-application-on-jboss/' rel='bookmark' title='Permanent Link: 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/2009/07/14/recurring-illegal-access-errors-in-jboss-when-running-atg/' rel='bookmark' title='Permanent Link: 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 server configuration and the [...]


Related posts:<ol><li><a href='http://betweengo.com/2009/07/21/namenotfoundexceptions-during-start-up-of-atg-application-on-jboss/' rel='bookmark' title='Permanent Link: 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='Permanent Link: 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/2009/07/27/debug-atg-running-on-jboss-with-eclipse/' rel='bookmark' title='Permanent Link: Debug ATG running on JBoss with Eclipse'>Debug ATG running on JBoss with Eclipse</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>Related posts:<ol><li><a href='http://betweengo.com/2009/07/21/namenotfoundexceptions-during-start-up-of-atg-application-on-jboss/' rel='bookmark' title='Permanent Link: 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='Permanent Link: 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/2009/07/27/debug-atg-running-on-jboss-with-eclipse/' rel='bookmark' title='Permanent Link: Debug ATG running on JBoss with Eclipse'>Debug ATG running on JBoss with Eclipse</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.
&#60;category  [...]


Related posts:<ol><li><a href='http://betweengo.com/2006/04/04/howto-log-sql-on-jboss/' rel='bookmark' title='Permanent Link: 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='Permanent Link: 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='Permanent Link: 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>Related posts:<ol><li><a href='http://betweengo.com/2006/04/04/howto-log-sql-on-jboss/' rel='bookmark' title='Permanent Link: 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='Permanent Link: 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='Permanent Link: 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;
!  [...]


Related posts:<ol><li><a href='http://betweengo.com/2009/05/04/unit-test-for-threaded-logging/' rel='bookmark' title='Permanent Link: Unit Test for Threaded Logging'>Unit Test for Threaded Logging</a></li>
<li><a href='http://betweengo.com/2008/07/05/enabling-trace-level-debugging-in-jboss/' rel='bookmark' title='Permanent Link: Enabling Trace Level Debugging in JBoss'>Enabling Trace Level Debugging in JBoss</a></li>
<li><a href='http://betweengo.com/2008/05/27/log4j-levels/' rel='bookmark' title='Permanent Link: 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>Related posts:<ol><li><a href='http://betweengo.com/2009/05/04/unit-test-for-threaded-logging/' rel='bookmark' title='Permanent Link: Unit Test for Threaded Logging'>Unit Test for Threaded Logging</a></li>
<li><a href='http://betweengo.com/2008/07/05/enabling-trace-level-debugging-in-jboss/' rel='bookmark' title='Permanent Link: Enabling Trace Level Debugging in JBoss'>Enabling Trace Level Debugging in JBoss</a></li>
<li><a href='http://betweengo.com/2008/05/27/log4j-levels/' rel='bookmark' title='Permanent Link: 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>0</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! -->