FC7 + CFMX 8 + Tomcat + 64-bit jvm 1.6 = Sweetness

code-complete

Wednesday, August 15. 2007

FC7 + CFMX 8 + Tomcat + 64-bit jvm 1.6 = Sweetness

Today (well, and yesterday) was primarily spent getting cfmx 8 installed on a 64-bit Fedora 7 box. That normally should take about 10 minutes, but I didn't want the default install. I wanted (as I have for some time) a native 64-bit instance of Coldfusion. And now I have one.



Here is what I needed to do to get this installed, hopefully it can save you some time if you are trying to do the same. The process will be similar on other 64-bit distros, and there are some gotchas for sure.

With this machine, my preference is to install everything I possibly can via yum rather than download and compile source just to make application management easier. So here's a list of the RPMs that were installed in support of the application (not all are needed):

APR-1.2.8-7x86_64
APR-devel-1.2.8-7x86_64
APR-util-1.2.8-7x86_64
APR-util-devel-1.2.8-7x86_64
openssl-0.98b-12.fc7.x86_64
openssl-devel-0.98b-12.fc7.x86_64
http-2.2.4-1.fc7.x86_64
http-devel-2.2.4-1.fc7.x86_64
jakarta-commons-logging-1.0.4-6jpp.1.x86_64
mod_ssl-1:2.2.4-1.fc7.x86_64
tomcat5-5.5.23-9jpp.2.fc7.x86_64
tomcat5-jsp-2.0-api-5.5.23-9jpp.2.fc7.x86_64
tomcat5-servlet-2.4-api-5.5.23-9jpp.2.fc7.x86_64
and finally:
jdk-6u2-linux-amd64 (from Sun)

The default JDK installed with the OS was the 32-bit 1.5 version and in fedora there are Sym links under /var/lib/alternatives - you will need to update these sym links to point to the 64-bit java components if you plan on using the default JAVA_HOME variable (/usr/lib/jvm/java) within the tomcat5.conf file. Alternately, you can add the following lines into /etc/tomcat5/tomcat5.conf AND /etc/sysconfig/tomcat5:

JAVA_HOME="/usr/java/jdk1.6.0_02"
JRE_HOME="/usr/java/jdk1.6.0_02/jre"


Now fire up tomcat using /etc/init.d/tomcat5 start and take a look at the catalina.out log under /usr/share/tomcat/logs/ and check the library path and/or the JRE_HOME being reported to ensure it's using the 64-bit jvm.

Next run the Coldfusion-8-lin.bin installer and select the option for j2ee deploy as WAR and run the install. This will create a cfusion.war and an rds.war package uner /opt/coldfusion8/. Now move the cfusion.war file to tomcat's webapps directory (/usr/share/tomcat5/webapps) and then copy the rds.war to the webapps directory and rename it CFIDE.war.

Tomcat should automatically deploy the cfusion.war file into a cfusion directory. You need to go into cfusion/WEB-INF/cfusion/lib and rename the tools.jar to something else. At this point, tomcat may crash or hang. You should stop it: /etc/init.d/tomcat5 stop. You might still be looking at the catalina.out file if you were using tail -f and you might notice the following line:

Error [ContainerBackgroundProcessor[StandardEngine[Catalina]] - Unable to initialize Security service: coldfusion.runtime.Encryptor$invalidParametersForEncryptionException: An error occurred while trying to encrypt or decrypt you input striong: 5 trailing bytes.


So now you will need the Java Cryptography Extension (JCE) Unlinmited Strength Juristiction Policy Files 6, available from http://java.sun.com/javase/downloads/index.jsp at the bottom of the page.

Backup and replace your US_export_policy.jar and local_policy.jar files from /usr/java/jdk1.6.0_02/jre/lib/security with the unlimited strength files.

Start tomcat: /etc/init.d/tomcat5 start
point your browser here: http://localhost:8080/cfusion/CFIDE/administrator
and hopefully you'll see this:


Next up: Getting the apache/tomcat connectors set up.
Posted by thaddeus in Coldfusion Server, Redhat Linux at 13:38 | Comments (4) | Trackbacks (0)

Trackbacks
Trackback specific URI for this entry

No Trackbacks

Comments
Display comments as (Linear | Threaded)

Out of curiosity, is there a reason to use Tomcat instead of JBoss in this scenario?
#1 Matthew Lesko on 2007-08-15 18:34 (Reply)
No - in fact I will be rolling cfmx under the 64-bit jboss server next. The only reason I chose tomcat is b/c it was packaged w/ the distro.
#1.1 thaddeus on 2007-08-15 18:42 (Reply)
What are the chances you run the VMWare converter tool, virtualize this machine, and share the VM instance? it looks like something I'd love to run in my ESX server.
#2 Rob Gonda (Homepage) on 2007-08-15 22:26 (Reply)
I totally would, but it looks like the VMWare converter will only convert Windows-based machines to virtual machines ;-(
#2.1 thaddeus on 2007-08-16 09:32 (Reply)

Add Comment

Enclosing asterisks marks text as bold (*word*), underscore are made via _word_.
Standard emoticons like :-) and ;-) are converted to images.

To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.
CAPTCHA

 
 

About Me

Thaddeus Wakefield Batt
Thaddeus Wakefield Batt

blogging from: denver, co.

blogging about: web technologies

Links

Tech Blogs
Fullasagoog - RIA
John Wilker
William .NET
Graphex

Links
SpireMedia, Inc.
The CMS Matrix




Lijit Search

Archives

  • September 2010
  • August 2010
  • July 2010
  • Recent...
  • Older...

Categories

  • XML .NET
  • XML Apollo
  • XML Coldfusion Programming
  • XML Coldfusion Server
  • XML Flex
  • XML Information Architecture
  • XML Java
  • XML Livecycle
  • XML postgreSQL
  • XML Redhat Linux
  • XML Silverlight
  • XML SpireMedia
  • XML SQL Server 2k5
  • XML Tools of the Trade
  • XML Vista
  • XML Win2K3 Server
  • XML Windows Server 2008
  • XML Zimbra


All categories

Syndicate This Blog

  • XML RSS 0.91 feed
  • XML RSS 1.0 feed
  • XML RSS 2.0 feed
  • ATOM/XML ATOM 0.3 feed
  • ATOM/XML ATOM 1.0 feed
  • XML RSS 2.0 Comments

Blog Administration

Open login screen

Thaddeus Batt

Creative Commons License - Some Rights Reserved
Original content in this work is licensed under a Creative Commons License