31 October 2006 19:21
If you’re running Apache 1.3.x and Coldfusion 7 you might have had errors when starting apache about needing to compile it using DEAPI.
[warn] Loaded DSO /opt/coldfusionmx/runtime/lib/wsconfig/1/mod_jrun.so uses
plain Apache 1.3 API, this module might crash under EAPI!
(please recompile it with -DEAPI).
The original Adobe technote 18748 worked with CF6 as I’ve followed it before, but, with CF7 once compile and you try and start apache you get a crazy hex error, like this:
Cannot load /opt/coldfusionmx7/runtime/servers/lib/wsconfig/1/mod_jrun.so into
server: /opt/coldfusionmx7/runtime/servers/lib/wsconfig/1/mod_jrun.so: undefined symbol: hexstrtol
A quick google found this site with a script on how to do it. Now one note on the guide is he’s building a mod_jrun20.so file for apache 2, quick vi to change them all to mod_jrun.so and you’re all good.
So, big thanks to that guy for posting his script. Mine is included below for reference.
#!/bin/bash
export CFMX=/opt/coldfusionmx7
export APACHE_PATH=/usr/local/apache
export APACHE_BIN=$APACHE_PATH/bin
#CFMX connector path eg $CFMX/runtime/lib/wsconfig/1
export CFMX_CONNECTOR=$CFMX/lib/wsconfig/1
#stop apache
$APACHE_BIN/apachectl stop
${APACHE_BIN}/apxs -c -Wc,-w -n jrun -S LIBEXECDIR=${CFMX_CONNECTOR} mod_jrun.c
jrun_maptable_impl.c jrun_property.c jrun_session.c platform.c
jrun_utils.c jrun_mutex.c jrun_proxy.c jrun_ssl.c
${APACHE_BIN}/apxs -i -n jrun -S LIBEXECDIR=${CFMX_CONNECTOR} mod_jrun.la
strip $CFMX_CONNECTOR/mod_jrun.so
Mine did error saying:
apxs:Error: file mod_jrun.la is not a DSO
but it all works.
Filed: Technology // Tagged: adobe, coldfusion, connector, linux //
27 October 2006 17:01
Want to control your iTunes via mappable keyboard shortcuts? Check out iTunesKeys over at mattberube.com.
Very handy.
Filed: Entertainment // Tagged: music, software //
27 October 2006 11:16
Old news, but, all about this website… www.ie7.com
Filed: General //
26 October 2006 10:53
An annoying bug has come up post Firefox 2.0 release to do with prototype and object.extent.
A full text case can be found on the Ruby on Rails site. The bug is listed in bugzilla as well. Go vote for bug 357947 to get this sorted.
Filed: Technology // Tagged: code, javascript //
26 October 2006 9:44
Found a new bug today in Coldfusion 7. Basically if you create structure via arguments and try to use it later you’ll notice some funky behaviour and the meta information about the structure is incorrect. Code test case is included.
<cfscript>
function struct() { return arguments; }
</cfscript>
<cfset s = struct(arg1=“blahblah”, arg2=“cont”, arg3=“act”)>
<cfoutput>
<h3>#s.getClass()#</h3>
length: #structcount(s)# (#structkeylist(s)#)<br>
<cfset structdelete(s, ‘arg1′)>
length: #structcount(s)# (#structkeylist(s)#)<br>
<cfset structdelete(s, ‘arg2′)>
length: #structcount(s)# (#structkeylist(s)#) </cfoutput>
<cfset s = structnew()>
<cfset s['arg1'] = “blahblah”>
<cfset s['arg2'] = “cont”>
<cfset s['arg3'] = “act”>
<cfoutput>
<h3>#s.getClass()#</h3>
length: #structcount(s)# (#structkeylist(s)#)<br>
<cfset structdelete(s, ‘arg1′)>
length: #structcount(s)# (#structkeylist(s)#)<br>
<cfset structdelete(s, ‘arg2′)>
length: #structcount(s)# (#structkeylist(s)#) </cfoutput>
Filed: Technology // Tagged: adobe, bugs, coldfusion //
25 October 2006 11:14
Came across this the other day on a new server I was building.
$ ./coldfusion-702-lin.bin
Preparing to install…
Extracting the JRE from the installer archive…
Unpacking the JRE…
Extracting the installation resources from the installer archive…
Configuring the installer for this system’s environment…
Launching installer…
./coldfusion-702-lin.bin: line 2317: /tmp/install.dir.31481/Linux/resource/jre/bin/java: Permission denied
./coldfusion-702-lin.bin: line 2317: /tmp/install.dir.31481/Linux/resource/jre/bin/java: Success
The workaround is set the IATEMPDIR variable
mkdir /opt/IATEMPDIR
export IATEMPDIR=/opt/IATEMPDIR
Taken from LiveDocs
Filed: Technology // Tagged: coldfusion, linux //
16 October 2006 11:09
Want a job? Know Coldfusion, PHP, HTML? If you do Rawnet is looking for a Web Developer.
Filed: Work //
4 October 2006 21:06
Shameless pluging for a site I designed, but hey, what else is the www for ?!?
Check out Last Night a 5 piece rock/pop band hailing from Thunder Bay, Ontario, Canada. Strongly recommend “That Guy”. Enjoy.
Needless to say if any record big cheese’ want to offer them a deal, remember where you saw ‘em first
Filed: Entertainment // Tagged: music //