Skip to main content
Participating Frequently
November 18, 2009
Question

CF on JBoss

  • November 18, 2009
  • 1 reply
  • 1928 views

Currently we are running four separate instances of ColdFusion 8 Enterprise which are using the bundled JRun server attached to Apache2. I have them split up using virtual machines on ESXi.

We just purchased CF 9 which I will be setting up on a new server and then migrating our applications over, but I am wondering if I would be better off just avoiding ESXi and intead running these 4 separate CF instances on one install of JBoss. In the past I toyed around with running several instances of CF8 on Tomcat 6, which I had working (for the most part), except I never got the virtual domains working correctly and the proxy between apache<>tomcat didn't seem to be working properly.

I just chucked that previous attempt at Tomcat expecially since it isn't an officially supported platform by Adobe. Looking around online I can find very little information about running on a J2EE server... will Tomcat 6 work fine (since it is the core to Jboss)? Should I use JBoss or am I better off the way I am with separate instances of JRun on Virtual Machines?

Thanks for any input.

    This topic has been closed for replies.

    1 reply

    pdonlinAuthor
    Participating Frequently
    November 20, 2009

    I did get CF 8 and 9 up and running on JBoss 5.1 the same day I made my first post and also got virtual hosts working with apache/ajp. Everything seems to be working quite well actually, and now that I am using jboss's rewrite engine instead of apache's I suppose I don't even need the apache part of the equation anymore.

    But, I still have that question in the back of my mind of if this setup is worth the extra effort. Should this setup be more stable or efficient? I have noticed that if I need to restart a CF instance it is alot quicker to stop/start the EAR (or even stop/start JBoss entirely) than it is to stop/start JRun. JBoss will fully startup with 6 instances in under a minute where the CF service would take several minutes.

    December 17, 2009

    I'm running into this same problem. I have JBoss and CF9 set up and working with Apache and mod_proxy. There are going to be 3 or 4 more instances of CF set up on this box but I'm having a hard time trying to figure it all out.

    I have CF deployed as an .ear in JBoss. Say I have 4 other CF apps that I want to get going. I can just make seperate .war folders under cfusion.ear and deploy that way, correct? They don't seem to deploy, what else do I need to configure? Do I need to copy the CFIDE and WEB-INF these .war folders and change the jboss-web.xml?

    I'm also having issues trying to configure the server.xml for the virtual hosts. Can you give me any examples or point me in the right direction?

    Thanks!

    pdonlinAuthor
    Participating Frequently
    December 21, 2009

    Yes, the JAVA_HOME variable is set to the correct (and only) JDK instance. I also followed that help article when setting up JBoss and CF9 so I'm kind of at a loss on what to do next...

    I found this article http://daveshuck.instantspot.com/blog/2009/05/08/Solving-javalangSecurityException-Seed-must-be-between-20-and-64-bytes-Only-8-bytes-supplied but its referring to JRun.


    Sorry I completely forgot about that (what I get for not documenting as I go). You need to edit the bin/run.sh (bin/run.bat in your case) and down around like 230 you should see a JAVA_OPTS property. Replace this with...

    JAVA_OPTS="-Dcoldfusion.disablejsafe=true $JAVA_OPTS"

    -Patrick