Coldfusion OO programming

Hi
At the moment i have a contact manager application i am
building.
a contact has a title (mr/mrs/miss) and can have multiple
addresses, multiple telephone numbers.
CFC's dont allow me to do multiple inheritance. I can extend
to 1 component then extend to the next one in a kind of "daisy
chain" but this is not ideal, if anything changes in my application
there are a lot of dependencies.
I have been told by Hal Helms to use something called
aggregation but I am finding this concept difficult to grasp.
I believe i am supposed to do something like the following
see attached code:
This seems to work fine, i have a setTitle() method in the
contact.cfc which creates the title object.
The problem is, as soon as i reference the setTitle() method
from within the contact.cfc I can error saying that the return type
is not of type "title"
I think i've either got this completely wrong or i'm missing
something.
Can someone please help?
My e-mail address is
here

You have set the type of your cfargument tag to be title, but
as we can see from your attached code the path for this CFC is
components.contact.title you need to change the type to
that.

Similar Messages

  • Coldfusion CMS add a new page

    Hi, I want to create a simple CMS site using coldfusion. I would like to have an 'add new page' button which will create a new html or coldfusion page and show the name of that page in the navigation bar as a link, can someone point me in the right direction of a tutorial or give me a clue to what code I should be using. I'm fairly new to Coldfusion and programming so any help would be much appreciated!!!
    many thanks

    One thing to consider before embarking on this sort of exercis is that you're setting out on well-trod ground.
    Are you sure you want to be writing your own CMS when there are a number of well-established and free ones already out there?
    Looking at FarCry or Mura would be my first step in any enterprise like this.
    Adam

  • ColdFusion Builder lacking bug fix updates

    I have to say that since the product was officially launced, we had one small update that provided a few fixes.
    The question I need to ask is what about these more serious bugs that are stopping this product from being great?
    There are about 30+ bugs listed on the bug tracker that have been there for over 18 months that are still major problems today, some of these I consider major and should be pushed to getting fixed as quickly as possible.
    The number one pet hate of mine is wasting time with an Application that doesn't work correctly, so how does this affect ColdFusion Builder?
    Lets look at setting up of servers on ColdFusion Builder, this has got to be the number one most used and needed feature of this product and yet it doesn't work and has so many reported bugs that I would have thought that these would be fixed by now.
    If one is lucky, you can setup a server and start and stop this from within Builder. However I can tell you that even when you have it setup, it will stop working as well.
    Lets look at what I have setup at the moment.
    I have had ColdFusion 9 and 9.01 installed and still donot mange to be able to start and stop the server.
    I now have a mutli server version of ColdFusion 9.01 locally, and was able to get this to work briefly. And now it no longer works, with no changes to any of the settings. Don't get me started on remote servers, these are even worser trying to get working.
    And even if you do make changes to the server setup in builder, you have to close and restart the Application. This is not acceptable to me either.
    I could go on about how much of a hit and miss this feature actually is.
    So the question is if this a feature that people would want to buy this product, why is there no fixes for the problems that are still there after 18 months?

    Yes they where, they were reported in ColdFusion 7 beta program, ColdFusion beta program and ColdFusion 9 beta program.
    When it is reported that many times, and nothing is done what sort of confidence do you think this gives us users of the product?
    During the ColdFusion 9 beta program, the cfgrid had many problems that had been reported in CF8 beta program and was again reported and we had been told it was fixed. Did it get released with the initial 9.0 version? No it didn't, did it get released with the 9.01 beta program? No it didn't.
    Again what sort of confidence does this give people in this product?
    I even fought hi and low with Adobe to get these grid problems fixed, not only did they break more things but it was not even backward compatible. Evey person I spoke to refused to fix it, becuase I did not have paid support. This even went as far as Adam, and Kevin Lynch because I got feed up with the fact that 9.0 got released and it broke our application to the point when we fixed one thing it broke another, to the point that we could not get at the source of ColdFusion to fix the problem.
    Each and every time we were told there was a work around, and no work around was ever produced.
    When 9.01 was released was it fixed? No it wasn't, in fact it was even worse. And the answer again from Adobe was that unless we have paid support it will not get fixed.
    So Ray the answer is very simple, Adobe is not interested in providing more patches / hot fixes past the intial ones they have always released. Even it it effects people from moving upto the latest version...
    I can provide many examples of emails from employees of Adobe, that say the same thing no paid support no fix. Now we have to wait another 2 years and wait to see if these problems get fixed, and to me I am sorry that is not an issue that one should have to endure. When talking to people about ColdFusion the same problems exist each and every time, the lack of support and problems that never get fixed puts people off from keeping on buying the product and they end up moving on.
    I have been in two companies that began their days as ColdFusion developers, and both companies ended up moving on because of these problems I have outlined. I can understand a company like Adobe needing to make money, but at the end of the day they will continue to loose money because people will look at other options that are better supported, have more outfixes and updates.
    The amount of updates that Microsoft release in 1 year is maybe like the same amount Adobe/Macromedia/Allaire have released in 15 years.
    Do't take this the wrong way, but the debugger is buggy as hell. It works when it wants to and even to the point when you do get it working it actually gets slower and slower each time you run it. This has been a problem for now 6 years in this product and it has never gotten any attention, now that CF builder utilises this feature, I would have hoped that these bugs and problems got fixed. But they never did.
    Every major release is about throwing new features into the product, but when it comes to issues like this do any of the previous versions that have these problems get fixed? No they don't, and even the current major release is not fixing any of these previous issues either.
    The problem is one needs to draw the line, and stop putting features into a product that Adobe can't continue to support.
    And till that changes people are going to continue to get rather annoyed with Adobe, and the more they get annoyed the more customers Adobe end up loosing. I don;t make my comments very lightly when I do make them, and after 15 years I have seen it all with ColdFusion and the one thing that never changes is the lack of bugs in older features that ever get fixed.
    Sorry for the rant, but this is something that Adobe HAVE to address and address sooner than later. I know of 3 more companies that are moving away from ColdFusion, for more reasons than what I have outlined here.

  • Coldfusion8 cfdocument formatting change

    creating pdf reports from same coldfusion 8 program(not
    report builder). If number of pages exceed 1,100 the print
    formatting changes in that all fonts are reduced in size.

    Use the formula:
    =ISNUMBER(MATCH(A1,Sheet2!$A$1:$A$6,0))

  • Adobe Cold Fusion Basic

    ColdFusion is an application server and software development
    framework used for the development of computer software in general,
    and dynamic web sites in particular. In this regard, ColdFusion is
    a similar product to ASP.NET or Java Enterprise Edition.
    The primary feature of ColdFusion is its associated scripting
    language, ColdFusion Markup Language (CFML), which compares to JSP,
    C#, or PHP and resembles HTML in syntax. "ColdFusion" is often used
    synonymously with "CFML", but it should be noted that there are
    additional CFML application servers besides ColdFusion, and that
    ColdFusion supports programming languages other than CFML, such as
    server-side Actionscript.
    ColdFusion is most often used for data-driven web sites or
    intranets. More advanced users can use ColdFusion as a productivity
    layer above a J2EE platform or use ColdFusion as middleware in a
    service oriented architecture (SOA), generating SOAP or RESTful web
    services or Flash remoting.
    ColdFusion can also handle asynchronous events such as SMS
    and instant messaging via its gateway interface, available in
    ColdFusion MX 7 Enterprise Edition.
    ColdFusion provides a number of value-added services out of
    the box:
    * conversion from HTML to PDF and FlashPaper
    * client-side form validation including rich forms using
    Flash
    * GUI widgets such as datagrids and date pickers
    * platform-independent database querying via ODBC or JDBC
    * data retrieval from common enterprise systems such as
    Active Directory, LDAP, POP, HTTP, FTP
    * client and server cache management
    * session, client, and application management
    * file indexing and searching service based on Verity K2
    (Enterprise Edition only)
    * XML parsing, querying, and validation
    * Server clustering
    * GUI administration
    * Task scheduling

    Yeah, my question was very much rhetorical.
    I have to ask, is the small chance that your site will rate a
    touch higher in the search engines worth the huge dent to your
    credibility when you employ sleaze ball tactics like this?
    I am pretty sure that I am not the only one who refuses to do
    business with anyone who publicizes this way.

  • What is the best program language for mass email (PHP,  ASP, Coldfusion)?

    I want to be able to send mass email (from a SQL db) with
    stability and reliability.
    I've used Coldfusion for some time (CFmail tag) and have not
    been impressed.
    It seems, at times, it has a mind of it's own, and is a
    little unreliable, especially
    when sending hundreds of emails at one shot. I'm not dogg'n
    Codfusion,
    that's what I program in, I just am looking for a method that
    I can build on.
    My question is this: What is the best and most reliable
    coding when sending mass email?
    Is it PHP, ASP, XML, Coldfusion....what?
    You would think there has to be an optimum option out
    there...right?
    Thanks for the knowledge!

    Beezy wrote:
    > say ...500-5,000, maybe larger. Any ideas?
    >
    I've used CF to send out as many as 50,000+ emails in a
    single blast and
    haven't ever had any problems with it. Particularly with CF
    Enterprise,
    CF is an extremely high-performance mail generation engine.
    Remeber
    that CF itself doesn't send the mail so you're dependent upon
    the speed
    of your mail server as a large part of the equation as well.
    Matt
    Matt Woodward
    [email protected]
    Adobe Community Expert - ColdFusion

  • How do I remove this stupid *&^$ Tasktop program from my ColdFusion Builder 2?

    I do not need it, I do not want it, and somehow I accidentally installed it. I can find no uninstall button, it's not in my Vista Programs and Features to uninstall, and I"m tired of waiting for it during application load and getting in the way of my shortcuts and whatnot. I just want it gone but I can find no reference anywhere to take this stupid program out.

    RLS,
    Are you running the latest version of CF Builder by any chance (2.0.1)?  If not, you might want to download and install it.  It actually uninstalls the previous version of CF Builder (2.0.0) and installs the new version (becuase 2.0.1 uses a newer major build of Eclipse).  This will allow you to start with a "clean slate" when it comes to which add-ons are installed, but it should maintain all of your project settings.
    Another idea, although this one could be pretty dangerous.  If you feel comfortable trying this, close CF Builder and:
    Make a copy of your \Program Files\Adobe\Adobe\ColdFusion Builder 2\features and \Program Files\Adobe\Adobe\ColdFusion Builder 2\plugins folders as a backup. 
    Make copies of \Program Files\Adobe\Adobe ColdFusion Builder 2\configuration\org.eclipse.equinox.simpleconfigurator\bundles.info and \Program Files (x86)\Adobe\Adobe ColdFusion Builder 2\configuration\org.eclipse.update\platform.xml as backups.
    Browse each of those folders from step 1 and find any folders and files with "Tasktop" in the name.  Delete just those files and folders.
    Open \Program Files\Adobe\Adobe ColdFusion Builder 2\configuration\org.eclipse.equinox.simpleconfigurator\bundles.info in a text editor and remove lines that have references to Tasktop.
    Open \Program Files (x86)\Adobe\Adobe ColdFusion Builder 2\configuration\org.eclipse.update\platform.xml in a text editor and remove lines that have references to Tasktop.
    Launch CF Builder.
    If CF Builder wont' run after that, revert the folders and files to the copies you made in steps 1 and 2 above.
    Good luck,
    -Carl V.

  • Coldfusion server problem or programming problem?

    Hello experts,
    I have been experiencing problems when accessing this website using Mac (and Parallels/WinXP).
    http://tinyurl.com/3yh3d8l
    Because there is no problem when using Windows PC, the programmer suggested that it might be a CF server problem, but one of my IT said it's programming issue (basically he said the web programmer is wrong). I have very limited access to PC at work but I need the data from that website. I'd like to give input to the webprogrammer but I don't know what to say. Could you please give me some suggestions? Thank you.

    hi Adam,
    Just tested in Mac, the site works in FireFox. But Safari won't load it at all. Progress bar keep spinning but screen doesn't change.
    So is this something to do with the programming problem or Safari is being picky? I can use FireFox during presentation but I'd like the option to be able to use Safari (iPad?).

  • ColdFusion programming

    I am trying to extract data from an SQL database in the
    dynamic page using a drop down list.
    The drop down menu (data) has one option that if it's
    selected,
    select * from table but if the other options are selected
    from the combo box,
    select * from table where column #data#.
    I have coded the second aspect of the query and it works to
    recieve specified data from the database but to addthe first aspect
    to it to extract all the data from the table if a particular option
    is selected, I'm struggling with it. I think it requires a
    <cfif> statement but I have tried a number of times but with
    no success.
    Could anyone advise me of what I should do?
    Thanks,
    Aqsa

    You have set the type of your cfargument tag to be title, but
    as we can see from your attached code the path for this CFC is
    components.contact.title you need to change the type to
    that.

  • How to Install Coldfusion 8 64-bit on Small Business Server 2008 64-bit

    How to Install Coldfusion 8 64-bit on Small Business Server 2008 64-bit
    I ran Coldfusion 8 on SBS 2003 Premium for 6 months with no problems.  When we finally decided to cut over to SBS 2008, that’s when everything went to hell.  I tried for weeks to get Coldfusion 8 to install properly on the new SBS 2008 64-bit box.  During the course which, I found bits and pieces of information for Vista 64-bit and Windows Server 2008 64-bit installations.  There are some distinct differences, however, with SBS 2008 since it runs core Web applications like OWA, RWW and Companyweb.  After countless unsuccessful attempts, one of which completed corrupted the box, I found the solution.
    I have attempted in this white paper to detail the steps to assist others who may be in a similar situation.  I don’t make any warranty for the information, but so long as you follow the steps carefully you should be fine.  BTW, for those of you who say Adobe offers free technical support for licensed users, that’s not entirely true.  Like I said, I purchased CF8 and originally installed it on an SBS 2003 Premium box.  After we cut over to SBS 2008 and encountered problems, Adobe wouldn’t provide any technical support without charging.  Moreover, based on my initial conversations with Adobe’s technical team, no one seemed to know much about running 64-bit on SBS.
    From my understanding, only two versions of Coldfusion 8 can be installed in 64-bit: Enterprise and Developer.  The “normal” install (which I paid a grand for) can only be deployed in 32-bit mode – gee, THANKS Adobe!  By the way, in Developer mode only two distinct IPs can access the site in addition to the localhost.  Any additional IPs will result in a CFML error message stating that the maximum number of IPs have been exceeded.  At any rate, take your time and follow the steps to achieve a successful installation. 
    PRE-INSTALLATION TASKS
    Back Up SBS
    It’s always a good practice to backup your server before deploying any kind of major system changes.  Although this step is optional, I recommend it in case you need to restore your server for any reason.  Bear in mind, if your system ever gets totally corrupted, you cannot restore back from the twice daily incremental backup images alone.  You will need a full backup with system recovery information to restore.  Here are the basic steps:
    Click: Start > Programs > Administrative Tools.  Right-click “Windows Server Backup” and choose “Run as administrator”.
    Click “Backup Once” under Actions in the right-hand pane.
    Choose the “Different Options” radio button under Backup Options.
    Choose the “Custom” radio button.  What we’re primarily interested in here is backing up the OS – not your data partitions or attached drives.
    Select the “SYSTEM (C)” checkbox, uncheck any others.  Also, ensure that the “Enable system recovery” checkbox is selected before continuing on.
    Under ‘Specify Destination Type’, I usually select the “Local drives” radio button and point it to a Terrabyte USB drive I use for backups.  You can point this to a tape drive, or select the “Remote shared folder” radio button if you map to a UNC path to store your backup images.  Just remember, make sure that whatever path you select can readily be accessed in the event of an emergency.  Also, make sure the “Verify after writing (recommended)” checkbox is selected.
    Under ‘Specified Advanced Option’, I usually select the “VSS full backup” radio button instead of the default since I don’t use a 3rd party backup product.  If like me you rely solely on SBS for your backups, choose the full backup option.
    Confirm everything and click “Backup”.  This process may take several hours depending on the size of your system.
    Verify ISAPI Filters:
    In IIS Manager, double-click the server instance in the left-hand pane.
    In the center pane under IIS, double click the “Modules” icon to verify that the ISAPI native modules are already installed for IIS.  If it’s set up correctly you should see two entries:
    IsapiFilterModule              %windir%\System32\inetsrv\filter.dll
    IsapiModule                        %windir%\System32\inetsrv\isapi.dll
    If either of these modules are missing, you will need to re-install these (google for a solution).
    Set Up Development Environment
    Create a directory for your CFML files outside of the default Windows location (e.g., default is usually C:\inetpub\wwwroot\).  For the purpose of our install, I created a directory on a separate disk called: D:\DEV.
    Copy and paste your CFML files and directories into the new DEV root Web directory.  This will eventually be the directory where the Coldfusion installer places the CFIDE and CFDOCS folders. 
    Open IIS Manager and double-click the server instance in the left hand pane.  Expand the “Sites” folder.  Right-click the Sites folder and select “Add Web Site”.
    Enter a name in the “Site Name” box (e.g., “test-site”).  You will notice that the system will automatically create a corresponding Application Pool with the same name.  NOTE: this is important to prevent conflicts between the DefaultAppPool (needed for SBS Web apps like OWA, RWW, etc.) and the application pool needed for Coldfusion to function properly in SBS 2008.
    Point the “Physical Path” to the directory you created in step #1 above (e.g., “D:\DEV”).
    Don’t worry about testing the connection.  If you click “Test Settings” you may receive a warning that IIS cannot verify access to path (D:\DEV).  Don’t worry about this for the time being.
    Under “Host name”, enter a DNS path to your site (e.g., “dev.test-site.com”).  Click “OK”.
    Configure Application Pools for Installation
    In IIS Manager, double-click the server instance in the left-hand pane.  Click on “Application Pools” to display the list of server application pools in the center pane.
    In the “Actions” pane on the right-hand side, click “Set Application Pool Defaults”.
    Change “Enable 32-Bit Applications” - the second item from the top – from “False” to “True”, and then click “OK”.  NOTE: if you skip this step, Coldfusion will not properly create the required mappings during the install. We will change this setting back after the installation completes – more on this later.
    Modify the application.host.config File for 64-Bitness
    Click: Start > Programs > Accessories.  Right-click “Notepad” and choose “Run as administrator”.
    Open the config file from within Notepad – default location: C:\Windows\System32\inetsrv\config\applicationHost.config
    Do a search and change this one line from:
    <add name="PasswordExpiryModule" image="C:\Windows\system32\RpcProxy\RpcProxy.dll" />
    To this:
    <add name="PasswordExpiryModule" image="C:\Windows\system32\RpcProxy\RpcProxy.dll" preCondition="bitness64" />
    Restart the IIS Admin service.
    Set HTTP Compression
    According to some threads I read, the http compression module can cause errors if you don’t disable it globally. To remedy this, perform the following:
    Click: Start > Programs > Accessories.  Right-click “Command Prompt” and choose “Run as administrator”.
    At the command prompt, change directory to intetsrv by typing: cd inetsrv
    Run the following command:
    C:\Windows\system32\inetsrv>appcmd.exe set config -section:system.webServer/httpCompression /-[name='xpress']
    This will turn off HTTP compression for all sites in IIS.
    In IIS Manager, double-click the server instance in the left-hand pane.  Double-click the “Compression” icon in the IIS section of the center pane.
    Uncheck all of the boxes, then click the “Apply” button under Actions in the right-hand pane.
    Recheck all of the boxes, then click the “Apply” button under Actions in the right-hand pane.
    Restart the IIS Admin service.  This should enable compression and coldfusion to work at the same time.
    NOTE: if for some reason you need to reverse this, run the following command from the command prompt:
    C:\Windows\system32\inetsrv\appcmd.exe set config -section:system.webServer/httpCompression /+[name='xpress',doStaticCompression='false',dll='%windir%\system32\inetsrv\suscomp.dll']
    INSTALLATION TASKS
    Download the 64-bit installation package from Adobe – filename: coldfusion-801-wind64.exe.
    Right-click the file and select “Run as administrator”.
    Accept the terms of the License Agreement.
    If you have an Enterprise license, enter it.  For our purposes, just click the “Developer Edition” checkbox.
    Select “Server configuration” – the default radio button.
    I deselected all subcomponents and can’t guarantee that you’ll arrive at the same results if you select additional items like “.NET Integrated Services”.  It should be fine, particularly if you install documentation.  My preference was to keep the install as plain vanilla as possible.
    Select the directory path for Coldfusion to install into – default is :C\Coldfusion
    THE NEXT TWO STEPS ARE CRITICAL TO YOUR SUCCESS.  Unselect “All IIS Websites” and select the “Configure specific IIS Website or another web server” radio button.  Click “Add”, and then select your test Web site (e.g., “test-site”) under “IIS Web Site”.  Hit “OK”.
    Do NOT use the default directory path for the CF Administrator location (e.g., default path: “C:\inetpub\wwwroot”).  Instead, point the installer to your new DEV root Web directory (e.g., “D:\DEV”).  The bottom line, you want the installer to place the CFIDE directory and files within this folder, alongside your other CFML files and folders.
    Enter an Administrator password.
    Choose to Enable RDS, or not.  I enable this by preference but it is not required.  This allows you to make updates to files using a CFML editor directly vs. having to move/FTP the files over if you’re working remotely.  Opponents to this argue that it’s potentially less secure, but for a lower environment I don’t see this as a major concern.
    Confirm everything to kick off the install.
    If all goes well you should see a message at the end stating that the install was successful.  I recommend you uncheck the box that asks you to open the CF Administrator in the default Web browser after the install.  NOTE: we will open it a different way during the post-installation tasks.  The worst thing that will happen if you forget to uncheck the box is that you might receive an error that the command prompt hung – not a big deal – just close it and move on to the next (final) steps.
    POST-INSTALLATION TASKS
    Verify CF Installation:
    The installation will create a new folder in your program group: Start > Programs > Adobe > Coldfusion 8.  The default “Administrator” link will not work because it points to the wrong path: http://127.0.0.1/CFIDE/administrator/index.cfm. The “127.0.0.1” or “localhost” path as you may recall in IIS, points by default to the “C:\inetpub\wwwroot” directory.  Our CFIDE files, however, are located within: D:\DEV.
    To bring up the CF Administrator logon page, open up a Web browser and replace the “http://127.0.0.1” part of the path with the DNS path name to your CF environment (e.g., http://dev.test-site.com/CFIDE/administrator/index.cfm).
    This should bring up the Coldfusion Administrator Login screen.  Enter in the Administrator password you created during the install to log in and configure your application server.
    Verify that your test-site renders correctly by typing in your test URL into a Web browser (e.g., http://dev.test-site.com).
    Fix Application Pool Defaults to Re-enable SBS Web Applications:
    At this point, Coldfusion Administrator and your test CMFL Web site should be working properly.  The problem is, default SBS Web applications like OWA, RWW and Companyweb will throw errors and fail to start.  Fortunately, this is easily remedied by performing the following steps:
    In IIS Manager, double-click the server instance in the left-hand pane.  Click on “Application Pools” to display the list of server application pools in the center pane.
    In the “Actions” pane on the right-hand side, click “Set Application Pool Defaults”.
    Change “Enable 32-Bit Applications” - the second item from the top – from “True” to “False” this time.  This should re-enable the SBS applications, which would otherwise result in 500 errors (e.g., OWA, RWW, Companyweb, etc.).  There is no need to restart IIS.
    Open a Web browser and test that you can once again connect to OWA, RWW and Companyweb successfully.
    In IIS click to highlight the application pool for your new site (e.g., “test-site”).  In the right-hand pane, click “Advanced Settings”.  Ensure that “Enable 32-Bit Applications” – second item from the top – is set to “True” for this application pool specifically.
    Lastly, jump up and down for joy!  Hopefully now, everything is working.  Best of luck!! ..Paul D (MCP).

    First, it would be a good idea for you to specify what distro of Linux you're using, as not all are supported by Adobe.
    Second, this is probably your problem right here:
    http://askubuntu.com/questions/40416/why-is-lib-libc-so-6-missing
    In a nutshell, CF expects the 32-bit version of libc.so.6 to be in /lib, but it's probably not. You might be able to modify the installer to point to the correct location for that file, or you might be able to create a symlink to the file - but as the above link describes, creating a symlink might have negative consequences.
    As for installing CF 8 64-bit, that's only available with Enterprise, not Standard. If you want CF Standard 64-bit, you need to upgrade to CF 9.
    Dave Watts, CTO, Fig Leaf Software

  • Problem setting up ColdFusion on Windows 7 and IIS

    Using Windows 7 version 6.1 Build 7601 Service Pack 1 on a Dell N5110 Laptop running an Intel Core i5-2430M CPU @ 2.4 GHz and 6 GB RAM, 64-bit OS.
    Under Control Panel > Programs > Turn Windows Features On and Off > Internet Information Services I have turned on all the features and subfeatures EXCEPT for FTP Server.  Internet Information Services Hostable Web Core is also turned ON though it's unclear whether it's necessary or not.
    Installed ColdFusion version 10 after enabling IIS as described above.
    Used instructions at http://learn.iis.net/page.aspx/266/troubleshooting-failed-requests-using-tracing-in-iis/ to set up and test tracing, working around all the ambiguities and errors there until tracing actually worked as described for a 404.2 error on a .asp file. THEN reset the trace to work on all 500 errors for ISAPI Extension and WWW Server. 
    Ran the Web Server Configuration Tool for ColdFusion as described at http://help.adobe.com/en_US/ColdFusion/10.0/Installing/WSc3ff6d0ea77859461172e0811cdec18a1 5-7ffb.html to configure IIS for ColdFusion in Windows. Then these parts of the configuration were possible to verify at C:\ColdFusion10\config\wsconfig :
    Verify your IIS configuration
    Verify that the following folder was created: cf_root/config/wsconfig/number.
    To set the <samp class="codeph">connectionpooltimeout</samp> and <samp class="codeph">reuseconnectioncount</samp> click on Advanced Setting tab. The option to enable buffering and verbose debugging is available on the same page.
    Configuring IIS:
    Creates a folder <samp class="codeph">1</samp> in <samp class="codeph">cfroot\config\wsconfig</samp>, that contains all connector-related files. 
    Creates a virtual directory <samp class="codeph">Jakarta</samp> in <samp class="codeph">cfroot\config\wsconfig</samp> (in IIS). 
    Adds an entry, <samp class="codeph">tomcat</samp>, under the<samp class="codeph"> ISAPI FILTERS</samp>. This points to <samp class="codeph">cfroot\config\wsconfig\1\isapi_redirect.dll</samp>.
    Some of the parts of the verification process were skipped, for the reasons described :
    Adds an entry, <samp class="codeph">tomcat</samp>, to  <samp class="codeph">cfroot\config\wsconfig\1\isapi_redirect.dll</samp> with permission <samp class="codeph">allowed</samp> under ISAPI and CGI Restrictions. It is applicable for global sites in IIS manager.
    No kind of 'entry' is possible for the specified .dll at that location under its Properties, nor can permissions be allowed under Properties for anything remotely resembling 'ISAPI and CGI Restrictions'.  There is nothing resembling "Global Sites" in IIS manager either where this information might be found.
    Adds the following <samp class="codeph">isapi</samp> handlers: <samp class="codeph">cfcHandler</samp>, <samp class="codeph">cfmHandler</samp>, <samp class="codeph">cfmlHandler</samp>, <samp class="codeph">cfrHandler</samp>, and <samp class="codeph">cfswfHandler</samp>.
    The logical place for these "handlers" would be in IIS but there is no description provided for where they might be found and searching around provides no clues so this is impossible to verify as well.
    For debugging issues, set the log level to <samp class="codeph">debug</samp>, in the <samp class="codeph">isapi_redirect.properties</samp> file present in the <samp class="codeph">cfroot\config\wsconfig\1\ </samp>directory.
    This was done and these are the contents of that file:
    extension_uri= /jakarta/isapi_redirect.dll
    log_file= C:\ColdFusion10\config\wsconfig\1\isapi_redirect.log
    log_level= debug
    worker_file= C:\ColdFusion10\config\wsconfig\1\workers.properties
    worker_mount_file= C:\ColdFusion10\config\wsconfig\1\uriworkermap.properties
    iis_buffer_enable= true
    To disable webserver buffer, change the <samp class="codeph">is_buffer_enable</samp> to <samp class="codeph">false</samp> in the <samp class="codeph">cfroot\config\wsconfig\1\isapi_redirect.properties</samp> file. Disable webserver buffer if you want <samp class="codeph">cfflush</samp> to work over an IIS connector. If your application does not use <samp class="codeph">cfflush</samp>, set it to <samp class="codeph">true</samp> for increase in the performance.
    This was left on 'true' as shown in the file contents above.
    THIS IS THE ERROR NOW OBTAINED at http://127.0.0.1/CFIDE/administrator/index.cfm:
    Server Error in Application "DEFAULT WEB SITE"
    Internet Information Services 7.5
    <fieldset><legend>Error Summary</legend>
    HTTP Error 500.0 - Internal Server Error
    The page cannot be displayed because an internal server error has occurred.
    </fieldset>
    <fieldset><legend>Detailed Error Information</legend>
    Module
    IsapiModule
    Notification
    ExecuteRequestHandler
    Handler
    cfmHandler
    Error Code
    0x800700c1
    Requested URL
    http://127.0.0.1:80/CFIDE/administrator/index.cfm
    Physical Path
    C:\ColdFusion10\cfusion\wwwroot\CFIDE\administrator\index.cfm
    Logon Method
    Anonymous
    Logon User
    Anonymous
    Failed Request Tracing Log Directory
    C:\inetpub\logs\FailedReqLogFiles
    </fieldset>
    The supplied path C:\inetpub\logs\FailedReqLogFiles is a nonresponsive link but there are .xml files created in that subdirectory such as C:\inetpub\logs\FailedReqLogFiles\W3SVC1\fr000015.xml which contains this information:
    Request Diagnostics for http://127.0.0.1:80/CFIDE/administrator/index.cfm
    STATUS_CODE 500, 46 ms, GET (2012-8-16, 16:59:5:778)
    Request
    Summary
    Request
    Details
    Compact
    View
    Complete
    Request Trace
    Filter
    Notifications
    Module
    Notifications
    Performance
    View
    Authentication
    Authorization
    ASP.Net
    Page Traces
    Custom
    Module Traces
    FastCGI
    Module
    <fieldset>
    <legend>-Request Summary</legend>
    Site
    1
    Process
    8472
    Failure Reason
    STATUS_CODE
    Trigger Status
    500
    Final Status
    500
    Time Taken
    46 msec
    Url
    http://127.0.0.1:80/CFIDE/administrator/index.cfm
    App Pool
    DefaultAppPool
    Authentication
    anonymous
    User from token
    NT AUTHORITY\IUSR
    Activity ID
    {00000000-0000-0000-6F00-0080000000FB}
      </fieldset>
    No.
    EventName
    Details
    Time
    1.
    i
    GENERAL_REQUEST_START
    SiteId="1", AppPoolId="DefaultAppPool", ConnId="1610612845", RawConnId="0", RequestURL="http://127.0.0.1:80/CFIDE/administrator/index.cfm", RequestVerb="GET"
    16:59:05.778
    2.
    GENERAL_SET_REQUEST_HEADER
    HeaderName="AspFilterSessionId", HeaderValue="", Replace="true"
    16:59:05.778
    3.
    i
    GENERAL_ENDPOINT_INFORMATION
    RemoteAddress="127.0.0.1", RemotePort="50289", LocalAddress="127.0.0.1", LocalPort="80"
    16:59:05.778
    4.
    i
    GENERAL_REQUEST_HEADERS
    Headers="Cache-Control: max-age=0 Connection: keep-alive Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Encoding: gzip, deflate Accept-Language: en-us,en;q=0.5 Host: 127.0.0.1 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0.1 DNT: 1 "
    16:59:05.778
    5.
    i
    GENERAL_GET_URL_METADATA
    PhysicalPath="", AccessPerms="517"
    16:59:05.778
    6.
    i
    HANDLER_CHANGED
    OldHandlerName="", NewHandlerName="cfmHandler", NewHandlerModules="IsapiModule", NewHandlerScriptProcessor="C:\ColdFusion10\config\wsconfig\1\isapi_redirect.dll", NewHandlerType=""
    16:59:05.778
    7.
    i
    USER_SET
    AuthType="", UserName="", SupportsIsInRole="true"
    16:59:05.778
    8.
    i
    GENERAL_SEND_CUSTOM_ERROR
    HttpStatus="500", HttpSubStatus="0", FileNameOrURL="500.htm"
    16:59:05.824
    9.
    i
    GENERAL_FLUSH_RESPONSE_START
    16:59:05.824
    10.
    i
    GENERAL_RESPONSE_HEADERS
    Headers="Cache-Control: private Content-Type: text/html; charset=utf-8 Server: Microsoft-IIS/7.5 X-Powered-By: ASP.NET "
    16:59:05.824
    11.
    GENERAL_RESPONSE_ENTITY_BUFFER
    Buffer="<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>IIS 7.5 Detailed Error - 500.0 - Internal Server Error</title> <style type="text/css"> <!-- body{margin:0;font-size:.7em;font-family:Verdana,Arial,Helvetica,sans-serif;background:#CBE1EF;} code{margin:0;color:#006600;font-size:1.1em;font-weight:bold;} .config_source code{font-size:.8em;color:#000000;} pre{margin:0;font-size:1.4em;word-wrap:break-word;} ul,ol{margin:10px 0 10px 40px;} ul.first,ol.first{margin-} fieldset{padding:0 15px 10px 15px;} .summary-container fieldset{padding-bottom:5px;margin-} legend.no-expand-all{padding:2px 15px 4px 10px;margin:0 0 0 -12px;} legend{color:#333333;padding:4px 15px 4px 10px;margin:4px 0 8px -12px;_margin- border-border-border-right:1px solid #969696; border-bottom:1px solid #969696;background:#E7ECF0;font-weight:bold;font-size:1em;} a:link,a:visited{color:#007EFF;font-weight:bold;} a:hover{text-decoration:none;} h1{font-size:2.4em;margin:0;color:#FFF;} h2{font-size:1.7em;margin:0;color:#CC0000;} h3{font-size:1.4em;margin:10px 0 0 0;color:#CC0000;} h4{font-size:1.2em;margin:10px 0 5px 0; }#header{width:96%;margin:0 0 0 0;padding:6px 2% 6px 2%;font-family:"trebuchet MS",Verdana,sans-serif; color:#FFF;background-color:#5C87B2; }#content{margin:0 0 0 2%;} .summary-container,.content-container{background:#FFF;width:96%;margin-padding:10px;} .config_source{background:#fff5c4;} .content-container p{margin:0 0 10px 0; }#details-left{width:35%;float:left;margin-right:2%; }#details-right{width:63%;float:left; }#server_version{width:96%;_height:1px;min-height:1px;margin:0 0 5px 0;padding:11px 2% 8px 2%;color:#FFFFFF; background-color:#5A7FA5;border-bottom:1px solid #C1CFDD;border-font-weight:normal; font-size:1em;color:#FFF;text-align:right; }#server_version p{margin:5px 0;} table{margin:4px 0 4px 0;width:100%;border:none;} td,th{vertical-align:top;padding:3px 0;text-align:left;font-weight:bold;border:none;} th{width:30%;text-align:right;padding-right:2%;font-weight:normal;} thead th{background-color:#ebebeb;width:25%; }#details-right th{width:20%;} table tr.alt td,table tr.alt th{background-color:#ebebeb;} .highlight-code{color:#CC0000;font-weight:bold;font-style:italic;} .clear{clear:both;} .preferred{padding:0 5px 2px 5px;font-weight:normal;background:#006633;color:#FFF;font-size:.8em;} --> </style>  </head> <body> <div id="header"><h1>Server Error in Application "DEFAULT WEB SITE"</h1></div> <div id="server_version"><p>Internet Information Services 7.5</p></div> <div id="content"> <div class="content-container"> <fieldset><legend>Error Summary</legend> <h2>HTTP Error 500.0 - Internal Server Error</h2> <h3>The page cannot be displayed because an internal server error has occurred.</h3> </fieldset> </div> <div class="content-container"> <fieldset><legend>Detailed Error Information</legend> <div id="details-left"> <table border="0" cellpadding="0" cellspacing="0"> <tr class="alt"><th>Module</th><td>IsapiModule</td></tr> <tr><th>Notification</th><td>ExecuteRequestHandler</td></tr> <tr class="alt"><th>Handler</th><td>cfmHandler</td></tr> <tr><th>Error Code</th><td>0x800700c1</td></tr>  </table> </div> <div id="details-right"> <table border="0" cellpadding="0" cellspacing="0"> <tr class="alt"><th>Requested URL</th><td>http://127.0.0.1:80/CFIDE/administrator/index.cfm</td></tr> <tr><th>Physical Path</th><td>C:\ColdFusion10\cfusion\wwwroot\CFIDE\administrator\index.cfm</td></tr> <tr class="alt"><th>Logon Method</th><td>Anonymous</td></tr> <tr><th>Logon User</th><td>Anonymous</td></tr> <tr class="alt"><th>Failed Request Tracing Log Directory</th><td><a href="file://C:\inetpub\logs\FailedReqLogFiles">C:\inetpub\logs\FailedReqLogFiles</a></td></tr> </table> <div class="clear"></div> </div> </fieldset> </div> <div class="content-container"> <fieldset><legend>Most likely causes:</legend> <ul> %09<li>IIS received the request; however, an internal error occurred during the processing of the request. The root cause of this error depends on which module handles the request and what was happening in the worker process when this error occurred.</li> %09<li>IIS was not able to access the web.config file for the Web site or application. This can occur if the NTFS permissions are set incorrectly.</li> %09<li>IIS was not able to process configuration for the Web site or application.</li> %09<li>The authenticated user does not have permission to use this DLL.</li> %09<li>The request is mapped to a managed handler but the .NET Extensibility Feature is not installed.</li> </ul> </fieldset> </div> <div class="content-container"> <fieldset><legend>Things you can try:</legend> <ul> %09<li>Ensure that the NTFS permissions for the web.config file are correct and allow access to the Web server's machine account.</li> %09<li>Check the event logs to see if any additional information was logged.</li> %09<li>Verify the permissions for the DLL.</li> %09<li>Install the .NET Extensibility feature if the request is mapped to a managed handler.</li> %09<li>Create a tracing rule to track failed requests for this HTTP status code. For more information about creating a tracing rule for failed requests, click <a href="http://go.microsoft.com/fwlink/?LinkID=66439">here</a>. </li> </ul> </fieldset> </div>   <div class="content-container"> <fieldset><legend>Links and More Information</legend> This error means that there was a problem while processing the request. The request was received by the Web server, but during processing a fatal error occurred, causing the 500 error. <p><a href="http://go.microsoft.com/fwlink/?LinkID=62293&IIS70Error=500,0,0x800700c1,7601">View more information &raquo;</a></p> <p>Microsoft Knowledge Base Articles:</p> <ul><li>294807</li></ul>  </fieldset>  </div> </div> </body> </html> "
    16:59:05.824
    12.
    i
    GENERAL_FLUSH_RESPONSE_END
    BytesSent="6414", ErrorCode="The operation completed successfully. (0x0)"
    16:59:05.824
    13.
    i
    GENERAL_REQUEST_END
    BytesSent="6414", BytesReceived="348", HttpStatus="500", HttpSubStatus="0"
    16:59:05.824
    +Expand All  <fieldset> <legend>Errors & Warnings</legend>
    </fieldset>
    There is nothing under Errors & Warnings.  Dead Stop.  Nothing Else To Do except Ask For Help.  Hoping someone here can provide some guidance.
    TIA

    Hi
    Can you please try setting up full persmission in the security properties for everyone on the wsconfig folder C:\ColdFusion10\config\wsconfig  and restart ColdFusion Server.
    Swaraj

  • Coldfusion 10 will not start

    I am running CF 10 on Redhat Linux 6 and everything was working fine until recently, but now I cannot get CF to start up.  I had created a datasource to connect to a unidata database and it was not working, so I needed a newer version of the database driver.  I got the new version of the driver (the 2 files needed for the driver are unijdbc.jar and asjava.zip).  I placed the files in the location where I've always placed them while using CF 8:
    /opt/coldfusion10/cfusion/wwwroot/WEB-INF/classes/unijdbc.jar,/opt/coldfusion10/cfusion/ww wroot/WEB-INF/classes/asjava.zip,"%CLASSPATH%"
    and set the class path in the CF Administrator accordingly, then stopped and started CF, and it came up fine, but the datasource to unidata would not verify (see my other recent forum post) -- in reply to that post, someone had recommended I put the drivers in a different location, so I did that, and set the classpath accordingly:
    /opt/coldfusion10/cfusion/runtime/lib/unijdbc.jar,/opt/coldfusion10/cfusion/runtime/lib/as java.zip,"%CLASSPATH%"
    then stopped and started CF, and it came up without problem, but datasource still would not connect. 
    So, I made one more change to the classpath and took the "" off the end so it looks like this:
    /opt/coldfusion10/cfusion/runtime/lib/unijdbc.jar,/opt/coldfusion10/cfusion/runtime/lib/as java.zip,%CLASSPATH%
    and then instead of doing "service coldfusion_10 stop" and "service coldfusion_10 start" as I had been doing, I decided to try "service coldfusion_10 restart".  It said it was stopping CF but then could not start it.  I don't have the exact error but it did end with this:
    The ColdFusion 10 server instance named cfusion is starting up and will be available shortly.
    There has been an error starting ColdFusion 10 server instance named cfusion, please check the logs.
    So I thought perhaps the "restart" left a pid or something hanging and it did not completely shut down, so it could not restart, although it would not let me do the stop command either, nor were there any coldfusion processes running on the server.  So I decided to reboot the server to see if that would help, it did not -- after the server came back up, I tried starting coldfusion again, and keep getting this error: 
    [root@ctc3650z selinux]# service coldfusion_10 start
    Starting ColdFusion 10 server instance named cfusion ...
    nohup: ignoring input and appending output to `nohup.out'
    sh: /opt/coldfusion10/cfusion/runtime/lib/asjava.zip: cannot execute binary file
    sh: line 0: bg: no job control
    The ColdFusion 10 server instance named cfusion is starting up and will be available shortly.
    There has been an error starting ColdFusion 10 server instance named cfusion, please check the logs.
    [root@ctc3650z selinux]#
    I cannot get into the coldfusion administrator to change the classpath, but it does not appear to like the asjava.zip file, which it had no problem wtih before (is same file).  I do not understand this error:
    sh: /opt/coldfusion10/cfusion/runtime/lib/asjava.zip: cannot execute binary file
    Also it says "please check the logs" ... I have looked at all the logs under /opt/coldfusion10/cfusion/logs and nothing in them references this error.
    Here is the entry in the /opt/coldfusion10/cfusion/bin/nohup.out:
    Usage: java [-options] class [args...]
               (to execute a class)
       or  java [-options] -jar jarfile [args...]
               (to execute a jar file)
    where options include:
        -d32          use a 32-bit data model if available
        -d64          use a 64-bit data model if available
        -server       to select the "server" VM
                      The default VM is server.
        -cp <class search path of directories and zip/jar files>
        -classpath <class search path of directories and zip/jar files>
                      A : separated list of directories, JAR archives,
                      and ZIP archives to search for class files.
        -D<name>=<value>
                      set a system property
        -verbose[:class|gc|jni]
                      enable verbose output
        -version      print product version and exit
        -version:<value>
                      require the specified version to run
        -showversion  print product version and continue
        -jre-restrict-search | -jre-no-restrict-search
                      include/exclude user private JREs in the version search
        -? -help      print this help message
        -X            print help on non-standard options
        -ea[:<packagename>...|:<classname>]
        -enableassertions[:<packagename>...|:<classname>]
                      enable assertions
        -da[:<packagename>...|:<classname>]
        -disableassertions[:<packagename>...|:<classname>]
                      disable assertions
        -esa | -enablesystemassertions
                      enable system assertions
        -dsa | -disablesystemassertions
                      disable system assertions
        -agentlib:<libname>[=<options>]
                      load native agent library <libname>, e.g. -agentlib:hprof
                        see also, -agentlib:jdwp=help and -agentlib:hprof=help
        -agentpath:<pathname>[=<options>]
                      load native agent library by full pathname
        -javaagent:<jarpath>[=<options>]
                      load Java programming language agent, see java.lang.instrument
        -splash:<imagepath>
                      show splash screen with specified image
    [root@ctc3650z logs]#
    Can anyone help?  Thank you very much, and sorry so wordy...
    Julie

    I fixed it myself!!  I could not get back into the CF Admin to undo the syntax change on the classpath on the Java/JVM page, since CF was down, so I dug around on the server and found this file:  /opt/coldfusion10/cfusion/bin/jvm.config  which is the contents of that screen.  I edited it with vi and undid the syntax change I did, then I was able to start up coldfusion.  Still can't get my unidata datasource to connect, but that's another issue...

  • Wierd ColdFusion erro : Error occurred while processing request.

    Hi there ,
    I am a graduate student and new to ColdFusion.I started working on this already developed project by someone couple of years ago , and the client wants some changes to be done.so i went ahead and did some small modifications to the appearance of the form(insertdata.cfm page) like adding some more options to a drop down menu , changing the label names and so on and am very sure this changes would not have effected the application in any way.And the place where the message says the error can be , i didnt even touch that part.Now after 4 days i start getting this weird error saying " Error Occurred While Processing Request
    The system has attempted to use an undefined value, which usually indicates a programming error, either in your code or some system code.
    Null Pointers are another name for undefined values."
    And this happens randomly not everytime i access the website or different webpages.Here are the errors.
    The error occurred in /export/web/virtual/web3_unt_edu/cps/webaccess/sites/Amarillo/index.cfm: line 8
    5 :   SELECT UserName,Password FROM user_data WHERE UserName=
    6 :   <cfqueryparam value="#FORM.UserName#" maxlength="8">
    7 :     AND Password=
    8 :   <cfqueryparam value="#FORM.Password#" maxlength="8">
    9 :   </cfquery>
    10 :   <cfif MM_rsUser.RecordCount NEQ 0>
    I tried adding " cfsqltype="cf_sql_clob"  " in cfqueryparam also on my friends advice , but it doesnt work out.
    2nd ERROR
    The error occurred in /export/web/virtual/web3_unt_edu/cps/webaccess/sites/Amarillo/InsertData.cfm: line 13
    11 :   <cflocation url="#MM_failureURL#" addtoken="no">
    12 : </cfif>
    13 : <cfquery name="rsDay" datasource="cps">
    14 : SELECT days FROM days
    15 : </cfquery>
    3rd ERROR
    The error occurred in /export/web/virtual/web3_unt_edu/cps/webaccess/sites/Amarillo/InsertData.cfm: line 27
    25 : ORDER BY ethnicity ASC
    26 : </cfquery>
    27 : <cfquery name="rsHospitals" datasource="cps_amarillo">
    28 : SELECT *
    29 : FROM hospitals
    Can anyone help me with this. I have to get the modifications done in 2 weeks.
    Thank you
    Craj

    Hi Mak
             I can get the stack trace for now , but here is my complete code , may be this ll give u complete idea .........
    The index page where i am getting the first error
    <cfif IsDefined("FORM.UserName")>
      <cfset MM_redirectLoginSuccess="menu.cfm">
      <cfset MM_redirectLoginFailed="../../fail.htm">
      <cfquery  name="MM_rsUser" datasource="cps_amarillo">
        SELECT UserName,Password FROM user_data WHERE UserName=
      <cfqueryparam value="#FORM.UserName#" maxlength="8">
        AND Password=
      <cfqueryparam value="#FORM.Password#" maxlength="8">
      </cfquery>
      <cfif MM_rsUser.RecordCount NEQ 0>
        <cftry>
          <cflock scope="Session" timeout="30" type="Exclusive">
            <cfset Session.MM_Username=FORM.UserName>
            <cfset Session.MM_UserAuthorization="">
          </cflock>
          <cfif IsDefined("URL.accessdenied") AND true>
            <cfset MM_redirectLoginSuccess=URL.accessdenied>
          </cfif>
          <cflocation url="#MM_redirectLoginSuccess#" addtoken="no">
          <cfcatch type="Lock">
            <!--- code for handling timeout of cflock --->
          </cfcatch>
        </cftry>
      </cfif>
      <cflocation url="#MM_redirectLoginFailed#" addtoken="no">
      <cfelse>
      <cfset MM_LoginAction=CGI.SCRIPT_NAME>
      <cfif CGI.QUERY_STRING NEQ "">
        <cfset MM_LoginAction=MM_LoginAction & "?" & XMLFormat(CGI.QUERY_STRING)>
      </cfif>
    </cfif>
    <cfinclude template="../../../Connections/cps_amarillo.cfm">
    <cfif IsDefined("FORM." & "UserName")>
      <cfscript>
        MM_valUsername=Evaluate("FORM." & "UserName");
        MM_fldUserAuthorization="";
        MM_redirectLoginSuccess="menu.cfm";
        MM_redirectLoginFailed="../../fail.htm";
        MM_dataSource=MM_cps_amarillo_DSN;
        MM_queryFieldList = "UserName,Password";
        if (MM_fldUserAuthorization IS NOT "") MM_queryFieldList=MM_queryFieldList & "," & MM_fldUserAuthorization;
      </cfscript>
      <cfquery datasource=#MM_dataSource# name="MM_rsUser" username=#MM_cps_amarillo_USERNAME# password=#MM_cps_amarillo_PASSWORD#>
      SELECT #MM_queryFieldList# FROM user_data WHERE UserName='#Replace(MM_valUsername,"\'","
      ","ALL")#' AND Password='#FORM.Password#'
      </cfquery>
      <cfif MM_rsUser.RecordCount GREATER THAN 0>
        <cfscript>
          // username and password match - this is a valid user
          Session.MM_Username = MM_valUsername;
          if (MM_fldUserAuthorization IS NOT "") {
            Session.MM_UserAuthorization = MM_rsUser[MM_fldUserAuthorization][1];
          } else {
            Session.MM_UserAuthorization = "";
          if (IsDefined("accessdenied") AND true) {
            MM_redirectLoginSuccess = Evaluate("accessdenied");
        </cfscript>
        <cflocation url="#MM_redirectLoginSuccess#" addtoken="no">
      </cfif>
      <cflocation url="#MM_redirectLoginFailed#" addtoken="no">
      <cfelse>
      <cfscript>
        MM_LoginAction = CGI.SCRIPT_NAME;
        if (CGI.QUERY_STRING NEQ "") MM_LoginAction = MM_LoginAction & "?" & CGI.QUERY_STRING;
      </cfscript>
    </cfif>
    <?xml version="1.0" encoding="iso-8859-1"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>Amarillo Login Screen</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <script type="text/JavaScript">
    <!--
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    function MM_validateForm() { //v4.0
      var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
      for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
        if (val) { nm=val.name; if ((val=val.value)!="") {
          if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
            if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
          } else if (test!='R') { num = parseFloat(val);
            if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
            if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
              min=test.substring(8,p); max=test.substring(p+1);
              if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
        } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
      } if (errors) alert('The following error(s) occurred:\n'+errors);
      document.MM_returnValue = (errors == '');
    //-->
    </script>
    </head>
    <body>
    <div id="Layer2" style="position:absolute; left:26px; top:112px; width:683px; height:56px; z-index:2">
      <div align="right"><font size="+6"><strong><font color="#999999" size="5" face="Verdana, Arial, Helvetica, sans-serif">Seniors
        / Volunteers for Childhood Immunization<br />
        </font></strong></font><font color="#999999" size="5"><strong><font size="4" face="Verdana, Arial, Helvetica, sans-serif">Web
        Access Database</font></strong></font></div>
    </div>
    <div id="instructions" style="position:absolute; left:160px; top:182px; width:259px; height:30px; z-index:3"><font color="#999999" size="5"><strong><font size="4" face="Verdana, Arial, Helvetica, sans-serif">Please
      enter your user name and password...</font></strong></font></div>
    <div id="LayerLogin" style="position:absolute; left:427px; top:182px; width:310px; height:94px; z-index:4">
      <form ACTION="<cfoutput>#MM_loginAction#</cfoutput>" name="form1" id="form1" method="POST">
        <p><img src="../../../images/image14.gif" alt="" name="UserNameImg" width="150" height="21" border="0" id="UserNameImg" />
          <input name="UserName" type="text" id="UserName" size="15" maxlength="15" />
          <br />
          <img src="../../../images/image15.gif" alt="" name="PasswordImg" width="150" height="21" border="0" id="PasswordImg" />
          <input name="Password" type="password" id="Password" size="17" maxlength="15" />
        </p>
        <p align="right">
          <input name="Submit" type="submit" id="Submit" onclick="MM_validateForm('UserName','','R','Password','','R');return document.MM_returnValue" value="Log In!" />
        </p>
      </form>
    </div>
    </body>
    </html>
    I checked it again and again , but the code seems to work well on a local host ..... but not whn i upload it to server. Please let me know where i am goin wrong.
    Thank you

  • Coldfusion 64 bit windows installer stops working after recent microsoft update

    Coldfusion 64 bit windows installation stops working after recent microsoft updates and how I worked around it.
    My question is at the end.
    Trying to deploy coldfusion 9 enterprise 64 bit trial  version onto a Windows 2003 64 bit datacenter OS with all OS updates from MS (as of 4-7-2011).
    Steps taken (remember, this is all 64 bit):
    1. Installed the base OS which was slipstreamed with SP2.
    2. Checked w/ microsoft and installed 63 OS updates.
    3. Launch the CF9 trial exe.
    4. As soon as the first screen finishes (the one that looks like  it is extracting files) then the second screen pops up (the one that  simply says CF Adobe Coldfusion 9) and the progress bar quickly moves  95% to the right and the install application quits. No error, no nothing. No log file either.
    5. After a moment of incredulous silence (and retrying/rebooting,  etc), I started to google it. I found nothing. However, I did find a  post (thanks dspent!) that was helpful in that it told how he was able  to get at a log file of sorts, by pre-extracting the  coldfusion_9_WWE_win64.exe file and launching the adobe_cf.exe by hand.  (Dspent's install snafu was different than mine, but his post was very  valuable and got me started in the right direction.)
    6. Got a copy of rarunzipper and extracted the coldfusion_9_WWE_win64.exe file.
    7. From the windows directory created by step 6, I launched adobe_cf.exe.
    8. Same thing (the install application quits. No error, no nothing. No log file either.).
    9. I examine the hs_err_pidxxxx.log file (where the xxxx is a number).
    10. I see inside that file an ominous message: "A fatal error has been detected by the Java Runtime" then "Problematic frame ntdll.dll" and then "The crash happened outside the Java Virtual Machine in native code".
    11. OK, so now I am thinking ntdll.dll !! Native code !! It is like Java is telling me that for some reason it can't dance with the OS.
    12. On a hunch, I decided to test a CF install again on a server with just the base install of W3K3 64 SP2 (ie: skipping step 2 above this time).
    13. Bingo! That install works.
    14. Therefore, one of the 63 patches I had downloaded from MS had triggered a problem with the CF installer.
    15. Back on the first server (the one with the MS security  patches installed and the one that CF won't install on). In the CF file  adobe_cf.lax (one of the files extracted in step 6) there is a line that  mentions where the install gets it's java. Find that file, and check java version installer is using. It is using 1.6.0_14-b08.
    16. Off to the Java website, and there is a newer version of java (1.6.0_24-b07). Downloaded and installed it.
    17. Modify a line in adobe_cf.lax :
       before
         lax.nl.current.vm=resource\\jre\\bin\\java.exe
       after
         lax.nl.current.vm=C:\\program files\\java\\jre6\\bin\\java.exe
    (that assumes that you let step 16 install to the default location)
    Save the file.
    18. Run the install ... ** IT WORKS ** !
    Obviously, the built in java provided with the CF installer is  no longer compatible with some change introduced by some recent MS  update on the W2K3 64b SP2 platform.
    And now the interesting part. Although I forced the installer to used the new java, it did not incorporate it into the cf build (ie: in jvm.config, you still see c:/coldfusion9/runtime/jre AND the  version of java.exe that is in that directory is the original version,  not the newer version I forced the installer to use).
    On the surface, CF seems to run OK, but I have not done any application testing yet.
    And finally my
    ** QUESTION **
    Would it be appropriate to simply point the java.home var to the new java directory? I see that the directory structures and files are not exactly the same  (close though) so I certainly don't want to break things by doing this,  but instinct tells me that if the installer broke using the older  version, then something else is gonna break down the road if I don't use  the new version. On the other hand, the differences in the  directories and files is enough that it makes me very nervous, with my  limitied java skill set, to make this decision. 
    Thanks in advance!!
    Byron

    Hi Byron,
    Wow great post no doubt much of the information will be useful for those on Win03 SP2 +. Have to say not come across similar problem on Win08 r2 SP1 +.
    So to your question. Adobe security bulletin (http://kb2.adobe.com/cps/894/cpsid_89440.html) recommends running CF8 and CF9 with JVM 1.6.0_24. The bulletin does not say how to do that. I take you installed JDK and not just JRE 1.6.0_24? Post install of JDK follow these steps:
    Stop CF - SERVICES.msc stop "ColdFusion 9 Application Server".
    Take a copy of CF\runtime\bin\jvm.config - so you got a backup.
    Edit CF\runtime\bin\jvm.config find line "java.home=" and comment it out eg:
    #java.home=C:/ColdFusion9/runtime/jre
    Add new line like so and save jvm.config:
    java.home=C:/Program Files/Java/jdk1.6.0_24/jre
    Note  there the slashes and the location of the JRE (runtime) - you need to  point to the one in JDK because the other JRE in C:\Program  Files\Java\jre6 will be missing a DLL.
    Start CF via SERVICES.msc.
    HTH, Carl.

  • Windows Authentication on a Coldfusion Application

    Hi community!
    I am working on a coldfusion application and I had a meeting
    today to show my client my progress. The IT director asked if they
    could use Windows Authentication in the new program because the
    doctors and therapists forget everything. My answer was kind of
    defensive but they asked me to figure that out.
    I have no idea as where to start! Can somebody put some light
    in my head?
    Any thoughts? Any ideas? Any resources?
    I work full time in a software development company, this
    project is part of the jobs I do on the side so I can afford gas!
    he,he In my primary job we have never created a coldfusion app that
    works like that. So that's why I am confused.
    Thanks fellows!

    I use integrated Windows Authntication on my intranet. There
    is a checkbox for it under IIS.
    This allows the uername to be visible to CF using the
    #cgi.auth_user# variable.
    As for security, I maintain a data table with each username
    and appropriate permissions. In my application, I merely confirm
    that the currently logged in user is authorized for given areas of
    my site.
    Works great. The only real caveat is that some places might
    aruge that you are not verifying that the person behind the
    keyboard is really the person currently logged into that particular
    machine on the network. My defense is that this scenario is the
    responsibility of the currently logged in user, rather than the web
    developer. Your environment may dictate more stringent criteria or
    verification.
    BTW: My implementation has passed muster with our security
    audits in the medical field for the last eight or nine
    years.

Maybe you are looking for

  • Adf table columnStretching issue when using with in panel splitter

    My Scenario is like this: I have used adf table with columnStretching to last column of table. And the table is placed at second facet of panelSplitter. On load it covers full area of second facet which is pretty good. When try to collapse panelSplit

  • How do i download iTunes to my chrome computer?

    I dont know a app on my Chrome computer back up or open my itunes apps!!!!! Please help. And please add any other information that I need to know to help me!!!

  • Clip management

    My system is PC, Athlon 64x2 4600, 4GB RAM. Graphics is on motherboard at this point. 1) When I capture video, it appears in the sceneline, but even after I make clips, I cannot move them to the organizer. 2) When I attempt to import footage from ano

  • Email Attachment​s No Matter What Size will not download or open up

    My Playbook was originally able to open my email attachments from my BB phone but now I can no longer download or open any attachments - no matter what the size.  Even an attachment that is 1 KB won't open!  It just says 'Attachment too large'.  When

  • LR to PS to LR

    It is easy enough to get to PS from LR. There must be and equally simple way back to LR after editing. What is it? Many thanks, Paula