<?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>Boyzoid&apos;s Blog &amp; Stuff - JRun Stuff</title>
			<link>http://www.boyzoid.com/blog/index.cfm</link>
			<description>The Ramblings of a ganius</description>
			<language>en-us</language>
			<pubDate>Tue, 07 Sep 2010 18:36:37 -0400</pubDate>
			<lastBuildDate>Fri, 15 Jun 2007 10:07:00 -0400</lastBuildDate>
			<generator>BlogCFC</generator>
			<docs>http://blogs.law.harvard.edu/tech/rss</docs>
			<managingEditor>scott@boyzoid.com</managingEditor>
			<webMaster>scott@boyzoid.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>scott@boyzoid.com</itunes:email>
				<itunes:name></itunes:name>
			</itunes:owner>
			
			<itunes:explicit>no</itunes:explicit>
			
			<item>
				<title>CF7, CF8, Jrun and the JVM</title>
				<link>http://www.boyzoid.com/blog/index.cfm/2007/6/15/CF7-CF8-Jrun-and-the-JVM</link>
				<description>
				
				&lt;p&gt;As I mentioned in &lt;a href=&quot;/blog/index.cfm/2007/6/13/Running-CF8--CF-7-on-JRun-with-Apache&quot;&gt;this&lt;/a&gt;
post, I described, briefly how my development environment is set up, and
how I installed ColdFusion 8 onto the same JRun server where I have
ColdFusion 7 installed.&#xa0; A reader inquired about the JVM and if there
are any conflicts.&#xa0; Well, the answer is no, there are not.&#xa0; Why?&#xa0; Well,
becasue when you deploy ColdFusion 8 as a .ear file onto a server
running ColdFusion 7, JRun will use the JRE specifeid in the &lt;font face=&quot;Courier New, Courier, mono&quot;&gt;java.home&lt;/font&gt;
variable in &lt;font face=&quot;Courier New, Courier, mono&quot;&gt;{jRun root}/bin/jvm.config&lt;/font&gt;, which in my case was 1.4.2_09.&lt;br/&gt;&lt;br/&gt;Now,
I have been running this configuration since the public beta and have
not run into any issues with performance, or even errors occurring when
running ColdFusion 8 code.&#xa0; However, I wanted to set-up my ColdFusion 8
to use the same JRE it would if I had done a different install (stand
alone, or multi-server).&#xa0; This was easy enough as you can create custom
&lt;font face=&quot;Courier New, Courier, mono&quot;&gt;jvm.config&lt;/font&gt; files and use them to run your JRun &apos;servers&apos;.&lt;/p&gt;


&lt;p&gt;Here&apos;s to do it. &lt;br/&gt;&lt;em&gt;&lt;strong&gt;Disclaimer: This is for Windows only.&#xa0; I assume the procedure would be similar in a different environment.&lt;/strong&gt;&lt;/em&gt;&lt;br/&gt;&lt;br/&gt;&lt;/p&gt;


&lt;ol&gt;
  &lt;li&gt;Download the latest &lt;a href=&quot;http://java.sun.com/javase/downloads/index.jsp&quot;&gt;Java SDK&lt;/a&gt; and install it. (You may be able to use the JRE alone, but I didn&apos;t test this)&lt;/li&gt;
  &lt;li&gt;Make
a copy of &lt;font face=&quot;Courier New, Courier, mono&quot;&gt;jvm.config&lt;/font&gt; (located in &lt;font face=&quot;Courier New, Courier, mono&quot;&gt;{JRun root}/bin&lt;/font&gt; } and name it
&lt;font face=&quot;Courier New, Courier, mono&quot;&gt;jvm_cf8.config&lt;/font&gt;. (You can name it whatever you would like, but the rest
of the instructions assume you use this name)&lt;/li&gt;
  &lt;li&gt;Change the &lt;font face=&quot;Courier New, Courier, mono&quot;&gt;java.home&lt;/font&gt; variable from &amp;quot;&lt;font face=&quot;Courier New, Courier, mono&quot;&gt;C:/JRun4/jre&lt;/font&gt;&amp;quot; (It may be different for you) to &lt;font face=&quot;Courier New, Courier, mono&quot;&gt;{new SDK Install path}/jre&lt;/font&gt; and save the file.&lt;/li&gt;
  &lt;li&gt;If its running, stop the ColdFusion 8 service.&lt;/li&gt;
  &lt;li&gt;Open a command window and &amp;quot;&lt;font face=&quot;Courier New, Courier, mono&quot;&gt;cd&lt;/font&gt;&amp;quot; to &lt;font face=&quot;Courier New, Courier, mono&quot;&gt;{JRun Root}/bin&lt;/font&gt;&lt;/li&gt;
  &lt;li&gt;Test
the new config by typing &lt;font face=&quot;Courier New, Courier, mono&quot;&gt;jrun -config jvm_cf8.config -start {the name
of your ColdFusion 8 server in Jrun}&lt;/font&gt;.&#xa0; If you don&apos;t get any errors, you
can now set up your Windows service to use this config file.&lt;/li&gt;
  &lt;li&gt;Pressing &lt;font face=&quot;Courier New, Courier, mono&quot;&gt;crtl+c&lt;/font&gt; should shut down the JRun server you just started.&lt;/li&gt;
  &lt;li&gt;Type the following to remove the windows service &lt;font face=&quot;Courier New, Courier, mono&quot;&gt;jrunsvc -remove {the name of your ColdFusion 8 server in JRun}&lt;/font&gt;&lt;/li&gt;
  &lt;li&gt;Now
you need to reinstall the Windows service and tell it to use the new
config &lt;font face=&quot;Courier New, Courier, mono&quot;&gt;jrunsvc -install {the name of your ColdFusion 8 server in JRun}
-config jvm_cf8.config&lt;/font&gt;.&lt;/li&gt;
  &lt;li&gt;You should now be able to start ColdFusion 8 from the Services MMC in Windows.&lt;/li&gt;
&lt;/ol&gt;


&lt;br/&gt;To verify you are using the updated JVM, log into the ColdFusion
Administrator for ColdFusion 8 and go to &apos;System Information&apos; (It&apos;s the
blue icon on the top right side of the page) and check the JRE and JVM
values. 
				</description>
				
				<category>ColdFusion Stuff</category>
				
				<category>JRun Stuff</category>
				
				<pubDate>Fri, 15 Jun 2007 10:07:00 -0400</pubDate>
				<guid>http://www.boyzoid.com/blog/index.cfm/2007/6/15/CF7-CF8-Jrun-and-the-JVM</guid>
				
				
			</item>
			
			<item>
				<title>Running CF8 &amp; CF 7 on JRun with Apache</title>
				<link>http://www.boyzoid.com/blog/index.cfm/2007/6/13/Running-CF8--CF-7-on-JRun-with-Apache</link>
				<description>
				
				&lt;p&gt;On my development machine, I run ColdFusion 7 in &apos;multi-server&apos; mode.&#xa0; This comes in handy if you need to create a separate instance of ColdFusion because of needs of a project or client.&#xa0; I also run Apache as my web server.&#xa0; While I am not a big fan of the &lt;font face=&quot;Courier New, Courier, mono&quot;&gt;httpd.conf&lt;/font&gt; file (mostly out of lack of familiarity), it makes it a lot easier to run multiple web sites on Windows XP. (Yes, I know there are tools that allow you to do this with IIS, but all the ones I have tried have been buggy and made messing with &lt;font face=&quot;Courier New, Courier, mono&quot;&gt;httpd.conf&lt;/font&gt; a pleasant experience). I also add sites to my HOSTS file and give them a &apos;domain&apos; of &apos;dev&apos; (boyzoid.dev, for example).&#xa0; This makes it easier for me to keep track of which environment I am in, and in a lot of cases, save some typing as I usually abbreviate the project (mic.dev, for example).&lt;/p&gt;

&lt;p&gt;Like most ColdFusion developers, I wanted to play with ColdFusion 8 when it went into public beta.&#xa0; I wanted to be able to use ColdFusion 8 and not have to deviate much from my development practices. I wound up installing ColdFusion 8 as a .ear file and deploying it to the same instance of JRun on which ColdFusion 7 is running.&#xa0; This way I could manage all my ColdFusion instances in one place.&#xa0; I ran into one small problem though, how do I get a site configured in Apache to use the ColdFusion 8 server rather than the ColdFusion 7 server? For those who may not know, when you are using IIS and multiserver install of ColdFusion, when you add news &apos;sites&apos; to IIS, you ccan specify what instance of ColdFusion to use for the site.&#xa0; The answer was surprisingly simple.&lt;/p&gt;

&lt;p&gt;First, keep in mind these instructions pick up &lt;em&gt;&lt;strong&gt;AFTER&lt;/strong&gt;&lt;/em&gt; ColdFusion 8 has been installed and deployed to your JRun server and the server is running.&#xa0; It also assumes that Apache has already been configured to work with ColdFusion&lt;br/&gt;&lt;br/&gt;1. Go into your JRun Admin and find the &apos;server&apos; you specified when you deployed ColdFusion 8, and click the link.&#xa0; In my case, its named &apos;cf8&apos;.&lt;br/&gt;&lt;img border=&quot;0&quot; height=&quot;310&quot; src=&quot;/images/JRun1.png&quot; width=&quot;333&quot;/&gt;&lt;/p&gt;


&lt;p&gt;2. In the resulting screen, click the &apos;Services&apos; link in the navigation bar.&lt;br/&gt;&lt;img border=&quot;0&quot; height=&quot;262&quot; src=&quot;/images/JRun2.png&quot; width=&quot;285&quot;/&gt;&lt;br/&gt;&lt;/p&gt;


&lt;p&gt;3. In the next screen, click the &apos;Start&apos;button next to the &apos;Proxy Service&apos;.&#xa0; Take note of the &apos;proxy port&apos;, we will need that in a bit.&lt;br/&gt;&lt;img border=&quot;0&quot; height=&quot;171&quot; src=&quot;/images/JRun3.png&quot; width=&quot;353&quot;/&gt;&lt;br/&gt;&lt;/p&gt;


&lt;p&gt;4. Create a directory, with whatever name you woud like) under &lt;font face=&quot;Courier New, Courier, mono&quot;&gt;{Jrun}/lib/wsconfig&lt;/font&gt; (In my case, I named it &apos;cf8&apos;...original, I know)&lt;/p&gt;


&lt;p&gt;5. Open up &lt;font face=&quot;Courier New, Courier, mono&quot;&gt;httpd.conf&lt;/font&gt; and create a &lt;font face=&quot;Courier New, Courier, mono&quot;&gt;&amp;lt;virtualHost&amp;gt;&lt;/font&gt; to use, or you can use an existing one.&lt;/p&gt;


&lt;p&gt;6. In &lt;font face=&quot;Courier New, Courier, mono&quot;&gt;httpd.conf&lt;/font&gt; and look for a block of code that looks like:&lt;br/&gt;&lt;br/&gt;&lt;font face=&quot;Courier New, Courier, mono&quot;&gt;# JRun Settings&lt;br/&gt;LoadModule jrun_module &amp;quot;C:/JRun4/lib/wsconfig/1/mod_jrun20.so&amp;quot;&lt;br/&gt;&amp;lt;IfModule mod_jrun20.c&amp;gt;&lt;br/&gt;&#xa0;&#xa0;&#xa0; JRunConfig Verbose false&lt;br/&gt;&#xa0;&#xa0;&#xa0; JRunConfig Apialloc false&lt;br/&gt;&#xa0;&#xa0;&#xa0; JRunConfig Ssl false&lt;br/&gt;&#xa0;&#xa0;&#xa0; JRunConfig Ignoresuffixmap false&lt;br/&gt;&#xa0;&#xa0;&#xa0; JRunConfig Serverstore &amp;quot;C:/JRun4/lib/wsconfig/1/jrunserver.store&amp;quot;&lt;br/&gt;&#xa0;&#xa0;&#xa0; JRunConfig Bootstrap 127.0.0.1:51020&lt;br/&gt;&#xa0;&#xa0;&#xa0; #JRunConfig Errorurl &amp;lt;optionally redirect to this URL on errors&amp;gt;&lt;br/&gt;&#xa0;&#xa0;&#xa0; #JRunConfig ProxyRetryInterval 600&lt;br/&gt;&#xa0;&#xa0;&#xa0; #JRunConfig ConnectTimeout 15&lt;br/&gt;&#xa0;&#xa0;&#xa0; #JRunConfig RecvTimeout 300&lt;br/&gt;&#xa0;&#xa0;&#xa0; #JRunConfig SendTimeout 15&lt;br/&gt;&#xa0;&#xa0;&#xa0; AddHandler jrun-handler .jsp .jws .cfm .cfml .cfc .cfr .cfswf&lt;br/&gt;&amp;lt;/IfModule&amp;gt;&lt;/font&gt;&lt;br/&gt;&lt;br/&gt;This information is what Apache uses to pass off requests to ColdFusion.&lt;br/&gt;&lt;br/&gt;7.&#xa0; Copy the following lines:&lt;br/&gt;&lt;br/&gt;&lt;font face=&quot;Courier New, Courier, mono&quot;&gt;JRunConfig Apialloc false&lt;br/&gt;JRunConfig Serverstore &amp;quot;C:/JRun4/lib/wsconfig/1/jrunserver.store&amp;quot;&lt;br/&gt;JRunConfig Bootstrap 127.0.0.1:51020&lt;/font&gt;&lt;br/&gt;&lt;br/&gt;8. Paste the above lines &lt;em&gt;inside&lt;/em&gt; the &lt;font face=&quot;Courier New, Courier, mono&quot;&gt;&amp;lt;virtualHost&amp;gt;&lt;/font&gt; block you created, or chose, in step 6.&lt;/p&gt;


&lt;p&gt;9. In the line: &lt;font face=&quot;Courier New, Courier, mono&quot;&gt;JRunConfig Serverstore &amp;quot;C:/JRun4/lib/wsconfig/1/jrunserver.store&amp;quot;&lt;/font&gt;, change the path so it matches the path of the directory you created in step 4.&#xa0; Make sure you keep the &apos;&lt;font face=&quot;Courier New, Courier, mono&quot;&gt;/jrunserver.store&lt;/font&gt;&apos; on the end.&#xa0; Don;t worry about the file not being there, it will get added auto-magiaclly.&lt;/p&gt;


&lt;p&gt;10. In the line &lt;font face=&quot;Courier New, Courier, mono&quot;&gt;JRunConfig Bootstrap 127.0.0.1:51020&lt;/font&gt;, replace the port number (the number after the colon) with the &apos;proxy port&apos; number we noted in step 3.&lt;/p&gt;


&lt;p&gt;11. Restart Apache.&lt;/p&gt;

&lt;p&gt;The &lt;font face=&quot;Courier New, Courier, mono&quot;&gt;&amp;lt;virtualHost&amp;gt;&lt;/font&gt; you created will now use ColdFusion 8 instead of the default server (which in my case was ColdFusion 7).&lt;/p&gt;

&lt;p&gt;How do we know its using ColdFusion 8? Easy, just create a test page with &lt;font face=&quot;Courier New, Courier, mono&quot;&gt;&amp;lt;cfdump var=&amp;quot;#server#&amp;quot; /&amp;gt;&lt;/font&gt;, you&apos;ll see a version number that begins with &apos;8&apos;.&lt;br/&gt;&lt;/p&gt;

&lt;p&gt;You can also use this method for pointing Apache to different instances of the same version of ColdFusion, since, as far as JRun cares, they are all just servers. &lt;br/&gt;&lt;/p&gt; 
				</description>
				
				<category>ColdFusion Stuff</category>
				
				<category>JRun Stuff</category>
				
				<pubDate>Wed, 13 Jun 2007 18:38:00 -0400</pubDate>
				<guid>http://www.boyzoid.com/blog/index.cfm/2007/6/13/Running-CF8--CF-7-on-JRun-with-Apache</guid>
				
				
			</item>
			</channel></rss>