<?xml version="1.0" encoding="utf-8"?>
			
			<rss version="2.0" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:cc="http://web.resource.org/cc/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd">

			<channel>
			<title>Jamie Krug&apos;s ColdFusion Blog - JBoss</title>
			<link>http://jamiekrug.com/blog/index.cfm</link>
			<description>Jamie Krug&apos;s ColdFusion blog, regarding ColdFusion/CFML and other programming adventures as well as some learning experiences. EDB: Event Driven Blogging (in the event that I actually have something worth sharing:)</description>
			<language>en-us</language>
			<pubDate>Wed, 08 Sep 2010 19:40:03 -0400</pubDate>
			<lastBuildDate>Wed, 01 Apr 2009 17:00:00 -0400</lastBuildDate>
			<generator>BlogCFC</generator>
			<docs>http://blogs.law.harvard.edu/tech/rss</docs>
			<managingEditor>jamie@jamiekrug.com</managingEditor>
			<webMaster>jamie@jamiekrug.com</webMaster>
			<itunes:subtitle></itunes:subtitle>
			<itunes:summary></itunes:summary>
			<itunes:category text="Technology" />
			<itunes:category text="Technology">
				<itunes:category text="Podcasting" />
			</itunes:category>
			<itunes:category text="Technology">
				<itunes:category text="Tech News" />
			</itunes:category>
			<itunes:keywords></itunes:keywords>
			<itunes:author></itunes:author>
			<itunes:owner>
				<itunes:email>jamie@jamiekrug.com</itunes:email>
				<itunes:name></itunes:name>
			</itunes:owner>
			<itunes:image href="" />
			<image>
				<url></url>
				<title>Jamie Krug&apos;s ColdFusion Blog</title>
				<link>http://jamiekrug.com/blog/index.cfm</link>
			</image>
			<itunes:explicit>no</itunes:explicit>
			
			
			
			
			
			<item>
				<title>Railo JARs on JBoss (or Tomcat) - Tips and Tricks</title>
				<link>http://jamiekrug.com/blog/index.cfm/2009/4/1/railo-jars-on-jboss-or-tomcat-tips-and-tricks</link>
				<description>
				
				As a follow up to a &lt;a href=&quot;http://jamiekrug.com/blog/index.cfm/2009/3/3/Railo-30-on-JBoss-AS-42-via-Apache-22-with-Root-Context-and-No-Proxy&quot; title=&quot;Railo 3.0 on JBoss AS 4.2 via Apache 2.2 with Root Context and No Proxy&quot;&gt;previous related post&lt;/a&gt;, I wanted to share a couple potentially helpful tricks that I&apos;ve since learned. Everything I document here has been tested with both Railo 3.0.2.004 (current stable) and Railo 3.1.0.012 (current beta), both of which can be &lt;a href=&quot;http://www.getrailo.org/index.cfm/download/&quot; title=&quot;Railo download page&quot;&gt;downloaded from here&lt;/a&gt;, on &lt;a href=&quot;http://www.jboss.org/jbossas/downloads/&quot; title=&quot;JBoss Application Server Downloads&quot;&gt;JBoss Application Server (AS) 4.2.3.GA&lt;/a&gt;.

The purpose (as I see it) of a Railo JARs installation is to provide an alternative to using a full-blown Railo WAR for each of your Railo CFML applications. This allows you to define your Railo CFML servlet &quot;globally&quot; in JBoss/Tomcat and then use virtual hosts for multiple CFML apps. Each CFML app is then leveraging the same Railo instance, one copy of the jars and one Railo server admin (but still multiple Web contexts with unique Railo Web Admin for each Web site/context).

Also keep in mind that JBoss AS leverages Tomcat as its Web server, so just about everything here should directly translate. Here are the locations of key configuration files and directories in both JBoss 4.2 and Apache Tomcat 6:

&lt;span style=&quot;color: gray; text-decoration: line-through;&quot;&gt;{JBOSS_HOME}/lib/&lt;/span&gt; {JBOSS_HOME}/server/default/lib/&lt;br /&gt;
or&lt;br /&gt;
{TOMCAT_HOME}/lib/

{JBOSS_HOME}/server/default/deploy/jboss-web.deployer/conf/web.xml&lt;br /&gt;
or&lt;br /&gt;
{TOMCAT_HOME}/conf/web.xml

{JBOSS_HOME}/server/default/deploy/jboss-web.deployer/server.xml&lt;br /&gt;
or&lt;br /&gt;
{TOMCAT_HOME}/conf/server.xml

&lt;h2&gt;Quick Review of Railo JARs Install on JBoss/Tomcat&lt;/h2&gt;

I will first give a very brief outline of the steps required to install Railo (jars) on JBoss/Tomcat here. There are, however, some potential problems with this configuration, which I&apos;ll outline below, with a solution/workaround for each.
				 [More]
				</description>
						
				
				<category>JBoss</category>				
				
				<category>CFML</category>				
				
				<category>Tomcat</category>				
				
				<category>Railo</category>				
				
				<pubDate>Wed, 01 Apr 2009 17:00:00 -0400</pubDate>
				<guid>http://jamiekrug.com/blog/index.cfm/2009/4/1/railo-jars-on-jboss-or-tomcat-tips-and-tricks</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>Railo 3.0 on JBoss AS 4.2 via Apache 2.2 with Root Context and No Proxy</title>
				<link>http://jamiekrug.com/blog/index.cfm/2009/3/3/Railo-30-on-JBoss-AS-42-via-Apache-22-with-Root-Context-and-No-Proxy</link>
				<description>
				
				So I wanted to take a good look at the &lt;a href=&quot;http://railo.ch/en/index.cfm&quot;&gt;Railo&lt;/a&gt; 3.0 CFML engine and see what all the buzz was about. I wanted to be sure I could replicate the same basic Apache virtual host configurations I&apos;ve been using with my ColdFusion 8 multi-server configuration. I also decided to try to get this all working with the JBoss Application Server. This entry summarizes the battle that was &lt;em&gt;eventually&lt;/em&gt; won...

&lt;h2&gt;Choosing An Application Server&lt;/h2&gt;

After a great deal of reading comparisons and opinions regarding &lt;a href=&quot;http://www.caucho.com/&quot; title=&quot;Caucho Resin&quot;&gt;Resin&lt;/a&gt;, &lt;a href=&quot;http://tomcat.apache.org/&quot; title=&quot;Apache Tomcat&quot;&gt;Tomcat&lt;/a&gt; and &lt;a href=&quot;http://www.jboss.org/jbossas&quot; title=&quot;JBoss Application Server&quot;&gt;JBoss Application Server&lt;/a&gt; (also with/without Apache), I decided I wanted to shoot for running the Railo CFML engine on the &lt;a href=&quot;http://www.jboss.org/jbossas&quot; title=&quot;JBoss Application Server&quot;&gt;JBoss Application Server&lt;/a&gt;. There was plenty of good press and lots of die hard proponents for each of these application server options, so I don&apos;t feel there&apos;s a wrong decision and recommend you decide for yourself. For me, I just liked the robustness of JBoss and the full-featured community edition (Resin, for example, only provides a lot of its full-featured options in the paid licenses).

&lt;h2&gt;Basic Railo Installation/Deployment (EAR/WAR)&lt;/h2&gt;

I&apos;ll leave out a lot of the lower level details of my installations, because there are plenty of &lt;a href=&quot;http://www.railo.ch/blog/index.cfm/2009/2/16/Railo-Installation-guides&quot; title=&quot;Railo Installation Guides&quot;&gt;Railo installation guides&lt;/a&gt; out there already (and probably growing). I must, however, mention that a lot of &lt;a href=&quot;http://www.garyrgilbert.com/blog/index.cfm/Railo&quot; title=&quot;Gary Gilbert technology blog Railo category&quot;&gt;Gary Gilbert&apos;s Railo posts&lt;/a&gt; were particularly useful in my learning experience.

Using the aforementioned guides I was able to get JBoss AS installed and then deployed Railo 3.0 as a WAR and then also tried the EAR deployment alternative. I was not able to deploy Railo 3.0.2.001 on JBoss AS 5.0.1.GA, but all deployments worked fine for me on JBoss AS 4.2.3.GA. I&apos;ve noticed other folks comment on being able to deploy Railo on JBoss 5 on Ubuntu 8.04, which is my development OS, but I was not successful. The errors I received appeared to be known JBoss 5 bugs, but who knows!

&lt;h3&gt;Adding Apache HTTPD to the Stack&lt;/h3&gt;

After getting Railo 3.0 running on JBoss 4.2, I then wanted to integrate Apache 2.2, which was relatively straightforward using the mod_jk module for Apache HTTPD (again, this stuff is already well documented). At this point, however, I could either have only one Railo Web root and/or needed to use specific context paths for each Web site/context (e.g., http://localost/app1-context, http://localhost/app2-context, etc.).

&lt;h2&gt;Railo on JBoss via Apache, &lt;em&gt;as I really wanted it to be&lt;/em&gt;&lt;/h2&gt;

I then wanted to be able to run multiple Apache virtual hosts as multiple Railo web contexts on the same instance of Railo, but without needing a unique context path for each and without needing to proxy from Apache. After hours of experimentation and searching for help, I just could not find a way to make this happen.

Just as I was about to give up, I was reassured that this could be done when I read a couple installation guides that used Tomcat virtual hosts and a Railo installation using the JARs download only (not an EAR or WAR deployment): &lt;a href=&quot;http://www.jamesconstable.co.uk/web-development/installing-railo-3-on-tomcat-6-via-apache-2-on-ubuntu-804/&quot; title=&quot;James Constable: Installing Railo 3 on Tomcat 6 via Apache 2 on Ubuntu 8.04&quot;&gt;this one by James Constable&lt;/a&gt; and &lt;a href=&quot;http://www.garyrgilbert.com/blog/index.cfm/2009/2/20/Installing-Railo-3-on-SUSE-10-with-Apache2-and-Tomcat-Part-2&quot; title=&quot;Gary Gilbert: Installing Railo 3 on SUSE 10 with Apache 2 and Tomcat&quot;&gt;this one by Gary Gilbert&lt;/a&gt;.

These guys were doing exactly what I wanted to do, simply with Tomcat instead of JBoss, and since I knew JBoss AS uses Tomcat as its Web server, I knew there must be a way! I simply needed to identify the JBoss deployment directory in which to locate the Railo jars, and which web.xml and server.xml files to modify within the JBoss deployment directory structure. Here they are:

&lt;span style=&quot;color: gray; text-decoration: line-through;&quot;&gt;&lt;strong&gt;{JBOSS_HOME}/lib&lt;/strong&gt; -- Drop the Railo jar files in here.&lt;/span&gt;&lt;br /&gt;
&lt;strong&gt;{JBOSS_HOME}/server/default/lib&lt;/strong&gt; -- Drop the Railo jar files in here.

&lt;strong&gt;{JBOSS_HOME}/server/default/deploy/jboss-web.deployer/conf/web.xml&lt;/strong&gt; -- Define the Railo servlet, servlet mappings and welcome files in this file.

&lt;strong&gt;{JBOSS_HOME}/server/default/deploy/jboss-web.deployer/server.xml&lt;/strong&gt; -- Define Host entries for each application/virtual host in this file (to match up with Apache virtual hosts).

&lt;h2&gt;Next Steps&lt;/h2&gt;

I would like to learn a bit more about JBoss AS administration and be sure my environment is configured for high performance and sensible security. I&apos;ll also want to run JBoss as a daemon that starts automatically at boot. I&apos;m running Ubuntu 8.04 as my main development environment and I found what promises to be a &lt;a href=&quot;http://chiralsoftware.com/linux-system-administration/jboss-server-deployment.seam&quot; title=&quot;Installing JBoss Application Server on Ubuntu Linux&quot;&gt;fantastic article on a proper JBoss AS installation on Ubuntu&lt;/a&gt;!

I&apos;m also looking for some sort of confirmation that my basic method of configuring this Railo/JBoss/Apache stack makes sense, or whether there&apos;s a preferred alternative (using WAR, EAR, proxy, etc.). I hope to get a lot of answers in the near future since Railo just recently joined forces with JBoss (read the &lt;a href=&quot;http://railo.ch/en/index.cfm?treeID=357&quot; title=&quot;Railo joins JBoss&quot;&gt;Railo announcement here&lt;/a&gt; or the &lt;a href=&quot;http://www.jboss.org/railo/&quot; title=&quot;Railo comes to JBoss.org&quot;&gt;JBoss.org announcement here&lt;/a&gt;).
				
				</description>
						
				
				<category>JBoss</category>				
				
				<category>CFML</category>				
				
				<category>Ubuntu</category>				
				
				<category>Tomcat</category>				
				
				<category>Railo</category>				
				
				<pubDate>Tue, 03 Mar 2009 13:11:00 -0400</pubDate>
				<guid>http://jamiekrug.com/blog/index.cfm/2009/3/3/Railo-30-on-JBoss-AS-42-via-Apache-22-with-Root-Context-and-No-Proxy</guid>
				
			</item>
			
		 	
			</channel></rss>