Archive for April, 2008

Running Blue Dragon JE22 under JRun4

Monday, April 14th, 2008

The following instructions describe one way to run Blue Dragon under JRun4:

  1. Download the ZIP File version (labelled “Any”) J2EE version of Blue Dragon http://www.newatlanta.com/c/products/bluedragon/download/home.
  2. Unzip the file into any temporary directory.
  3. In the JRun4 administrator (http://localhost:8000/) create a new server called BlueDragon. (I use port 8400).
  4. Browse to the new server folder location (…./JRun4/servers/bluedragon) and delete the default.ear folder.
  5. Now copy the expand war file folder (something like BlueDragon_webapp_701_352) in your unzipped temporary directory under the …./JRun4/servers/bluedragon directory.
  6. Rename the new BlueDragon_webapp_701_352 to BlueDragon-war.
  7. In the JRun4 administrator, start the BlueDragon server and then view the BlueDragon-war settings page.
  8. Edit the Context Path from “/BlueDragon-war” to “/“.

The Blue Dragon test page should now be available at http://localhost:8400/

A few more steps are required is you want to use the XML CFML Tags and Functions. If you try running a page using XML features of CFML you will get an error message:

Unrecognized error code: The configured XML parser does not support JAXP 1.3. Please configure the JVM to use a JAXP 1.3 compliant XML parser. If using Sun Microsystems’ JDK 1.5, this can be done by setting the system property javax.xml.parsers.DocumentBuilderFactory to “com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl”.

The following steps will change the JVM’s default XML parser to the one required by Blue Dragon (Assuming you are using JVM 1.5+):

  1. In the JRun4 administrator, view the Java VM Settings page.
  2. Add the following to the VM Arguments:
  3. Restart the BlueDragon server.

Note: This will effect all JRun4 servers, as the JVM settings are shared. Anyone know how to do this on per server basis?


Running Railo under JRun4

Sunday, April 13th, 2008

The following instructions describe one way to run Railo under JRun4:

  1. Download the war File version (Under “Railo Custom”) version of Railo http://www.railo-technologies.com/en/index.cfm?treeID=224.
  2. Unzip the file into any temporary directory.
  3. In the JRun4 administrator (http://localhost:8000/) create a new server called Railo. (I use port 8200).
  4. Browse to the new server folder location (../JRun4/servers/railo) and delete the default.ear folder.
  5. Create a …./JRun4/servers/railo/railo-war directory.
  6. Change to that directory (cd …/JRun4/servers/railo/railo-war)
  7. Now expand the war file (something like railo-2.0.1.000.war) to the …./JRun4/servers/railo/railo-war directory using this command: jar -xvf …./railo-2.0.1.000.war
  8. In the JRun4 administrator, start the Railo server and then view the Railo-war settings page.
  9. Edit the Context Path from “/railo-war” to “/“.

The Railo test page should now be available at http://localhost:8200/


Odd Error using CFFLUSH

Saturday, April 12th, 2008

Thought I would blog about this, as it wasted almost 2 hours of my time trying to get to the bottom of it.

I was using CFFLUSH on a work project and ColdFusion was returning the following error message:

You have called cfflush in an invalid location, such as inside a cfquery or cfthread or between a CFML custom tag start and end tag.

What was confusing, was that there were no CFQUERY, CFTHREAD or Custom Tags in the code!

The problem turned out to be an output=”false” attribute on a component function, which called the function containing the CFFLUSH. This is obvious with hindsight, however the error message sent me on a wild goose chase :-)


Copyright © 2005, David Beale

  • Valid XHTML 1.0!
  • Valid CSS
  • Level Triple-A conformance icon, W3C-WAI Web Content Accessibility Guidelines 1.0