<?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>Ian Winter &#187; jrun</title>
	<atom:link href="http://ianwinter.co.uk/tag/jrun/feed/" rel="self" type="application/rss+xml" />
	<link>http://ianwinter.co.uk</link>
	<description>Have you found the instructions yet?</description>
	<lastBuildDate>Wed, 14 Sep 2011 22:16:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>CF8 JRun init script error</title>
		<link>http://ianwinter.co.uk/2008/07/21/cf8-jrun-init-script-error/</link>
		<comments>http://ianwinter.co.uk/2008/07/21/cf8-jrun-init-script-error/#comments</comments>
		<pubDate>Mon, 21 Jul 2008 11:55:00 +0000</pubDate>
		<dc:creator>Ian</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[coldfusion]]></category>
		<category><![CDATA[jrun]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Setting up a staging server environment which will run 3 instances of CF and looking to alter the init scripts so it fires them all up on boot. Took a look at the one the installer creates and thought simple enough to just put multiple calls in for each server instance. Oh no. On our [...]]]></description>
			<content:encoded><![CDATA[<p>Setting up a staging server environment which will run 3 instances of CF and looking to alter the init scripts so it fires them all up on boot. Took a look at the one the installer creates and thought simple enough to just put multiple calls in for each server instance. Oh no.</p>
<p>On our RHES4 platform we have CF starting up as the apache user, but, running the script causes a &#8220;This account is currently not available.&#8221; error to be thrown because it has no shell and it&#8217;s locked. After looking at another server running a server install I notice the issue is down to the su command issued.</p>
<p>JRun</p>
<p><code>su $RUNTIME_USER -c "$CF_DIR/bin/jrun -stop cfusion"<br />
su $RUNTIME_USER -c "$CF_DIR/bin/jrun -start cfusion &gt;&amp; $CF_DIR/logs/cfusion-event.log &amp;"</code></p>
<p>Server Install</p>
<p><code>su -s /bin/sh $RUNTIME_USER -c "export PATH=$PATH:$CF_DIR/runtime/bin;<br />
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH;<br />
cd $CF_DIR/runtime/bin; nohup $CF_DIR/runtime/bin/cfmx7 -jar jrun.jar -autorestart -start coldfusion &amp;"</code></p>
<p>Key difference is the &#8220;-s /bin/sh&#8221; part. Altering my script to the following makes it work. Yay. Not sure if this a known bug of something funky in our setup, but, as it&#8217;s a vanilla OS install I don&#8217;t see what it could be.</p>
<p><code>su -s /bin/sh $RUNTIME_USER -c "$CF_DIR/bin/jrun -stop cfusion"<br />
su -s /bin/sh $RUNTIME_USER -c "$CF_DIR/bin/jrun -start cfusion &gt;&amp; $CF_DIR/logs/cfusion-event.log &amp;"</code></p>
]]></content:encoded>
			<wfw:commentRss>http://ianwinter.co.uk/2008/07/21/cf8-jrun-init-script-error/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Deploying CF7 on JRun with CF8 on Leopard, Single IP Error</title>
		<link>http://ianwinter.co.uk/2007/11/10/deploying-cf7-on-jrun-with-cf8-on-leopard-single-ip-error/</link>
		<comments>http://ianwinter.co.uk/2007/11/10/deploying-cf7-on-jrun-with-cf8-on-leopard-single-ip-error/#comments</comments>
		<pubDate>Sat, 10 Nov 2007 14:23:00 +0000</pubDate>
		<dc:creator>Ian</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[coldfusion]]></category>
		<category><![CDATA[jrun]]></category>
		<category><![CDATA[leopard]]></category>
		<category><![CDATA[mac]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Having got ColdFusion 8 running in multi-server mode on Leopard I decided to try and deploy CF7 to it as well. Started out going well, following the same process I&#8217;ve always used. I created a new server, removed the default-ear, started the proxy service and stopped the web service then dropped in the cf7 ear [...]]]></description>
			<content:encoded><![CDATA[<p>Having got ColdFusion 8 running in multi-server  mode on Leopard I decided to try and deploy CF7 to it as well. Started out going well, following the same process I&#8217;ve always used. I created a new server, removed the default-ear, started the proxy service and stopped the web service then dropped in the cf7 ear file. Setup all the apache2 config and restarted that OK. For reference I&#8217;ve got a jrun.conf with the module in then a cf702.conf included by default with the jrun.conf in httpd.conf then a cf8.conf I include in vhosts as needed. The server started OK but when I tried browsing the cf7.local vhost I created I was shown the message:</p>
<p><code>500<br />
java.lang.NullPointerException<br />
	at coldfusion.license.LicenseManager._isSingleIP(LicenseManager.java:171)<br />
	at coldfusion.license.LicenseManager.isSingleIP(LicenseManager.java:68)<br />
	at coldfusion.CfmServlet.getFilterChain(CfmServlet.java:66)<br />
	at coldfusion.CfmServlet.service(CfmServlet.java:103)<br />
	at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:78)<br />
	at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)<br />
	at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)<br />
	at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:284)<br />
	at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)<br />
	at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203)<br />
	at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)<br />
	at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)</code></p>
<p>Interesting as it&#8217;s the same box, both configured on 127.0.0.1. A reload didn&#8217;t cure it, so off to google. I found a couple of posts relating to flash remoting. The first one was over on &lt;a href=&#8221;http://www.talkingtree.com/blog/index.cfm/2004/9/15/flashgateway&#8221;&gt;Steven Erat&#8217;s&lt;/a&gt; blog from way back in 2004 related to something with flash remoting. I found a few other posts saying I&#8217;d need to remove the flash remoting ear file, which, I didn&#8217;t have showing in the JMC. </p>
<p>I decided to take a look in the JRun4 directory to see what flash related files there were:</p>
<p><code>macmini:JRun4 ianwinter$ find . -name "*flash*"<br />
./docs/jmchelp/gs-flash-jrun.htm<br />
./servers/cf702/SERVER-INF/temp/cfusion.war-1439562941/CFIDE/administrator/images/flashmenu.swf<br />
./servers/cf702/SERVER-INF/temp/cfusion.war-1439562941/WEB-INF/cfform/flash-unicode-table.xml<br />
./servers/cf702/SERVER-INF/temp/cfusion.war-1439562941/WEB-INF/cfusion/lib/flashgateway.jar<br />
./servers/cf702/SERVER-INF/temp/cfusion.war-1439562941/WEB-INF/cfusion/lib/flashremoting_update.jar<br />
./servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfform/flash-unicode-table.xml<br />
./servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/flashgateway.jar<br />
./servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/preso/loadflash.js<br />
./servers/samples/flashsamples-ear<br />
./servers/samples/flashsamples-ear/ejbs/flashgateway<br />
./servers/samples/SERVER-INF/classes/flashgateway</code></p>
<p>Some of these obviously can stay but as I don&#8217;t use flash remoting I decided to remove the flashgateway.jar and flashremoting-update.jar files. I backed up the servers directory as well first and have at this point stopped the servers.</p>
<p><code>macmini:JRun4 ianwinter$ sudo rm<br />
./servers/cf702/SERVER-INF/temp/cfusion.war-1439562941/WEB-INF/cfusion/lib/flashgateway.jar<br />
./servers/cf702/SERVER-INF/temp/cfusion.war-1439562941/WEB-INF/cfusion/lib/flashremoting_update.jar<br />
./servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/flashgateway.jar</code></p>
<p>Restart all the JRun servers and browse back to cf7.local and voila it works. Bit of a faf and no good if you want flash remoting but it works. I don&#8217;t know if you remove just one of the flash remoting jar&#8217;s, like just from the cf7 server if it&#8217;d work, or, perhaps you can change mappings somewhere, solves my problem so I&#8217;m happy.</p>
]]></content:encoded>
			<wfw:commentRss>http://ianwinter.co.uk/2007/11/10/deploying-cf7-on-jrun-with-cf8-on-leopard-single-ip-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

