<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: ColdFusion on JBoss with Apache Proxy</title>
	<atom:link href="http://www.fusioncube.net/index.php/coldfusion-on-jboss-with-apache-proxy/feed" rel="self" type="application/rss+xml" />
	<link>http://www.fusioncube.net/index.php/coldfusion-on-jboss-with-apache-proxy</link>
	<description>The online journey of a technophile, by Steve Brownlee</description>
	<lastBuildDate>Mon, 30 Jan 2012 21:28:36 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: sanoop</title>
		<link>http://www.fusioncube.net/index.php/coldfusion-on-jboss-with-apache-proxy/comment-page-1#comment-40257</link>
		<dc:creator>sanoop</dc:creator>
		<pubDate>Tue, 02 Nov 2010 06:55:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.fusioncube.net/?p=111#comment-40257</guid>
		<description>Thanks a ton Steve! very informative article.

Hello Everyone,

I want to know how(if) I can configure Coldfuiosn9+JRun+IIS and Coldfusion9+Jboss+Apache combination on the same machine?

Thanks</description>
		<content:encoded><![CDATA[<p>Thanks a ton Steve! very informative article.</p>
<p>Hello Everyone,</p>
<p>I want to know how(if) I can configure Coldfuiosn9+JRun+IIS and Coldfusion9+Jboss+Apache combination on the same machine?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vladimir</title>
		<link>http://www.fusioncube.net/index.php/coldfusion-on-jboss-with-apache-proxy/comment-page-1#comment-35012</link>
		<dc:creator>Vladimir</dc:creator>
		<pubDate>Wed, 03 Feb 2010 02:03:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.fusioncube.net/?p=111#comment-35012</guid>
		<description>&lt;a href=&quot;http://hint100.livejournal.com/&quot; rel=&quot;nofollow&quot;&gt;? ????? ???-?? ????????, ?? ? ??? ???? ????? ??????? ????????&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p><a href="http://hint100.livejournal.com/" rel="nofollow">? ????? ???-?? ????????, ?? ? ??? ???? ????? ??????? ????????</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JBossman</title>
		<link>http://www.fusioncube.net/index.php/coldfusion-on-jboss-with-apache-proxy/comment-page-1#comment-34015</link>
		<dc:creator>JBossman</dc:creator>
		<pubDate>Fri, 05 Jun 2009 10:43:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.fusioncube.net/?p=111#comment-34015</guid>
		<description>Oops, my code didn&#039;t show up, view the source for that, sorry!</description>
		<content:encoded><![CDATA[<p>Oops, my code didn&#8217;t show up, view the source for that, sorry!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JBossman</title>
		<link>http://www.fusioncube.net/index.php/coldfusion-on-jboss-with-apache-proxy/comment-page-1#comment-34014</link>
		<dc:creator>JBossman</dc:creator>
		<pubDate>Fri, 05 Jun 2009 10:41:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.fusioncube.net/?p=111#comment-34014</guid>
		<description>I have an EAR file I am trying to deploy alongside various WAR deployments on JBoss 4.2.3

The individual standalone WAR deployments are all working fine and are just a copy of the same application that is contained inside the EAR but the EAR deployment and it&#039;s included WAR(s) does not work correctly.

I am receiving a blank white page in the browser when I visit the virtual host that the jboss-web.xml is configured to associate with this EAR. The other virtual hosts associated with the standalone WAR deployments all work fine and are configured the same way.

I get no errors on startup and JBoss reports that the site was started. I have a jboss-web.xml file in the WAR&#039;s WEB-INF that ties it into a virtual host definition from server.xml. This works on every other type of configuration except the EAR. I keep getting just a white page, as if JBoss can&#039;t connect the WAR in the EAR to the host or maybe the WAR isn&#039;t starting right or I have some config wrong here. I have tried this with mod_jk, ProxyPass and AJP forwarding / rewrite, all to no avail.

When I fire up JBoss it creates the flex and railo directories in webwar1.war/WEB-INF as well as a railo-server directory as railo.ear/lib/railo-server but still just serves me a blank white page.

Here is where I stand...

I have a set of shared Railo JAR files are located in /JBoss/server/default/deploy/jboss-web.deployer/railojars/lib (I have told jboss-service.xml to include this as a classpath, and removing these JAR files does not fix my problem)

My site1.WAR and site2.WAR files are in the deploy folder and each contain an index.cfm and a WEB-INF with web.xml and jboss-web.xml mapped to a virtual host. They each use this shared Railo JAR instance and run perfectly. The sites I&#039;ve configured in server.xml with a docPath and appPath to an outside folder use this shared JAR installation and run perfectly. Everything is good with this.

If I place a railo1.war, railo2.war, etc in the /JBoss/server/default/deploy folder (the full WAR with Railo lib folder) those sites use the Railo instance contained within the WAR. This is also great.

So, my only problem left is this:

under /JBoss/server/default/deploy I have created railo.ear

Inside railo.ear is: META-INF which contains application.xml with:




 Railo3
 Railo3
 
 
  webwar1.war
  /webwar1
 
 


It also contains webwar1.war which contains: index.cfm and WEB-INF

WEB-INF has has web.xml, lib and jboss-web.xml

jboss-web.xml looks like this:


    /
    foo3.com


From server.xml:


    www.foo3.com


foo3.com is using jk_mod (I&#039;ve tried ProxyPass and AJP with rewrite too) to send to JBoss via a virtual host from Apache. The other two sites (foo1.com, foo2.com) which are mapped to WAR deployments are configured the exact same way and work fine.

The WEB-INF includes the lib folder so I would expect this webwar1.WAR instance to use the Railo JAR files contained in that lib folder. The problem is that when I start JBoss, all of my other sites configured their various ways work, but the site in webwar1.war is not coming up. I simply see a white page in the browser.

So, either the jboss-web.xml in WEB-INF in the webwar1.war file is not being connected to the defined in server.xml or something else is going wrong here. My other standalone WAR installations and the shared JARs sites all see their respective descriptors as marked in their jboss-web.xml and have the same content as this deployment.

So, I&#039;m just trying to figure out what I need to do to get this last EAR configuration to work.

The way I am trying now seems like each WAR would try to use the JAR files it contains, but I want to have one set of shared JAR files for the whole EAR and then each WAR file in the ear use those JARS.

I want to be able to have webwar1.war, webwar2.war, etc under this one EAR configuration so I have moved the lib folder out of webwar1.war/WEB-INF/lib and into railo.ear/lib

I would love to set it up this way, but I can&#039;t even get one WAR with its own JAR files to load up right when inside the EAR. I have tried this new configuration and get the same blank white page in the browser.

Any ideas?

JBoss gives me no errors. Another odd thing is that I don&#039;t get an error from Apache like I do when I try to visit a site that is improperly configured and did not start up. And if I visit a site that is not set up as a host in JBoss and I am redirected via jk_mod to JBoss, I see the JBoss default page. I am not seeing this default page when I visit the virtual host associated with this webwar1.war in the railo.ear, so JBoss must know that it&#039;s supposed to do something with the domain / virtual host or else it would show me that default JBoss page. Instead I see a blank white one.

I should also mention that this works on JBoss 5.1. The railo.ear configured the exact same way latches onto the virtual host and works properly.

Help? Thanks!!!!</description>
		<content:encoded><![CDATA[<p>I have an EAR file I am trying to deploy alongside various WAR deployments on JBoss 4.2.3</p>
<p>The individual standalone WAR deployments are all working fine and are just a copy of the same application that is contained inside the EAR but the EAR deployment and it&#8217;s included WAR(s) does not work correctly.</p>
<p>I am receiving a blank white page in the browser when I visit the virtual host that the jboss-web.xml is configured to associate with this EAR. The other virtual hosts associated with the standalone WAR deployments all work fine and are configured the same way.</p>
<p>I get no errors on startup and JBoss reports that the site was started. I have a jboss-web.xml file in the WAR&#8217;s WEB-INF that ties it into a virtual host definition from server.xml. This works on every other type of configuration except the EAR. I keep getting just a white page, as if JBoss can&#8217;t connect the WAR in the EAR to the host or maybe the WAR isn&#8217;t starting right or I have some config wrong here. I have tried this with mod_jk, ProxyPass and AJP forwarding / rewrite, all to no avail.</p>
<p>When I fire up JBoss it creates the flex and railo directories in webwar1.war/WEB-INF as well as a railo-server directory as railo.ear/lib/railo-server but still just serves me a blank white page.</p>
<p>Here is where I stand&#8230;</p>
<p>I have a set of shared Railo JAR files are located in /JBoss/server/default/deploy/jboss-web.deployer/railojars/lib (I have told jboss-service.xml to include this as a classpath, and removing these JAR files does not fix my problem)</p>
<p>My site1.WAR and site2.WAR files are in the deploy folder and each contain an index.cfm and a WEB-INF with web.xml and jboss-web.xml mapped to a virtual host. They each use this shared Railo JAR instance and run perfectly. The sites I&#8217;ve configured in server.xml with a docPath and appPath to an outside folder use this shared JAR installation and run perfectly. Everything is good with this.</p>
<p>If I place a railo1.war, railo2.war, etc in the /JBoss/server/default/deploy folder (the full WAR with Railo lib folder) those sites use the Railo instance contained within the WAR. This is also great.</p>
<p>So, my only problem left is this:</p>
<p>under /JBoss/server/default/deploy I have created railo.ear</p>
<p>Inside railo.ear is: META-INF which contains application.xml with:</p>
<p> Railo3<br />
 Railo3</p>
<p>  webwar1.war<br />
  /webwar1</p>
<p>It also contains webwar1.war which contains: index.cfm and WEB-INF</p>
<p>WEB-INF has has web.xml, lib and jboss-web.xml</p>
<p>jboss-web.xml looks like this:</p>
<p>    /<br />
    foo3.com</p>
<p>From server.xml:</p>
<p>    <a href="http://www.foo3.com" rel="nofollow">http://www.foo3.com</a></p>
<p>foo3.com is using jk_mod (I&#8217;ve tried ProxyPass and AJP with rewrite too) to send to JBoss via a virtual host from Apache. The other two sites (foo1.com, foo2.com) which are mapped to WAR deployments are configured the exact same way and work fine.</p>
<p>The WEB-INF includes the lib folder so I would expect this webwar1.WAR instance to use the Railo JAR files contained in that lib folder. The problem is that when I start JBoss, all of my other sites configured their various ways work, but the site in webwar1.war is not coming up. I simply see a white page in the browser.</p>
<p>So, either the jboss-web.xml in WEB-INF in the webwar1.war file is not being connected to the defined in server.xml or something else is going wrong here. My other standalone WAR installations and the shared JARs sites all see their respective descriptors as marked in their jboss-web.xml and have the same content as this deployment.</p>
<p>So, I&#8217;m just trying to figure out what I need to do to get this last EAR configuration to work.</p>
<p>The way I am trying now seems like each WAR would try to use the JAR files it contains, but I want to have one set of shared JAR files for the whole EAR and then each WAR file in the ear use those JARS.</p>
<p>I want to be able to have webwar1.war, webwar2.war, etc under this one EAR configuration so I have moved the lib folder out of webwar1.war/WEB-INF/lib and into railo.ear/lib</p>
<p>I would love to set it up this way, but I can&#8217;t even get one WAR with its own JAR files to load up right when inside the EAR. I have tried this new configuration and get the same blank white page in the browser.</p>
<p>Any ideas?</p>
<p>JBoss gives me no errors. Another odd thing is that I don&#8217;t get an error from Apache like I do when I try to visit a site that is improperly configured and did not start up. And if I visit a site that is not set up as a host in JBoss and I am redirected via jk_mod to JBoss, I see the JBoss default page. I am not seeing this default page when I visit the virtual host associated with this webwar1.war in the railo.ear, so JBoss must know that it&#8217;s supposed to do something with the domain / virtual host or else it would show me that default JBoss page. Instead I see a blank white one.</p>
<p>I should also mention that this works on JBoss 5.1. The railo.ear configured the exact same way latches onto the virtual host and works properly.</p>
<p>Help? Thanks!!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew Tillinghast</title>
		<link>http://www.fusioncube.net/index.php/coldfusion-on-jboss-with-apache-proxy/comment-page-1#comment-33937</link>
		<dc:creator>Andrew Tillinghast</dc:creator>
		<pubDate>Wed, 20 May 2009 18:28:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.fusioncube.net/?p=111#comment-33937</guid>
		<description>I think I have the solution people are looking for, I&#039;ve got my *.cfm files in my /htdocs folder and I&#039;ve got the coldfusion.ear installed on jboss 5.0. 

First I installed apache as normal, then jboss as normal. 
Next renamed the ROOT.war in jboss and installed CF8 as ear file per the adobe live docs with a context-root of /

Next I installed and configured mod_jk.so normally, standard worker file etc. for ease I named my worker localhost so I didn&#039;t need to edit it in jboss.

Now the trick, in my mod_jk.conf file I added 
JkMount /*.cfm localhost 
JkMount /*.cfc localhost 
JkMount /*.cfml localhost 

This passes my Coldfusion templates into jboss/cf8 but you&#039;ll get 404 errors from coldfusion because it&#039;s referencing / based on it&#039;s content root. Easy fix in linux :)

In my $JBOSS_HOME/server/default/deploy/cfusion.ear/cfusion.war/ directory I simply used ln -s /htdocs/Application.cfm Application.cfm etc for my root templates and then ln -s /htdocs/mail mail etc for all my folders that contained CFM templates.

That&#039;s it, now my implementation is still what the dev team is used to, all templates and pages in /htdocs and apache still serves out everything not coldfusion html, php, cgi, etc 
 
Ripped my hair out figuring it out and searching the web, but all said and done a lot simpler then I thought it was.</description>
		<content:encoded><![CDATA[<p>I think I have the solution people are looking for, I&#8217;ve got my *.cfm files in my /htdocs folder and I&#8217;ve got the coldfusion.ear installed on jboss 5.0. </p>
<p>First I installed apache as normal, then jboss as normal.<br />
Next renamed the ROOT.war in jboss and installed CF8 as ear file per the adobe live docs with a context-root of /</p>
<p>Next I installed and configured mod_jk.so normally, standard worker file etc. for ease I named my worker localhost so I didn&#8217;t need to edit it in jboss.</p>
<p>Now the trick, in my mod_jk.conf file I added<br />
JkMount /*.cfm localhost<br />
JkMount /*.cfc localhost<br />
JkMount /*.cfml localhost </p>
<p>This passes my Coldfusion templates into jboss/cf8 but you&#8217;ll get 404 errors from coldfusion because it&#8217;s referencing / based on it&#8217;s content root. Easy fix in linux :)</p>
<p>In my $JBOSS_HOME/server/default/deploy/cfusion.ear/cfusion.war/ directory I simply used ln -s /htdocs/Application.cfm Application.cfm etc for my root templates and then ln -s /htdocs/mail mail etc for all my folders that contained CFM templates.</p>
<p>That&#8217;s it, now my implementation is still what the dev team is used to, all templates and pages in /htdocs and apache still serves out everything not coldfusion html, php, cgi, etc </p>
<p>Ripped my hair out figuring it out and searching the web, but all said and done a lot simpler then I thought it was.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Syed</title>
		<link>http://www.fusioncube.net/index.php/coldfusion-on-jboss-with-apache-proxy/comment-page-1#comment-33755</link>
		<dc:creator>Syed</dc:creator>
		<pubDate>Mon, 20 Apr 2009 18:34:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.fusioncube.net/?p=111#comment-33755</guid>
		<description>Dear Stave,

Mentioned stuff very useful am very thankful to you.
Am not able see parsed jsp with the above configuration.
Am getting the code instead of html content.
Kindly help me in this matter am stuck in server migration work.
OS : CentOS5
WS : Apache2.2.11
AS : Jboss4.2.x
Thanks and Regards,
Syed</description>
		<content:encoded><![CDATA[<p>Dear Stave,</p>
<p>Mentioned stuff very useful am very thankful to you.<br />
Am not able see parsed jsp with the above configuration.<br />
Am getting the code instead of html content.<br />
Kindly help me in this matter am stuck in server migration work.<br />
OS : CentOS5<br />
WS : Apache2.2.11<br />
AS : Jboss4.2.x<br />
Thanks and Regards,<br />
Syed</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://www.fusioncube.net/index.php/coldfusion-on-jboss-with-apache-proxy/comment-page-1#comment-33490</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Wed, 18 Mar 2009 00:59:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.fusioncube.net/?p=111#comment-33490</guid>
		<description>I&#039;ve made some progress.  I can browse to http://:8080, https://:8443 and I&#039;ve setup apache to proxy to JBoss on port 8080 and 8443 verifying the connection using Tomcat status - http://IP and https:// works fine.  As soon as I deploy CF8 WAR file  I hit problems - https:// returns &#039;Bad Gateway The proxy server received an invalid response from an upstream server&#039; but http:// works fine???? IF I remove cf8 war, everything seems to work fine again. Any idea what would cause https to fail?</description>
		<content:encoded><![CDATA[<p>I&#8217;ve made some progress.  I can browse to <a href="http://:8080" rel="nofollow">http://:8080</a>, <a href="https://:8443" rel="nofollow">https://:8443</a> and I&#8217;ve setup apache to proxy to JBoss on port 8080 and 8443 verifying the connection using Tomcat status &#8211; <a href="http://IP" rel="nofollow">http://IP</a> and https:// works fine.  As soon as I deploy CF8 WAR file  I hit problems &#8211; https:// returns &#8216;Bad Gateway The proxy server received an invalid response from an upstream server&#8217; but http:// works fine???? IF I remove cf8 war, everything seems to work fine again. Any idea what would cause https to fail?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://www.fusioncube.net/index.php/coldfusion-on-jboss-with-apache-proxy/comment-page-1#comment-33486</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Tue, 17 Mar 2009 23:27:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.fusioncube.net/?p=111#comment-33486</guid>
		<description>Before I start - excellent site!

I&#039;m trying to migrate my site from Apache/JRun/CF/Windows to Apache/JBoss/CF/Linux using this guide/site as a source of information.  The only issue I&#039;m having at the moment is detecting HTTPS using the CGI scope variable in CF8.  I can browse to ports 8080 and 8443 and check the Tomcat Status (all ok).  How do I go about setting up Apache 2.2.3 to connect using mod_proxy over SSL? I&#039;m using JBoss 4.2.3</description>
		<content:encoded><![CDATA[<p>Before I start &#8211; excellent site!</p>
<p>I&#8217;m trying to migrate my site from Apache/JRun/CF/Windows to Apache/JBoss/CF/Linux using this guide/site as a source of information.  The only issue I&#8217;m having at the moment is detecting HTTPS using the CGI scope variable in CF8.  I can browse to ports 8080 and 8443 and check the Tomcat Status (all ok).  How do I go about setting up Apache 2.2.3 to connect using mod_proxy over SSL? I&#8217;m using JBoss 4.2.3</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Kagan</title>
		<link>http://www.fusioncube.net/index.php/coldfusion-on-jboss-with-apache-proxy/comment-page-1#comment-25525</link>
		<dc:creator>Paul Kagan</dc:creator>
		<pubDate>Mon, 14 Jan 2008 19:03:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.fusioncube.net/?p=111#comment-25525</guid>
		<description>Hi,

Great guide!  

We are trying to move from Apache/CF7/JRun to Apache/CF8/JBoss.  With jrun, we had a connector module for Apache (mod_jrun20.so, much like Mod_jk to connect Apache to tomcat).  All the web content lives in the Apache doc tree.  An instance of Apache lives at cfpro. and its htdocs holds a directory for each CF app.  In both Tomcat and JRun environments, we have Apache handle SSL.

If we use ProxyPass, will Apache still hold the cfm content as a doc tree, or does that all move to the cfusion8 server under JBoss?  Does there need to be a connector for apache other than the mod_proxy, mod_proxy_ajp and mod_proxy_http?  How are those modules configured (used to be wsconfigx directories when running CF under JRun?

Thanks in advance.

Paul</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Great guide!  </p>
<p>We are trying to move from Apache/CF7/JRun to Apache/CF8/JBoss.  With jrun, we had a connector module for Apache (mod_jrun20.so, much like Mod_jk to connect Apache to tomcat).  All the web content lives in the Apache doc tree.  An instance of Apache lives at cfpro. and its htdocs holds a directory for each CF app.  In both Tomcat and JRun environments, we have Apache handle SSL.</p>
<p>If we use ProxyPass, will Apache still hold the cfm content as a doc tree, or does that all move to the cfusion8 server under JBoss?  Does there need to be a connector for apache other than the mod_proxy, mod_proxy_ajp and mod_proxy_http?  How are those modules configured (used to be wsconfigx directories when running CF under JRun?</p>
<p>Thanks in advance.</p>
<p>Paul</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bala</title>
		<link>http://www.fusioncube.net/index.php/coldfusion-on-jboss-with-apache-proxy/comment-page-1#comment-24988</link>
		<dc:creator>Bala</dc:creator>
		<pubDate>Mon, 24 Dec 2007 13:40:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.fusioncube.net/?p=111#comment-24988</guid>
		<description>i am creating virtual hosts for my application i have one doubt [whether it is possible to create virtual host with out having a proxy of Apache]... pls guide me

Thanks in advance</description>
		<content:encoded><![CDATA[<p>i am creating virtual hosts for my application i have one doubt [whether it is possible to create virtual host with out having a proxy of Apache]&#8230; pls guide me</p>
<p>Thanks in advance</p>
]]></content:encoded>
	</item>
</channel>
</rss>

