[cfaussie] Re: ColdFusion, Tomcat, IIS7 question
@charlie, no I have not tried that. What we have settled on - a compromise of sorts - is sym linking to the WEB-INF and CFIDE from within the site code base root, many thanks Andrew. Unfortunately it still means CFIDE is browsable via the website, but only if you know the port number Tomcat is listening on. e.g. - Browsing the site: http://my.wickedcool.site/ (on port 80) works. - Browsing the site: http://my.wickedcool.site/cfide/administrator/index.cfm throws a 500 HTTP status code - preliminary investigation suggests it is an IIS ajp Tomcat issue rather than CF ... a little bit more of an investigation is required though. - Browsing the site: http://my.wickedcool.site:{*my_custom_port}/cfide/administrator/index.cfm and I get to the CF Admin login page. *my_custom_port, as defined in Tomcat's server.xml. The bad news is I still have to 'pollute' my codebase with sym link shortcuts to the CFIDE and WEB-INF folders ... but this is made less onerous by using a batch file to roll out the codebase and creating the appropriate sym links etc. Other things to note, if you're using ActiveMQ don't be a fool like me, be sure to put the ActiveMQ jar in the WEB-INF/cfusion/lib/. Spent more time than I care to admit trying figure out why my gateway was stuck in the 'starting' state ... *sigh*. So, thank you all for your input. Oh, and my.wickedcool.site isn't a real site BTW - expect a DNS fail :) Cheers Glen -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.
Re: [cfaussie] Anyone who knows PHP well, how is this done in CF?
I don't know PHP but I'll have a whack :) Anyone know what php://input is? It looks like you're reading a file, URL or similar (?). So ... cffile action='read' file='c:\whatever.txt' variable='fileContent' cfset stSomething = DeserializeJSON(fileContent) Jah? On 15/08/2011, at 5:58 PM, Andrew Scott andr...@andyscott.id.au wrote: As the subject implies, how would this be written in CF? json_decode(file_get_contents(php://input), true); Many thanks in advance. Regards, Andrew Scott http://www.andyscott.id.au/ -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en. -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.
RE: [cfaussie] Anyone who knows PHP well, how is this done in CF?
Yeah that is what I thought, but I am at a loss to see where the data is in ColdFusion. Here is the full PHP code in question. if ($method == 'GET' $_GET['hub_mode'] == 'subscribe' $_GET['hub_verify_token'] == VERIFY_TOKEN) { echo $_GET['hub_challenge']; } else if ($method == 'POST') { $updates = json_decode(file_get_contents(php://input), true); // Replace with your own code here to handle the update // Note the request must complete within 15 seconds. // Otherwise Facebook server will consider it a timeout and // resend the push notification again. error_log('updates = ' . print_r($updates, true)); } Now I am assuming that this is either in the header request or somewhere that I am not familiar with, as the url and form are empty, I am assuming the header for some reason. So would GetHttpRequestData() be what I am looking for in ColdFusion? Regards, Andrew Scott http://www.andyscott.id.au/ http://www.andyscott.id.au/ From: cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On Behalf Of MrBuzzy Sent: Monday, 15 August 2011 6:18 PM To: cfaussie@googlegroups.com Cc: cfaussie@googlegroups.com Subject: Re: [cfaussie] Anyone who knows PHP well, how is this done in CF? I don't know PHP but I'll have a whack :) Anyone know what php://input is? It looks like you're reading a file, URL or similar (?). So ... cffile action='read' file='c:\whatever.txt' variable='fileContent' cfset stSomething = DeserializeJSON(fileContent) Jah? -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.
Re: [cfaussie] Anyone who knows PHP well, how is this done in CF?
I think you're on the right track. php://input is a read-only stream that allows you to read raw data from the request body. In the case of POST requests, it is preferable to $HTTP_RAW_POST_DATAhttp://www.php.net/manual/en/reserved.variables.httprawpostdata.php as it does not depend on special php.ini directives. So you need; cfset updates = DeserializeJSON(GetHTTPRequestData().content) And note the CFDocs too; Structure element Description content Raw content from form submitted by client, in string or binary format. For content to be considered string data, the FORM request header CONTENT_TYPE must start with text/ or be special case application/x-www-form-urlencoded. Other types are stored as a binary object. On 15 August 2011 18:22, Andrew Scott andr...@andyscott.id.au wrote: Yeah that is what I thought, but I am at a loss to see where the data is in ColdFusion. Here is the full PHP code in question. ** ** *if* ($method *==* 'GET' ** $_GET['hub_mode'] *==* 'subscribe' ** $_GET['hub_verify_token'] *==* VERIFY_TOKEN) { *echo* $_GET['hub_challenge']; } *else* *if* ($method *==* 'POST') { ** ** $updates *=* json_decode(file_get_contents(php://input), *true*); *// Replace with your own code here to handle the update * *// Note the request must complete within 15 seconds.* *// Otherwise Facebook server will consider it a timeout and * *// resend the push notification again.* error_log('updates = ' *.* print_r($updates, *true*)); } ** ** Now I am assuming that this is either in the header request or somewhere that I am not familiar with, as the url and form are empty, I am assuming the header for some reason. ** ** So would GetHttpRequestData() be what I am looking for in ColdFusion? ** ** ** ** Regards, Andrew Scott http://www.andyscott.id.au/ ** ** ** ** ** ** *From:* cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] *On Behalf Of *MrBuzzy *Sent:* Monday, 15 August 2011 6:18 PM *To:* cfaussie@googlegroups.com *Cc:* cfaussie@googlegroups.com *Subject:* Re: [cfaussie] Anyone who knows PHP well, how is this done in CF? ** ** I don't know PHP but I'll have a whack :) ** ** Anyone know what php://input is? ** ** It looks like you're reading a file, URL or similar (?). ** ** So ... ** ** cffile action='read' file='c:\whatever.txt' variable='fileContent' ** ** cfset stSomething = DeserializeJSON(fileContent) ** ** Jah? -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en. -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.
RE: [cfaussie] Anyone who knows PHP well, how is this done in CF?
Yeah thanks, that is exactly what I ended up with. Regards, Andrew Scott http://www.andyscott.id.au/ http://www.andyscott.id.au/ From: cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On Behalf Of MrBuzzy Sent: Monday, 15 August 2011 7:04 PM To: cfaussie@googlegroups.com Subject: Re: [cfaussie] Anyone who knows PHP well, how is this done in CF? I think you're on the right track. php://input is a read-only stream that allows you to read raw data from the request body. In the case of POST requests, it is preferable to http://www.php.net/manual/en/reserved.variables.httprawpostdata.php $HTTP_RAW_POST_DATA as it does not depend on special php.ini directives. So you need; cfset updates = DeserializeJSON(GetHTTPRequestData().content) And note the CFDocs too; Structure element Description content Raw content from form submitted by client, in string or binary format. For content to be considered string data, the FORM request header CONTENT_TYPE must start with text/ or be special case application/x-www-form-urlencoded. Other types are stored as a binary object. -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.
Re: [cfaussie] MAD! Melbourne Adobe Developers meeting for Thursday 18 August 2011. COLDSPRING
HI Peter I'll be there. See you Thursday Phil On 15/08/11 10:58 AM, Peter Robertson wrote: This month's presentation is from Mark Mandel. ColdSpring 2.0 Alpha 1 - What's New and Improved? ColdSpring 2.0, codenamed Narwhal, has been in development for over a year now, with an array of new and improved features being brewed in the background. With the release of Alpha 1 of this framework, these features have become available to developers to take advantage of. This presentation will give you an overview and examples of each of the major new features of ColdSpring 2, including enhanced dependency injection, custom namespaces, ORM integration and AOP enhancements and much more. Mark Mandel is a full time consultant and lead developer on several open source projects, most notably ColdSpring, JavaLoader, Transfer ORM and ColdDoc and has been has been working with ColdFusion for a number of years, including at his very own dot com back in the late 90's. Mark can often be found blogging at www.compoundtheory.com, which has housed his thoughts on ColdFusion, Java and various aspects of software development for several years. He can also be found as a regular poster on ColdFusion mailing lists, causing havoc in the #coldfusion channel on Dalnet irc network and podcasting on www.2ddu.com. When he's not too busy writing open source software and consulting he enjoys spending his extra time training martial arts in a wide variety of disciplines and reading way too much fantasy literature. Date: Thursday 18 August 2011 Time: 6:30 PM Location: CogState Level 2 255 Bourke Street Melbourne, VIC, 3000 A note on the door will provide a number to ring for access. RSVP: Please reply to this post if you are planning to attend so we know how many pizzas to order. As always, many thanks to Dale Fraser and CogState for their hospitality. We look forward to seeing you all there. Peter Robertson Co-Manager Melbourne Adobe Developers Steve Onnis Manager Melbourne Adobe Developers -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.
Re: [cfaussie] MAD! Melbourne Adobe Developers meeting for Thursday 18 August 2011. COLDSPRING
I'll probably be there as well :) Sent from my mobile doohickey. On Aug 15, 2011 7:52 PM, Phil Haeusler philhaeus...@gmail.com wrote: HI Peter I'll be there. See you Thursday Phil On 15/08/11 10:58 AM, Peter Robertson wrote: This month's presentation is from Mark Mandel. ColdSpring 2.0 Alpha 1 - What's New and Improved? ColdSpring 2.0, codenamed Narwhal, has been in development for over a year now, with an array of new and improved features being brewed in the background. With the release of Alpha 1 of this framework, these features have become available to developers to take advantage of. This presentation will give you an overview and examples of each of the major new features of ColdSpring 2, including enhanced dependency injection, custom namespaces, ORM integration and AOP enhancements and much more. Mark Mandel is a full time consultant and lead developer on several open source projects, most notably ColdSpring, JavaLoader, Transfer ORM and ColdDoc and has been has been working with ColdFusion for a number of years, including at his very own dot com back in the late 90's. Mark can often be found blogging at www.compoundtheory.com, which has housed his thoughts on ColdFusion, Java and various aspects of software development for several years. He can also be found as a regular poster on ColdFusion mailing lists, causing havoc in the #coldfusion channel on Dalnet irc network and podcasting on www.2ddu.com. When he's not too busy writing open source software and consulting he enjoys spending his extra time training martial arts in a wide variety of disciplines and reading way too much fantasy literature. Date: Thursday 18 August 2011 Time: 6:30 PM Location: CogState Level 2 255 Bourke Street Melbourne, VIC, 3000 A note on the door will provide a number to ring for access. RSVP: Please reply to this post if you are planning to attend so we know how many pizzas to order. As always, many thanks to Dale Fraser and CogState for their hospitality. We look forward to seeing you all there. Peter Robertson Co-Manager Melbourne Adobe Developers Steve Onnis Manager Melbourne Adobe Developers -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en. -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.
[cfaussie] Re: ColdFusion 9 Application Server
I did set the host headers. I'm guessing I have it set correctly since the site works internally. Since my initial posting, I've gone into the CF webconfig tool and removed the existing entry and re-added my web site, making sure that configure web server for ColdFusion 9 applications is checked. I'm thinking it's not a port forwarding issue because I can open .htm .asp files externally. Granted, I am easily confused mystified in the areas of firewalls routers, so I hope I'm making a valid assumption. Steve On Aug 12, 5:16 pm, Paul Kukiel kuki...@gmail.com wrote: Did you set the host headers in IIS, also is CF9 enabled for that website via the webconfig tool. Does it work internally? Could the port forwarding be to the wrong IP? Paul On Sat, Aug 13, 2011 at 9:46 AM, st...@csj.usa ster...@gmail.com wrote: I've set up Coldfusion 9 on a Windows 2008 R2 server with IIS 7.5. I've got my web site running fine on my company's Intranet, but when I try accessing the site externally I get Service is Unavailable, with no HTTP error codes. 1. To verify it's not just some IIS bindings config, firewall or DNS host entry problem, I created simple hello files, one with .htm, one with .asp, and one with .cfm extensions. The file doesn't have any actual Coldfusion code in it; just the word hello. I can open the htm asp files fine. Only the cfm file gives the error. 2. I made a very bare bones application.cfc file. 3. I've tried IE, Firefox Chrome and the results are identical. I've done quite a bit of research on the net looking for something similar to this problem and haven't found a thing. Getting desperate. :P -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en. -- Paul Kukiel -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.
Re: [cfaussie] Re: ColdFusion 9 Application Server
Is there anything in the ColdFusion logs, or JRun if you set up a multi-server environment that might give more clues? I would advise to stop ColdFusion and delete all the logs, and the restart ColdFusion and then try to use an external connection again and see what the logs of ColdFusion and IIS are saying. On Tue, Aug 16, 2011 at 3:52 AM, st...@csj.usa ster...@gmail.com wrote: I did set the host headers. I'm guessing I have it set correctly since the site works internally. Since my initial posting, I've gone into the CF webconfig tool and removed the existing entry and re-added my web site, making sure that configure web server for ColdFusion 9 applications is checked. I'm thinking it's not a port forwarding issue because I can open .htm .asp files externally. Granted, I am easily confused mystified in the areas of firewalls routers, so I hope I'm making a valid assumption. Steve -- Regards, Andrew Scott WebSite: http://www.andyscott.id.au/ Google+: http://plus.google.com/108193156965451149543 -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.
[cfaussie] Re: ColdFusion 9 Application Server
Thanks everyone for your suggestions. RE: 9.0 or 9.0.1 - I'm running 9.0.1 and don't remember doing any manual tweaks under 9.0. At the time I did the initial install, 9.0.1 was already released, so upgrading was one of the first things I did. Looked over that 9.0.1 doc (http://www.adobe.com/support/documentation/ en/coldfusion/901/cf901install.pdf) but didn't see anything relating to me requiring a change. RE: MIME types - didn't see an entry for cfm. Hate to sound newb'ish, but what should it look like? IIS 6 didn't have a cfm entry, however it does under ISAPI extensions. On Aug 14, 8:13 pm, charlie arehart charlie_li...@carehart.org wrote: Steve, is that 9.0? or 9.0.1? Only the latter is formally supported by Adobe. If you have not installed the updater (free, and yes it must be added even if you downloaded 9.0 today), do that and try again. Be sure to note that the updater asks you to stop CF at one point. Some have missed that and things have not been properly updated. Similarly, if you did various manual tweaks to get 9.0 to work with IIS, you may need/want to undo those (such as enabling IIS 6 compatibility). Note that the 9.0 manual (Installing ColdFusion 9,http://help.adobe.com/en_US/ColdFusion/9.0/Installing/index.html) does offer such manual tweaks. It also mentions some other things about IIS features that do need to be enabled (for 9.0, that do also need to be enabled for 9.0.) Finally, the manual for installing the updater offers different info for getting it working with IIS 7 based on what your starting point it (starting at bottom of page 8). Seehttp://www.adobe.com/support/documentation/en/coldfusion/901/cf901ins... f Let us know if that helps. /charlie -Original Message- From: cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On Behalf Of st...@csj.usa Sent: Friday, August 12, 2011 7:47 PM To: cfaussie Subject: [cfaussie] ColdFusion 9 Application Server I've set up Coldfusion 9 on a Windows 2008 R2 server with IIS 7.5. I've got my web site running fine on my company's Intranet, but when I try accessing the site externally I get Service is Unavailable, with no HTTP error codes. 1. To verify it's not just some IIS bindings config, firewall or DNS host entry problem, I created simple hello files, one with .htm, one with .asp, and one with .cfm extensions. The file doesn't have any actual Coldfusion code in it; just the word hello. I can open the htm asp files fine. Only the cfm file gives the error. 2. I made a very bare bones application.cfc file. 3. I've tried IE, Firefox Chrome and the results are identical. I've done quite a bit of research on the net looking for something similar to this problem and haven't found a thing. Getting desperate. :P -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en. -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.
RE: [cfaussie] Re: ColdFusion 9 Application Server
Steve, you say you didn't see anything relating to me requiring a change, in the 9.01 install guide. Did you check again the page 8 (and following) that I referred to? It's pretty clear on what needs to be done on an upgrade, with specific respect to IIS 7. As for your reference to mime types, that was someone else's comment. I'll leave them to elaborate (I'm not aware of any need for them with respect to CF). /charlie -Original Message- From: cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On Behalf Of st...@csj.usa Sent: Monday, August 15, 2011 6:17 PM To: cfaussie Subject: [cfaussie] Re: ColdFusion 9 Application Server Thanks everyone for your suggestions. RE: 9.0 or 9.0.1 - I'm running 9.0.1 and don't remember doing any manual tweaks under 9.0. At the time I did the initial install, 9.0.1 was already released, so upgrading was one of the first things I did. Looked over that 9.0.1 doc (http://www.adobe.com/support/documentation/ en/coldfusion/901/cf901install.pdf) but didn't see anything relating to me requiring a change. RE: MIME types - didn't see an entry for cfm. Hate to sound newb'ish, but what should it look like? IIS 6 didn't have a cfm entry, however it does under ISAPI extensions. -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.
Re: [cfaussie] MAD! Melbourne Adobe Developers meeting for Thursday 18 August 2011. COLDSPRING
Hi Peter I'll be there too, see you guys thursday Chong -- You received this message because you are subscribed to the Google Groups cfaussie group. To view this discussion on the web visit https://groups.google.com/d/msg/cfaussie/-/f9rSJej1_UoJ. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.