Skip to main content
Participant
December 15, 2010
Question

How do I reuse the existing stand-alone CFM application codes on J2EE CF9

  • December 15, 2010
  • 1 reply
  • 915 views

Hi all,

Our ColdFusion installation runs on a stand-alone ColdFusion server. Now we would like to upgrade to ColdFusion 9 with J2EE configuration. Is there a way to 'reuse' the existing ColdFusion application codes on the ColdFusion J2EE, WITHOUT moving these codes into a location under the J2EE?

To clarify my question:

The existing CFM application structure looks like this:

D:\MyCFApp\folder1\....

Under J2EE, the folder structure looks like this:

D:\MyJ2EEHomeDirectory\Adobe_ColdFusion_9.ear\cfusion.war\...

I would like to keep the CF application codes under D:\MyCFApp\folder1\....

I can bring up the CF9 Admin Console just fine. What I would like to see is if there's a way for CF9 to recognize the folders OUTSIDE the J2EE directory structure.

I tried the adding some Mappings on the CF9 Admin Console but no luck.

Any advice/input is greatly appreciated!

    This topic has been closed for replies.

    1 reply

    Charlie Arehart
    Community Expert
    Community Expert
    December 15, 2010

    The solution is not in CF Admin mappings, but rather in web server mappings. You need to tell your web server how/where to find the CFML files, and then configure the web server (using the CF web server configuration tool) to have it hand CF pages to CF for processing.

    You may find helpful information in 2 of the CF docs, the Installation guide, and the Administration and Configuration guide. If you visit any page of the CF9 docs, you'll see all the manuals listed on the left.

    That said, the J2EE configuration is the least well-documented of them all, since things can change from app server to app server. You've not even said which app server you're using: jboss, tomcat, glassfish, resin, weblogic, websphere? And each of those have different support for various web servers. So there's a limit to how much Adobe will document about getting such things working.

    Also, relatively few in the CF community use the J2EE deployment--and many who do only "play with it", so may only use the built-in dev web servers that many app servers come with. When it comes to configuring things for production and integration with real web servers, they may not have any experience to share.

    But if after reading the above you have more specific questions, fire away and perhaps some here can help.

    /charlie

    /Charlie (troubleshooter, carehart. org)
    aw400Author
    Participant
    December 15, 2010

    Thanks Charlie. This will be WebSphere and IBM HTTP server. I read the Installation doc and there's not much about J2EE configuration there. I will look at the other document as you suggested. Initially I wanted to test this with just the built-in web server in WebSphere (port 9080).

    Charlie Arehart
    Community Expert
    Community Expert
    December 15, 2010

    So you'll need to see how that built-in web server expects to find web site docroots. It may have its own, or it may default to looking in the war's root, but it may also have an option to configure it to look at directories other than that. JRun's built-in web server had that flexibility (and it's the same "built-in" web server available at installation of CF), and I documented how to modify that in a blog entry several years ago (but it still applies):

    http://cfmxplus.blogspot.com/2002/08/running-cfmx-code-outside-default.html

    Perhaps the IBM web server offers something like that.

    /charlie

    /Charlie (troubleshooter, carehart. org)