An Architect's View

CFML, Clojure, Software Design, Frameworks and more...

An Architect's View

ColdFusion MX 7 on JBoss?

March 24, 2006 · 31 Comments

I'm curious: is anyone running this configuration? Did you have problems getting it working? A friend of mine deployed CFMX 7 on JBoss and it seemed to work fine but when I tried, I ran into the dreaded log4j compatibility issue that has stumped some people trying to integrate various Java packages with CFMX (many Java packages - CFMX included - depend on specific versions of log4j and often not the same version, making integration tricky... this is kind of Java's version of "DLL hell"). How many folks are using JBoss in general (including non-CF stuff)?

Tags: coldfusion

31 responses so far ↓

  • 1 Chris Scott // Mar 24, 2006 at 11:18 AM

    Hey Sean, I know that Maxim Porges had some issues with log4j trying to use Spring with coldfusion, because it uses a later version. I thought he posted some workarounds. You may want to look in the context settings that get created for the cf ear, and maybe make sure it's not trying to set up log4j as well? I dunno, just a guess there.
  • 2 Sean Corfield // Mar 24, 2006 at 12:05 PM

    Oh, I know that log4j is the problem in my setup. I'm mostly looking for feedback from the CF community about JBoss in general (and any log4j issues in particular). Thanx for the heads up on Maxim and Spring... that does ring a bell, now you mention it. I think Hibernate / CFMX has the same problem?
  • 3 Rob Brooks-Bilson // Mar 24, 2006 at 12:37 PM

    Steve Brownlee runs the CFJBoss blog, you might want to give him a shout:

    www.orbwave.com/cfjboss/
  • 4 Jeremy Lund // Mar 24, 2006 at 1:32 PM

    I would consider running on JBoss (or Tomcat, for that matter), but it doesn't look like either is officially support by Adobe. That's why I haven't tried replacing Jrun with either one.
  • 5 Adrian J. Moreno // Mar 25, 2006 at 8:41 PM

    I've been running CFMX 7 on JBoss 4.0.1 on Windows for development for over 6 months.

    I've also had a CFMX 6.1 app running on JBoss 3.2.5 on Red Hat ES in production for nearly two years now. You won't believe how fast it runs on a dual 64-bit Opteron system. :)

    AFAIK, JBoss (on Linux) is the only way to get a pure 64-bit environment for CFMX.
  • 6 Adam Haskell // Apr 7, 2006 at 6:23 AM

    We run MX7 on Jboss here. I had very few issues setting it up to work for our Developer environment. I had nothing to do with the install on our production environment that's another groups responsibility.
  • 7 Steve Brownlee // Apr 11, 2006 at 12:07 PM

    I've been running CF 7 on JBoss for my own sites and for my main employer. At home, I'm running the latest version of JBoss (4.0.4) and have 5 sites up on it with no problems. My employer has been live on JBoss for almost a year now and we've been running it in development for a year and a half.

    I've done about everything I can think of with this configuration, so if you have any specific questions, please feel free to contact me.
  • 8 Sean Corfield // Apr 12, 2006 at 1:20 AM

    Steve, what about log4j? Did you not have any conflicts between the version CF7 uses and the version JBoss uses?
  • 9 Steve Brownlee // Apr 12, 2006 at 5:14 AM

    I do remember having that problem when I initially was getting CF7 up on JBoss, but quickly resolved it by moving CF outside of the deployment directory.

    Check my blog archives for February 2005, article "ColdFusion from anywhere".

    As most anyone who's done Java app server development knows, having two versions of the same library on the Java classpath causes all kinds of mysterious and frustrating problems. By moving the CF package off of the main Java classpath and loading it only within the app boundary solved that problem for me.
  • 10 Azmi Katiman // Jun 12, 2006 at 1:07 AM

    Mr Sean Corfield.

    i managed to install jboss4.0.4 and deploy cf7 and manage to run cf admin page from port 8080.

    but during startup i got the log4j error.

    What do you mean by "moving the CF package off" since everything is in EAR file? I really want to make a clean deployment.

    i tried to locate your article "CF from anywhere" but didn't find it through google.

    thank
    Azmi.
  • 11 Sean Corfield // Jun 12, 2006 at 8:22 AM

    Azmi, only Steve can answer your questions - the article is on *his* blog, not mine. Because of the log4j error, I've never successfully run CFMX on JBoss and haven't had the time to work through the configuration he suggests. Right now I can't even find his blog - Steve, could you post a link here (without the protocol prefix!)?
  • 12 Steven Brownlee // Jun 12, 2006 at 1:14 PM

    Oops, you did say without the protocol...

    www.orbwave.com/cfjboss/2005/02/coldfusion-from-anywhere.html
  • 13 Ankush Khurana // Jun 13, 2006 at 9:23 AM

    We are in the process of designing our system with CFMX 7 in a J2EE environment. We are looking at using JBoss 4.0.4 for this. Has anyone set this up currently and is aware of any issues I need to be concerned with while specking out the requirements?

    Thanks
  • 14 Steven Brownlee // Jun 13, 2006 at 10:24 AM

    Ankush, check out my blog at www.orbwave.com/cfjboss for some information. I've successfully installed CFMX on JBoss in several environments. You're also free to email me with any specific questions you may have.
  • 15 Sean Corfield // Jun 13, 2006 at 10:42 AM

    Just be aware that JBoss is not a supported environment for ColdFusion MX 7 (or any earlier version).
  • 16 Ankush Khurana // Jun 13, 2006 at 1:18 PM

    How reliable is JRun in that case? I was reading some material online and it said that JRun is not the most reliable J2EE server. Also, I created a simple JSP page that prints out a "hello" and it gave an error.
  • 17 Sean Corfield // Jun 13, 2006 at 2:16 PM

    Ankush, adobe.com runs on CFMX7 / JRun and supports tens of thousands of concurrent sessions during peak traffic.
  • 18 Steven Brownlee // Jun 13, 2006 at 5:27 PM

    Yes, unless you have a very specific reason to deploy on JBoss, I would recommend you use the packaged JRun server that comes with CFMX7.
  • 19 Azmi Katiman // Jun 13, 2006 at 6:58 PM

    Steve,

    you said that your company is currently using jboss for both development and production. I'm pretty confius now that you are recommending adobe jrun? from your experience, which one would you truly recommend in term of performance during peak time? if cost is not an issue.?

    thank and regards,
    Azmi.
    p/s: my favourite team, France ended up draw. sigh!!
  • 20 Steven Brownlee // Jun 13, 2006 at 7:09 PM

    I am using JBoss because I integrated some ColdFusion apps into an existing JBoss architecture. It works just fine, but unless that is also a business requirement for you there is no need for it to be honest. I have also done several JRun installations for clients who did not already use JBoss.
  • 21 Azmi Katiman // Jun 13, 2006 at 7:24 PM

    Steve,

    the JRun installation that u did for your clients, was it from the cfmx7 CD? or did u use separate CD of Adobe Jrun4 box?
    do they have the same capability, the Jrun from cfmx7 CD and the separate Adobe Jrun4 CD?
  • 22 Sean Corfield // Jun 13, 2006 at 9:24 PM

    Azmi, use the "multiserver" configuration when you do the install - CFMX7 will install a full version of JRun for you and then install ColdFusion on top of that. That's the most powerful / flexible installation config in my opinion.
  • 23 Ankush Khurana // Jun 14, 2006 at 3:21 PM

    Great info. Last question before I order the server and CFMX. Can I install the standard version of CFMX 7 on top of JBoss? My company si a little stingy when it comes to spending the 5K just on CF software.
  • 24 Steven Brownlee // Jun 14, 2006 at 4:31 PM

    Yes, it is possible to put CF standard on JBoss, however, your deployment options are severely limited.

    www.adobe.com/products/coldfusion/productinfo/product_editions/#s2
  • 25 Sean Corfield // Jun 14, 2006 at 5:12 PM

    And - I'll say it again - your configuration will be unsupported!

    Ankush, if you buy Standard Edition, why not just let it use the captive version of JRun 4 that it comes with? That would be a supported configuration.

    You will have to go through a lot of installation hoops to get CFMX 7 running on JBoss (per Steve's various blog entries) and you will not be able to get support from Adobe.

    If you install Standard Edition "as-is" (i.e., not on JBoss) then you'll have a supported configuration and be able to take advantage of the very simple, standard installer.

    I just don't understand why you are so set on using JBoss?
  • 26 Azmi Katiman // Jun 14, 2006 at 5:56 PM

    Ankush - if u have CFMX 7, u dont have to buy separate JRun4. It comes with the CD.

    Steve / Sean - just wonder, does jrun4 fully utilise my 64-bit processor (Intel EM64T).?
  • 27 Sean Corfield // Jun 14, 2006 at 8:57 PM

    Azmi, read the comments in this blog entry on Dave Carabetta's blog:

    http://www.cbetta.com/blog/index.cfm/2006/5/19/coldfusion-needs-a-roadmap
  • 28 Mark Davis // Aug 29, 2006 at 1:40 PM

    Question for anyone...I am attempting to get CF running on JBoss. I have everything installed and running and have a test.cfm in a folder under default/deploy. I can browse to this file at localhost:8080/testfolder/test.cfm. I get to the page, but none of the CF content has been rendered. So I see #dateformat(now())# instead of the actual date. Is there a setting somewhere that tells JBoss/Tomcat what top do with cfm files?
  • 29 Jeff Hickey // Aug 16, 2007 at 9:17 AM

    Hi Everyone. I am trying to do the same as Mark, deploy cf 7 on jboss. I get an error relating to log4j ... has anyone gotten around this?
  • 30 Sean Corfield // Aug 16, 2007 at 9:58 AM

    @Jeff, did you read the comments and the link to Steve Brownlee's blog? He's the community expert on CF7/JBoss.

    Of course, you could just go to CF8 - JBoss is a supported platform for CF8.
  • 31 Kevin Penny // Sep 3, 2009 at 8:25 AM

    I should note, after looking at JBoss vs. Jrun - that deploying CF on a clustered JBoss environment is NOT supported - yet another limitation

    http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=installj2ee_15.html

Leave a Comment

Leave this field empty: