Charlie Arehart posted this to the CFMeetup site this morning so I thought I’d announce it here too. I will be speaking to the CFMeetup group on Thursday, August 20th at 12:00pm ET. We are going to be talking about one way to set up a development environment for ColdFusion application development that will use Eclipse 3.5 and Tomcat 6 to allow you to develop your applications against any of the major CFML server engines out there today.

This will be my first CFMeetup presentation and I’m both nervous and excited.

The link for the CFMeetup is http://www.meetup.com/coldfusionmeetup/calendar/11128508/.

UPDATE: I’ve attached the slides and XML snippet that I referenced in the presentation. The URL for the recording is http://experts.na3.acrobat.com/p39094247/. Thanks to everyone for attending and for all the feedback.

10 thoughts on “Speaking to the CFMeetup group on August 20

  1. I’m looking forward to the talk. I was inspired by Matt Woodward’s preso on running multiple CFML engines on Tomcat and I loved it, but I’ve been pulling my hair out trying to get the different engines to talk to the same files (e.g., railo.myproject.local -> c:/websites/mysite/, openbd.myproject.local -> c:/websites/mysite/, cfusion9.myproject.local -> c:/websites/mysite/)

    Is such a configuration possible? Looking forward to your talk!

  2. Christian, I’ve not done multi-engine development that way. As you’ll see in the demo, I put the WEB-INF folder from whatever engine I want to run the site on under the web root. To do what you’re asking in my configuration, I’d have to have 3 copies of the site, each with the WEB-INF from the required CFML engine in that site. I’ll see what I can come up with between now and Thursday, but given the time allotment, we may not be able to cover much more than setting up this particular configuration that I use.

  3. @Mike Henke I figured you could get it as a plugin from somewhere, but I generally grab the Java EE version from the start that already includes it. This info will certainly help anyone who already has another version of Eclipse besides the Java EE version. Thanks a bunch for posting the info!

  4. You mentioned in your talk that you use AJP proxying to Tomcat from Apache. While this wasn’t part of your talk, I wanted to ask if you have noticed any performance problems with it? I can bring stuff up just fine if I go to mysite.local:8080 (tomcat only) but it seems to take forever to load up when I go to mysite.local (using ajp proxy). I have it enabled in my apache http.conf. Is there something special I need to do in Tomcat or something?

  5. @Christian Ready I don’t notice any lag at all on mine. I’m using the mod_jk.so module for Apache which reads configuration from a workers.properties file that details all the different Tomcat configurations that I have set up. I’ll write up a more detailed blog post tonight with some code samples that covers that part of my setup since we didn’t have time to talk about it on Thursday.

  6. Pardon yet another question, but I am trying to add a very large application to this configuration. By “large” I mean a number of CFC creations. I can bring up the CF8 administrator just fine, but when I try to bring up the main site, I get the following error:

    08/24 17:14:50 Information [http-8080-2] – Starting KomenGMS // (The name of the app as defined in Application.cfc)
    08/24 17:15:08 Error [http-8080-2] – Java heap space The specific sequence of files included or processed is: C:\websites\komenGrants\trunk\web\wwwroot\index.cfm, line: 495
    Exception thrown by error-handling template:
    java.lang.OutOfMemoryError: Java heap space

    So this appears to be an out of memory error involving the Java heap space. Have you ever encountered this error before with larger applications?

  7. @Christian Ready No problem. I have actually seen that error a few times, but only after I’d been developing a while. If I remember correctly, the default Tomcat startup script only allocates 64MB of RAM. Since we didn’t make any changes to the server config after we set it up in the Servers view, it’s defaulting to that 64MB which is causing your heap space issues.

    One thing you could try is giving the JVM that is launched more RAM via the Java args and see if that helps. If you go to your Servers view and double click on the individual server, you should have a configuration page there with the config options for that server. Look on the left side in the General Information section for a link that says “Open launch configuration”. Click that and, in the window that opens up, look for a tab named “Arguments”. On that tab will be a field called “VM arguments”. Paste this in at the end of whatever text is in there (without the quotes): “-Xms512M -Xmx512M”. Save/apply everything and close out of those windows. Restart your Server from within Eclipse and see if you still get the heap error.

Leave a Reply

Your email address will not be published. Required fields are marked *

*