railo

Using MaxMind java class with ColdFusion

感情迁移 提交于 2019-12-10 15:15:01
问题 I'm trying to use MaxMind java library with ColdFusion. I start converting this sample code on official MaxMind site: // A File object pointing to your GeoIP2 or GeoLite2 database File database = new File("/path/to/GeoIP2-City.mmdb"); // This creates the DatabaseReader object, which should be reused across // lookups. DatabaseReader reader = new DatabaseReader.Builder(database).build(); InetAddress ipAddress = InetAddress.getByName("128.101.101.101"); // Replace "city" with the appropriate

Tomcat possible memory leak

人盡茶涼 提交于 2019-12-10 14:29:02
问题 The university I work at uses a Tomcat/Railo server to render ColdFusion pages. For about 6 months (before I was hired) the servers have been randomly crashing at different times, usually runnign service railo_ctl restart has fixed hte issue, however lately this hasn't been working as well. Over the past two weeks I've narrowed the issue down, and I'm fairly sure Tomcat where the issue is coming from. I've never used Tomcat, so I'm not sure where to start. I have reviewed the Catalina.out

How to declare /var/www as Tomcat and Railo ROOT?

柔情痞子 提交于 2019-12-10 10:53:30
问题 I wanted to have Apache's /var/www to be the root for my railo CMS? I put the railo.war into /var/lib/tomcat6/webapps and put the following into my /etc/tomcat6/server.xml : <Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"> <Context path="" docBase="/var/www"/> Now when I put an index.cfm into /var/www and go to http://localhost I get the following error Railo [3.2.2.000] - Error (java.io.IOException) Message No such

Is using cfsqltype good practice?

耗尽温柔 提交于 2019-12-08 17:00:33
问题 When coding a cfqueryparam or cfprocparam, cfsqltype is optional. However, I've usually seen it coded. Are there any benefits to specifying cfsqltype? 回答1: The main benefit is an additional level of sanity checking for your query inputs, prior to passing it into your query. Also, in the case of date time values, I believe CF will properly translate datetime strings into the proper database format, if the cfsqltype="CF_SQL_DATE" or ="CF_SQL_TIMESTAMP" is specified. In addition, I think it

Can cfvideo tag from Railo be used under Adobe CF?

非 Y 不嫁゛ 提交于 2019-12-07 18:14:28
问题 Just started something related to video. It would really help if we can use cfvideo. Any idea if that's doable? 回答1: I don't know about CFVIDEO specifically, but my VideoConverter.cfc will allow you to convert video to different formats and play video universally. https://github.com/sebtools/Video-Converter Like CFVIDEO, it uses ffmpeg in the background. So I imagine it could be enhanced to add other functionality from CFVIDEO as well. It runs on ColdFusion and I would think it should run on

Verify mail server connection programmatically in ColdFusion

主宰稳场 提交于 2019-12-07 03:08:03
问题 I'm using custom SMTP servers and would like to verify the connection when user enters his own server credentials. Exactly the same type of check as Adobe CF and Railo allow to do when adding mail server. Sure, this does not guarantee that delivery will be working, but at least to check that entered server/username/pass are valid. I can see one tricky way: try to send the email with cfmail and check the mail log. But I believe that it can be done with more elegant. Is there any Java library

How does one convert from a Java resultset to ColdFusion query in Railo?

北战南征 提交于 2019-12-07 01:01:01
问题 The following works fine in CFMX 7 and CF8, and I'd assume CF9 as well: <!--- 'conn' is a JDBC connection ---> <cfset stat = conn.createStatement() /> <cfset rs = stat.executeQuery(trim(arguments.sql)) /> <!--- convert this Java resultset to a CF query recordset ---> <cfset queryTable = CreateObject("java", "coldfusion.sql.QueryTable")> <cfset queryTable.init(rs) > <cfset query = queryTable.FirstTable() /> This creates a statement using a JDBC driver, executes a query against it, putting it

What Notable Differences are there between Railo, Open Bluedragon, and Adobe Coldfusion?

馋奶兔 提交于 2019-12-06 20:17:10
问题 An attempt to capture notable differences between implementations: Adobe ColdFusion Railo Open Bluedragon (I'm aware of Smith, but don't believe it's still active). Include CFML and platform differences - syntax, feature, and extensibility. Note, this is not something I've not seen anywhere else, but maybe I'm just not searching correctly. So links to that end would count too. Update Here's my definition of notable in this context: something that simplifies solving a difficult problem. For

Can cfvideo tag from Railo be used under Adobe CF?

感情迁移 提交于 2019-12-05 23:28:25
Just started something related to video. It would really help if we can use cfvideo. Any idea if that's doable? I don't know about CFVIDEO specifically, but my VideoConverter.cfc will allow you to convert video to different formats and play video universally. https://github.com/sebtools/Video-Converter Like CFVIDEO, it uses ffmpeg in the background. So I imagine it could be enhanced to add other functionality from CFVIDEO as well. It runs on ColdFusion and I would think it should run on Railo or OpenBD as well. Gert Franz <CFVIDEO> is free... Perhaps we have some links Left that presume

Verify mail server connection programmatically in ColdFusion

拈花ヽ惹草 提交于 2019-12-05 07:45:53
I'm using custom SMTP servers and would like to verify the connection when user enters his own server credentials. Exactly the same type of check as Adobe CF and Railo allow to do when adding mail server. Sure, this does not guarantee that delivery will be working, but at least to check that entered server/username/pass are valid. I can see one tricky way: try to send the email with cfmail and check the mail log. But I believe that it can be done with more elegant. Is there any Java library available with standard ACF/Railo distro to help me? How would I use them? Examples are highly