Cold Fusion - Getting Started!

First time implementing CF with PT 5. How can I use the portal's authentication to pass to my CF application?

Hi Alex,
You want to setup the portal to pass HTTP Authentication headers to your portlets. This will pass the portal user/pw stored in memory to the portlet using HTTP Auth headers. In 5.0.x, you do this by configuring the Web Service - Remote Portlet object. Once you have this setting selected, you can get the user/pw from CF's calls for the HTTP Auth headers.
ross

Similar Messages

  • Report Instance not getting started in Oracle Fusion Middleware 11g Report

    Hi
    Report Instance not getting started in Oracle Fusion Middleware 11g Report Instance Error
    Rep-50125 Java.lang.nullpointerexception
    I just installed Oracle Forms,Reports 11g 11.1.1.3.0 in my machine
    Even I started opmnctl(Oracle Process Management Control). Its too running fine.
    Please Guide me the settings need to do to start the report instance.
    Regards
    Murali N S

    Hello,
    Copy rwlpr.exe from Oracle_Home\bin to Oracle_Instance\config\reports\bin
    Regards

  • How not to use Cold Fusion and Java

    Overview
    This write up is intended to give java developers that are
    developing ColdFusion applications some beneficial information:
    things that are not documented.
    Scenario
    The company builds enterprise class web application software
    for fortune 500 companies. It had purchased a CF 7 based product,
    had and existing proprietary J2EE based product, and needed to
    integrate the two while meeting a host of new requirements. These
    requirements were based on delivering a better user experience,
    faster / cheaper integration, increased flexibility /
    configuration, useablily, decreasing maintenance costs, the ability
    to deploy in either install or ASP models. An initiative was
    started to create a new framework that integrated the best of each
    technologies. Tactically, this meant that we were to build a hybrid
    CF and java application: one that used building blocks (decoupled /
    cohesive components) that would allow applications to be rapidly
    assembled, configured and deployed. This made sense on several
    levels, the team was composed of Java and CF developers, the CF
    rapid application development was very productive, there is great
    functionality delivered in the CF platform and initial performance
    tests showed no cause for alarm
    The agreed upon design, based on requirements, and analysis
    by both the CF and Java staff has us using CF in the presentation
    layer, using a CF based MVC, use of CF based web services. The MVC
    was deployed using CFC inheritance for model objects and views made
    use of CF custom tags. The internals of the application, used a
    rules engine, some proprietary java, ORM, and other J2EE
    technology. The initial performance of the system was reasonable.
    We pushed on with product implementation.
    Then it was time to load test the application, and tune it.
    Under load the response times were orders of magnitude slower,
    sometimes the pages even timed out.
    Armed with our profiler, oracle execution plans and we
    charged ahead addressing issue after issue. Note that we took
    meticulous care in tweaking the active thread pool and ensuring
    that our CF setup was tuned for our application. None of the
    observations here are a condemnation of the language; rather they
    are aspects that, when considered together, not conducive for
    building integrated java and CF frameworks that use a structured /
    OO programming practices. Further detail can be provided on
    request.
    CFC inheritance should be avoided - resolution of variable
    scope is expensive even if properly declared.
    Since CF creates a class per method under the covers call
    stacks become very large, especially if used in a loop. This is
    nominally exacerbated by CF calls necessary to set up for the
    method call (String.toUpper()).
    Nesting of loops and if statements should be kept to a
    minimum - the conditional for each lookup of logical operator like
    LT, GT are synchronized. Under load this results in thread waits.
    Jrun has as single thread pool - both http and web service
    requests use the same pool. Under load this leads to thread
    deadlock. There are work arounds, but they are painful.
    Recursion should be avoided - we had a few recursive routines
    and these had to be rewritten.
    Custom Tags - should be used sparingly - each custom tag
    makes a synchronized call to the license server - (This may be
    fixed in CF 8)
    Summary
    In the end we got the performance to reasonable numbers, but
    we ended up moving some code to java (Custom Tags) and getting rid
    of 'good programming' practices (Inheritance, loops, etc), mandated
    proper variable scoping for those things left over. We prototyped a
    sans cold fusion implementation and had an order of magnitude
    improvement in performance and number of requests served per
    second.
    The lesson? Use Coldfusion in its sweet spot: make a query,
    iterate over the results and format for display. Extensive use of
    structure programming techniques or OO CFCs should be avoided: they
    will work but under load - but are better as a prototype. Building
    frameworks in CF? Think twice, no three times, and, if you must, be
    minimalist.
    Text

    interesting aslbert123,
    Not that I doubt you, but could you answer some questions
    about your implementation that was so slow:
    1.) Did you put your CFCs in the application or server scope?
    2.) Were you initializing your CFCs, via CreateObject or
    <cfinvoke>, on every request?
    3.) Are you sure that you were properly Var'ing every
    variable in your methods? (people typically forget about query
    names and loop iterator variables)
    4.) Could you give examples of how your inheritence was set
    up?
    5.) For CustomTags, did you call them the old <cf_tag>
    way or the newer, better-performing <cfimport> way?
    6.) How did you connect CF to Java exactly?
    Thanks,
    Aaron

  • Cold fusion 9 Installation on Windows server 2008 (IIS 7.0) - IIS websites not working ?

    I am having a 64 bit machine on which windows server 2008 R2 is installed. IIS 7.0 is configured and running on it. on which I have my organisations main website. I have to install Cold fusion on this machine as some of my site pages are designed with CF.
    I used all the default settings for installing cold fusion 9. It got completed succefully. But after I restarted my system and tried accesing my ASP.net website it was not loading the page. Text getting displayed was only as follows '<script> src="'. Later I unsistalled CF and my site was working fine.
    Please can any one guide me to successfully install Cold fusion without disturbing my main site deployed on IIS ?

    Sarfarajms, I don't recognize what about the CF install would conflict with ASP.NET, but I'll note this:
    If you downloaded CF 9 recently, you are still running 9.0--which does NOT formally support IIS 7. If you followed the steps about enabling IIS 6 compatibility and such (in the install guide or some blog entry), perhaps that caused the conflict.
    Instead, you will want to install 9.0.1 (CF 9 Updater 1, which is NOT provided in the current 9.0 install). THAT is the first release to formally support IIS 7. And if you read the updater installation guide (http://www.adobe.com/support/documentation/en/coldfusion/901/cf901install.pdf), it discusses how to deal with the upgrade depending on what you had done with respect to IIS, starting at the bottom of its page 8.
    Hope that helps.
    /charlie

  • Cold fusion 9 500 - Internal server error.

    all of a sudden none of our cfm web pages work on a windows 8 server running iis 7 .... the server shows no errors in the event viewer .... occasionally functionality comes back w/o doing anything ...... cold fusion did have all the hotfixes updated a few months ago but i cant get to the admin page to give what the version is
    thxs

    Well if you got over your misplaced indignation for a moment, let's see:
    ColdFusion is what people will google for, so in the spirit of helping others who might have the same question as you later on, spelling it right will help the community.
    Jason's observation that you give us absolutely nothing to go on so it's basically impossible to help you is a fairly poignant observation, right? You do want help? Right, so here's some suggestions:
    Articulate your issue clearly, with sufficient detail that we can help you. Read this:
    http://www.catb.org/esr/faqs/smartquestions.html
    Secondly... being rude to someone like Jason who really is one of the most helpful people on
    these forums is a pretty stupid idea. And just serves to make you look a bit of a [profanity edited out]. Esp. with the caps lock on.
    But anyway, let's call that a false start. Give us the details of your issue, and we'll try to help.
    Cheers.
    Adam
    Message was edited by: m.m.murphy

  • Cold Fusion/Flex Application Wizard crippled in Trial Version?

    Hi,
    I am using the 60 Day trial version of Flex Builder
    3/Eclipse.
    I wanted to try out the much vaunted Cold Fusion/Flex
    Application Wizard, mainly because I could not get my head around
    access from Flex to an existing CFC from the documentation alone.
    So, I followed the directions:
    Click the plus sign (+).
    In the Name: text box, enter the name for the page.
    Select the page type (master, detail, or master/detail).
    Click Edit Master Form or Edit Detail Form, depending on the
    type of form you are creating.
    The Visual Query Builder starts.
    But for me, when I click on 'Edit Master Form' the Visual
    Query Builder does not start.
    Now I have checked and confirmed that my RDS is working, and
    that I can access the database via RDS in the Eclipse RDS browser
    window. The RDS concerned is on another PC.
    The PC on which Flex Builder is installed is a Vista
    Ultimate/32 and the database is MS SQl server 2005 (running on the
    other PC). Cold Fusion 8 is installed on both PC's.
    So, my question is 'Is the CF/Flex Application wizard
    deliberately hobbled/crippled in Flex 3 Trial version, or is there
    something wrong with my installation.?
    If this works for everyone else, then how do I debug my
    installation ?
    Thanks,
    Bryn Parrott

    in addition, I can say that I installed the same flex builder
    trial on an XP machine, using its own local RDS, and found that the
    wizard worked just fine.
    So what is the variable here, why is the wizard not working
    on the vista PC ?
    Is it Vista ?
    Is it the fact that I'm trying to use RDS against a remote
    server and not the local one ?

  • Cold Fusion Communication

    I want to find out whether coldfusion can talk with SVN ,the reason is I should be able to download the component from SVN to my local system modify and then add it again to back to SVN or directly upload a new component from my local system to SVN. Basically my cold fusion application sholud be able to talk with SVN to perform the above functions.

    This is some dude named Dan's Prior Art, His site is dead but google gave a cached page...  I can imagine all kinds of mods and uses for something like this...
    Cool ColdFusion and Subversion integration
    December 5th, 2007 Dan Skaggs Leave a comment Go to comments
    I recently decided to outsource my souce code management to CVSDude. I had been running SVN on my VPS that I have at Slicehost and that had been running okay.  However, I’m only good enough at SVN administration to get the server up and running and create a few repositories and there were other things that I needed to do with SVN that I frankly didn’t have time to learn how to do.
    One of the things that I’d heard talked about that made life much easier was using Subversion’s various hooks to automate some things around different SVN events.  I emailed tech support asking how we could configure the “post-commit” hook to update the files on my VPS each time I made a commit into the SVN module.  The tech told me that they do this by configuring an HTTP call to a page (or script etc) on your server.  That page then triggers an SVN update of the specific module.
    After hearing this, I began thinking about how to use CFEXECUTE to trigger the SVN update and was actually surprised how simple it was.  My VPS runs on Fedora Core 6, so, like any *nix operating system, you need to make sure permissions on the files are set so that the user which runs ColdFusion can write to the directories.  Once that was accomplished, all it took was a few lines of code and we’re ready to start receiving HTTP callbacks from CVSDude’s servers.
    CVSDude structures their SVN URLs in the format http://username-svn.cvsdude.com/modulename (or https://).  All my modules are named in reverse domain order for the web site that it is for (for example, this one is ws.skaggsfamily.dan).  I had already checked out all my modules into a specific directory.
    The HTTP callback from CFSDude’s server has 4 URL parameters that they send over: root (full path to module), author (user), revision and date.  So all I really had to do was grab the URL.root value and extract the name of the module, pass that to the CFEXECUTE tag and, voila, automatic updating of the module immediately after the commit.
    There were only 2 gotchas that I had to figure out:
    Put the full path to the svn executable
    Add in your username and password to the string in the arguments attribute of CFEXECUTE
    The code that I used is below.  I’m sure there’s more that I could have done with it, but this is a good start I think.
    <cfif structKeyExists(URL, “date”) AND URL.date NEQ “” AND
        structKeyExists(URL,”author”) AND URL.author NEQ “” AND
        structKeyExists(URL, “revision”) AND URL.revision NEQ “” AND
        structKeyExists(URL, “root”) AND URL.root NEQ “”>
        <cfset module = replaceNoCase(URL.root, “http://username-svn.cvsdude.com/”, “”)>
        <cfexecute name=”/usr/bin/svn”
          arguments=”up /var/sites/#module# –username yourUserName –password yourPassword”
          timeout=”300″
          variable=”result”>
        </cfexecute>
        <cflog log=”Application”
          type=”information”
          text=”#URL.author#:#URL.root#:#URL.revision# – #result#”>
    <cfmail to=”[email protected]
        from=”[email protected]
        subject=”Server updated successfully”>
    The server has been successfully updated with your lastest changes. 
    Details of the update are below:
    Date: #URL.date#
    Module: #URL.root#
    Revision: #URL.revision#
    Results:
    #result#
    </cfmail>
    </cfif>

  • What's happening with cold fusion?!

    first, this very page is throwing js errors in both ie8 and firefox 24.0  , i can't reply to any posts
    then, with all this flurry of security breaches on gov websites running cold fusion, do we have a comprehensive white paper showing how to plug all the security holes that were uncovered?

    Thanks Carl,
    when clicking the reply link on the forum, in ie8 i get:
    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1;
    Trident/4.0; (R1 1.6); .NET CLR 2.0.50727; .NET CLR 3.0.04506.30;
    .NET4.0C; .NET4.0E; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729;
    InfoPath.3)
    Timestamp: Mon, 18 Nov 2013 15:26:45 UTC
    Message: Not implemented
    Line: 1616
    Char: 13546
    Code: 0
    URI:
    http://forums.adobe.com/4.5.6/resources/scripts/gen/220b1b06a29f901e1d24252ac800883e.js
    and in fireFox:
    ReferenceError: $ is not defined
    https://www.adobe.com/account/sign-in.adobedotcom.html?returnURL=%2Fcfusion%2Fmembership%2 Findex%2Ecfm%3Floc%3Den%5Fus%26nl%3D1%26ref%3Dlogin
    Line 70
    ion amariutei | [email protected] | 212-578-1011
    From:
    Carl Von Stetten <[email protected]>
    To:
    ion <[email protected]>
    Date:
    11/18/2013 11:19 AM
    Subject:
    what's happening with cold fusion?!
    Re: what's happening with cold fusion?!
    created by Carl Von Stetten in Advanced Techniques - View the full
    discussion
    Site seems to be working fine for me.  As to plugging security holes,
    there are two things you need to do:
    1.      Keep your servers updated with the latest patch(es).  If you are
    on CF10, use the built-in automatic updater.  If on CF8 or CF9, take a
    look at David Epler's Unofficial Updater project.
    2.      Follow the appropriate ColdFusion lockdown guide for the version
    you are running.
    For CF9:
    http://www.adobe.com/content/dam/Adobe/en/products/coldfusion/pdfs/910
    25512-cf9-lockdownguide-wp-ue.pdf
    For CF10:
    http://www.adobe.com/content/dam/Adobe/en/products/coldfusion/pdfs/cf1
    0/cf10-lockdown-guide.pdf
    -Carl V.
    Please note that the Adobe Forums do not accept email attachments. If you
    want to embed a screen image in your message please visit the thread in
    the forum to embed the image at
    http://forums.adobe.com/message/5851524#5851524
    Replies to this message go to everyone subscribed to this thread, not
    directly to the person who posted the message. To post a reply, either
    reply to this email or visit the message page: [
    http://forums.adobe.com/message/5851524#5851524]
    To unsubscribe from this thread, please visit the message page at [
    http://forums.adobe.com/message/5851524#5851524]. In the Actions box on
    the right, click the Stop Email Notifications link.
    Start a new discussion in Advanced Techniques at Adobe Community
    For more information about maintaining your forum email notifications
    please go to http://forums.adobe.com/thread/416458?tstart=0.
    The information contained in this message may be CONFIDENTIAL and is for the intended addressee only.  Any unauthorized use, dissemination of the information, or copying of this message is prohibited.  If you are not the intended addressee, please notify the sender immediately and delete this message.

  • Is this course using Cold Fusion.

    I'm at the point where I need to decide what to learn ,I-phone SDK or flash builder vs catalyst.
    If this course done with Cold Fusion?

    I don't have an opinion on the iPhone SDK, but I suggest you learn Flash Builder if you consider yourself a programmer and Flash Catalyst if you consider yourself a designer. Some people will likely crossover between the programs since they can work together.
    The Flex in a Week training series (http://www.adobe.com/devnet/flex/videotraining/) will teach you Flash Builder. You can learn about Flash Catalyst on the Getting Started page (http://www.adobe.com/support/flashcatalyst/gettingstarted/index.html).
    In regard to your CF question: Yes, Flex in a Week uses ColdFusion for the backend, but that doesn't really matter. The series is set up so that the focus is on the Flex code. You can use any backend technology.
    If you are already a ColdFusion developer who wants to get oriented to Flex development, you can start with the articles and tutorials on this page:
    http://www.adobe.com/devnet/flex/flex_cf.html
    There are similar pages for PHP, Java and .NET developers:
    http://www.adobe.com/devnet/flex/flex_php.html
    http://www.adobe.com/devnet/flex/flex_java.html
    http://www.adobe.com/devnet/flex/flex_net.html

  • New to cold fusion builder/eclipse (suggestion)

    as an old farthead who has been using Cold Fusion Studio/Homesite for a long time, I've decided to give Cold Fusion Builder a try.
    Unfortunately, I am a complete idiot when it comes to Eclipse.
    For those of you with lots of experience using Eclipse, I would love to see some basic tutorials (video tutorials would be fantastic) on using Cold Fusion Builder.
    I am certain that Adobe has thought of all this and will soon make some public announcements regarding Cold Fusion builder.
    If there are books, tutorials, training materials in the works for Cold Fusion Builder/ and Cold Fusion 9, please let me know.  I need a lot of help.

    If you are looking at basic videos to help you get started with ColdFusion Builder, you can see: http://labs.adobe.com/technologies/coldfusion9/videos/
    The ColdFusion Builder User Guide (available online both in HTML and PDF, and also as In-Product Help) will help you get started with ColdFusion Builder: http://help.adobe.com/en_US/ColdFusionBuilder/Using/index.html
    Since you indicate that you are new to Eclipse, you may want to pay special attention to the following topics in the User Guide:
    Introduction to ColdFusion Builder: http://help.adobe.com/en_US/ColdFusionBuilder/Using/WSf01dbd23413dda0e12bd24d3121eccf26c7- 8000.html
    ColdFusion Builder Workbench Basics: http://help.adobe.com/en_US/ColdFusionBuilder/Using/WS0ef8c004658c1089-2cf13501121af8ece2c -8000.html
    Getting Started with ColdFusion Builder: http://help.adobe.com/en_US/ColdFusionBuilder/Using/WSf01dbd23413dda0e3d098bb81213a52da18- 7ffd.html
    These topics have been written with an intent to help users new to Eclipse to get acquainted with Eclipse-specific terms and concepts and effectively use ColdFusion Builder.
    Hope this helps. And along the way, if you have any questions, do bring them up.
    Thanks,
    Mallika Yelandur

  • Modifying cold fusion script not picked up by iis

    We are running coldfusion 7, using iis6 on windows 2003 server. I am not a cold fusion developer and this is the only coldfusion script we have created by a previous developer. I needed to make some simple modifications to the script, including a change in the title. After having restarted IIS the modified script is still not showing the new title. What do I need to do for iis to show the changes in the cfm file?

    It's in the CF Administrator, which is separate from the JRun Admin Console. You can often get to the CF Administrator with a URL like this:
    http://your_server/CFIDE/administrator/
    Dave Watts, CTO, Fig Leaf Software
    http://www.figleaf.com/
    http://training.figleaf.com/
    Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
    GSA Schedule, and provides the highest caliber vendor-authorized
    instruction at our training centers, online, or onsite.
    Read this before you post:
    http://forums.adobe.com/thread/607238

  • I'm unable to connect to database thru cold fusion

    I'm unable to connect to database thru cold fusion. it
    sometiems give me an error that your uname is undefined , soemtimes
    it gives ur index page not found so i created index page also but
    still im unable to connect to database n update my records..plz
    help me out..im a fresher in cold fusion

    I am having a similar problem having CFMX 7.02 verify my SQL
    Server 2005 Data Sources.
    I am using the sa account for CF to access the db's. But i
    get the following error:
    Connection verification failed for data source: myDatabase
    java.sql.SQLException: [Macromedia][SQLServer JDBC
    Driver]Error establishing socket. Connection refused: connect
    The root cause was that: java.sql.SQLException:
    [Macromedia][SQLServer JDBC Driver]Error establishing socket.
    Connection refused: connect
    Every role in SQL Server has the sa grantor Grant enabled. I
    can also login to SQL Server with the sa account w/o a hitch.
    I don't know what else to do. The server information is set
    to the ServerName port 1433, datasource name and database name are
    the same as the database name in sql server, and the username and
    password are set for the sa account.
    Thanks!

  • Cold Fusion Mac Compat?

    Can you run the latest Cold Fusion version in association
    with CS3 Web Premium for Mac on a Mac without a Windows
    shell?

    Scooter,
    I use a Macbook Pro (OS X 10.4.9) and run CFMX 7.0.2 (on top
    of JRun 4 and NOT as a standalone web server) with no issues. I
    also have CS 2.3 Premium on my machine. I will be getting CS3 in
    about a week or two when it releases but there should be no issues
    whatsoever with this configuration.

  • Xp pro config question with cold fusion(newbie)

    Hello,
    I'm a beginner and I want to learn studio mx 2004.In trying
    to learn Macromedia MX for windows ,I've gone thru the installation
    process in the manual for installing Cold Fusion for the server
    side of things.My question is, I'm not sure if IIS is mnadatory in
    order to use cold fusion.Is it a case of using one or the other or
    is the IIS service required to run Cold Fusion? Also im using cold
    fusion5 is cold fusion mx = to cold fusion 6.1?

    Thanks for answering. Is there any benefits to running both
    servers? I
    don't want to confuse myself with too many
    options.Essentially,I could
    learn Dreamweaver (my ultimate goal) by using either
    installation.
    No, while it is possible to run multiple versions of CF, it
    takes extra
    configurations to do so. I would say this is unnecessary for
    just
    learning. I would strongly suggest upgrading. CF 5 is the
    oldest and
    most limited version of CF still officially supported by
    Adobe. The
    latest version is 7.0.2. There is a huge, major, complete
    rewrite of CF
    and many other bug fixes and enhancements between CF 5.x and
    the current
    version.
    The current version and all versions of CF are free for
    download from
    Adobe for a personal development copy. If you do so now,
    before you
    start writing code, the upgrade install IIRC is quite
    painless and will
    use the configurations you have already chosen.

  • How to change web server from inbuilt Tomcat to IIS in already configured Cold Fusion 10

    how to change web server from inbuilt Tomcat to IIS in already configured Cold Fusion 10

    You just need to run the Web Server Configuration Tool to connect ColdFusion to IIS.  It can be found in the ColdFusion program group off of the Start menu.  Be sure to run it "As Administrator".
    -Carl V.

Maybe you are looking for