ELEMENT DSN undefined in scope APPLICATION

ELEMENT DSN undefined in scope APPLICATION
Hi, I am new to Cf. My problem is as follows:
I have 2 files:
application.cfm which is inside
d:\inetpub\wwwroot\mysite\
and
main.cfc
(d:\inetpub\wwwroot\mysite\cfc)
inside application.cfm I define an application variable:
<cfset Application.DSN = "mydb">
(and mydb connections works if tested from coldfusion
administrator)
inside main.cfc I use the application variable:
<cffunction name="getLogin" access="remote"
returntype="struct" output="true">
<cfargument name="nickname" type="string"
required="true">
<cfargument name="password" type="string"
required="true">
<cfset returnedValue=structNew()>
<cfquery name="q_getLogin"
datasource="#application.DSN#">
SELECT id, nickname
from allievi
etc..
<cfreturn returnedValue>
</cffunction>
I am calling the cfc from flash, and I get the error message
ELEMENT DSN undefined in scope APPLICATION.
Anyone has an idea of what might be wrong?
Thanks in advance,
Mitja

Triple check speling too.
Windows server or something else?
Unix requires Application.cfm to have a capital A
Here's a link...
Application.cfm
on Unix Platform
At the very least try #Application.DSN#
- Travis

Similar Messages

  • I just installed Photoshop Elements that is supposed to be for Mac. The message appeared that said, ""You can't open the application Photoshop Elements 2.0 because PowerPC applications are no longer supported." I have a Mac OS X, Version 10.8.5,

    I just installed Photoshop Elements that is supposed to be for Mac. The message appeared that said, ""You can't open the application Photoshop Elements 2.0 because PowerPC applications are no longer supported." I have a Mac OS X, Version 10.8.5,

    Have a look here:
    https://www.google.com/search?q=%22You+can%27t+open+the+application+Photoshop+Elements+2.0 +because+PowerPC+applications+…

  • Unable to open website due to scope application error

    Hi guys.   I am completely new to this forum so I hope I explain this well enough.  I have an eee pc running xandrox os.  I upgraded  to firefox 3.6 today.  Now I cannot open the website surgeons.org as I get this error "the scope application has not been enabled."  I have no idea what this means or how to fix it.  Have reviewed the forum but the dicussion is beyond me.  Can anyone offer advice please. Thank you

    You are a bit unclear as to your relationship to the website in question... is it yours?  You make it sound like you're just a visitor.  If it's the latter, the only thing you can do is to contact whoever maintains the site and tell them to fix their code.
    If it's your site, then there's a big clue as to what you need to do in the next part of the error message (after the bit you quote):
    Before application variables can be used, the application state management system must be enabled using the CFAPPLICATION tag.
    That does kinda explain what you need to do.
    It would probably be useful to read up on what it's saying, starting with <cfapplication>:
    http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7d 69.html
    Or perhaps instead Application.cfc:
    http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WSc3ff6d0ea77859461172e0811cbec22c24 -7d39.html#WSc3ff6d0ea77859461172e0811cbec22c24-68e0
    And probably about the CF application framework in general (indeed the latter is a subsection of this):
    http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WSc3ff6d0ea77859461172e0811cbec22c24 -7e19.html
    Also, you should not have robust exception handling switched on on a production server.  Switch it off.
    Adam

  • A basic question/problem with array element as undefined

    Hello everybody,
    thank you for looking at my problem. I'm very new to scripting and javaScript and I've encountered a strange problem. I'm always trying to solve all my problem myself, with documentation (it help to learn) or in the last instance with help of google. But in this case I am stuck. I'm sure its something very simple and elementary.
    Here I have a code which simply loads a text file (txt), loads the content of the file in to a "var content". This text file contents a font family name, each name on a separate line, like:
    Albertus
    Antenna
    Antique
    Arial
    Arimo
    Avant
    Barber1
    Barber2
    Barber3
    Barber4
    Birch
    Blackoak ...etc
    Now, I loop trough the content variable, extract each letter and add it to the "fontList[i]" array. If the character is a line break the fontList[i] array adds another element (i = i + 1); That's how I separate every single name into its own array element;
    The problem which I am having is, when I loop trough the fontList array and $.writeln(fontList[i]) the result in the console is:
    undefinedAlbertus
    undefinedAntenna
    undefinedAntique
    undefinedArial ...etc.
    I seriously don't get it, where the undefined is coming from? As far as I have tested each digit being added into the array element, I can't see anything out of ordinary.
    Here is my code:
    #target illustrator
    var doc = app.documents.add();
    //open file
    var myFile = new File ("c:/ScriptFiles/installedFonts-Families.txt");
    var openFile = myFile.open("r");
    //check if open
    if(openFile == true){
        $.writeln("The file has loaded")}
    else {$.writeln("The file did not load, check the name or the path");}
    //load the file content into a variable
    var content = myFile.read();
    myFile.close();
    var ch;
    var x = 0;
    var fontList = [];
    for (var i = 0; i < content.length; i++) {
        ch = content.charAt (i);
            if((ch) !== (String.fromCharCode(10))) {
                fontList[x] += ch;
            else {
                x ++;
    for ( i = 0; i < fontList.length; i++) {
       $.writeln(fontList[i]);
    doc.close (SaveOptions.DONOTSAVECHANGES);
    Thank you for any help or explanation. If you have any advice on how to improve my practices or any hint, please feel free to say. Thank you

    CarlosCantos wrote an amazing script a while back (2013) that may help you in your endeavor. Below is his code, I had nothing to do with this other then give him praise and I hope it doesn't offend him since it was pasted on the forums here.
    This has helped me do something similar to what your doing.
    Thanks again CarlosCanto
    // script.name = fontList.jsx;
    // script.description = creates a document and makes a list of all fonts seen by Illustrator;
    // script.requirements = none; // runs on CS4 and newer;
    // script.parent = CarlosCanto // 02/17/2013;
    // script.elegant = false;
    #target illustrator
    var edgeSpacing = 10;
    var columnSpacing = 195;
    var docPreset = new DocumentPreset;
    docPreset.width = 800;
    docPreset.height = 600;
    var idoc = documents.addDocument(DocumentColorSpace.CMYK, docPreset);
    var x = edgeSpacing;
    var yyy = (idoc.height - edgeSpacing);
    var fontCount = textFonts.length;
    var col = 1;
    var ABcount = 1;
    for(var i=0; i<fontCount; i++) {
        sFontName = textFonts[i].name;
        var itext = idoc.textFrames.add();
        itext.textRange.characterAttributes.size = 12;
        itext.contents = sFontName;
        //$.writeln(yyy);
        itext.top = yyy;
        itext.left = x;
        itext.textRange.characterAttributes.textFont = textFonts.getByName(textFonts[i].name);
        // check wether the text frame will go off the bottom edge of the document
        if( (yyy-=(itext.height)) <= 20 ) {
            yyy = (idoc.height - edgeSpacing);
            x += columnSpacing;
            col++;
            if (col>4) {
                var ab = idoc.artboards[ABcount-1].artboardRect;
                var abtop = ab[1];
                var ableft = ab[0];
                var abright = ab[2];
                var abbottom = ab[3];
                var ntop = abtop;
                var nleft = abright+edgeSpacing;
                var nbottom = abbottom;
                var nright = abright-ableft+nleft;
                var abRect = [nleft, ntop, nright, nbottom];
                var newAb = idoc.artboards.add(abRect);
                x = nleft+edgeSpacing;
                ABcount++;
                col=1;
        //else yyy-=(itext.height);

  • Cannot create target element(Runtime exception occurred during application

    Hi ,
    this is IDOC TO HTTP Scenario. in error description it is shoein g below error.
    Runtime exception occurred during application
    Cannot create target element (inbound)
    please advice
    thank you.

    Copy the payload from sxmb_moni and test it in the mapping tool using debug mode. I suspect some mandatory elements in target structure requires value but it is missing during mapping. Sometime sender data structure due to values are not getting at runtime does not create target structure element. Check all the individual fields in the mapping tool.

  • Adobe Elements Premier will not run - Application Error

    Installed the combined Adobe Elements 12 (Photoshop and Premier) package. Adobe Elements Photoshop runs fine.  The Elements Premier comes up with an Application Error.  I have a custom computer that runs flawless
    Specs follow:
    SABERTOOTH X79 Socket 2011 X79 ATX Intel Motherboard
    High Current Gamer 750W Gamer Power Supply HCG-750
    Core i7 3820 LGA 2011 Boxed Processor
    135MM Fan CPU Cooler - Blue LED
    Several Hard Drives
    including two Caviar Black 1TB 7,200 RPM SATA 6.0Gb/s 3.5" Internal Hard Drive
    12X SATA Blu-ray Burner with 3D Playback
    Full Tower ATX Computer Case
    NVIDIA GeForce GTX 670 FTW 2048MB GDDR5 PCIe 3.0 x 16 Video Card
    140mm Performance Case Fans
    Vengeance Series 16GB DDR3-1600 (PC3-12800) CL9 Dual Channel Desktop Memory Kit
    Any idea what is causing the problem?

    Woofer
    If you go to Computer/Manage/Event Viewer/Windows Logs/Application, do you find an error corresponding to this issue.
    If so, does the error message there give you further insights into the issue and how to correct it?
    The Elements Premier comes up with an Application Error.
    What are you doing when you get the above "Application Error"?
    a. Double clicking the desktop icon of the program?
    b. Selecting Video/New Project in the Welcome Screen?
    c. Other?
    Are you running the program Run As Administrator and from a User Account with Administrative Privileges?
    Latest version of QuickTime installed on the computer with Premiere Elements?
    Video card/graphics card with latest driver version according to web site of the manufacturer of the video card/graphics card?
    Please review.
    Thanks.
    ATR

  • FlashIsland UI element missing to embed Flex application

    Hi,
    I am trying to add flex application into my webdynpro java . But FlashIsland UI element is not displaying in my NWDS.
    I am using NWDS Version: 7.0.09
                     EP Version: 7.0      SP: 16
    Is there any way to get the FlashIsland UI element in my view?
    Regards
    Vineela

    Hi Vineela,
    To implement Flash Island for Web Dynpro Java applications integrating Flash Islands, you require the following:
    Adobe Flex Builder 2 or 3
    Adobe Flash Player 9 Update 3
    Flash Island Flex library WDIslandLibrary.swc. To enable the use of a Flash/Flex component in Web Dynpro, the component must exist in the form of a FlashIsland. This wrapping enables the communication between the Flex component and the Web Dynpro Framework.
    Are you sure, you are having the required installations available with you. Please check the links below for more information on the same, in case you have missed:
    [Adobe Flash Islands for Web Dynpro Java|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/301e6047-01c9-2b10-3998-a08970c23639]
    [http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/203ece12-85bf-2b10-31a1-cc051670e9c7]
    Please keep posted in case found useful. Thanks!
    Regards,
    Gaurav Bhardwaj

  • Copy Page/region (incl. elements...) to application ( using exp/imp page) ?

    question and enhancement request(!) -
    some customers/prospects claim teamworking / reusable components. goal is to use a page (including its components like regions,processes,items,...) in another application - could realized by exp/imp if we can do it.
    This would improve reusability and also teamworking.
    I work together with a collegue on an application at htmldb.oracle.com. We exported the appl. and work on our local databases at different tasks by different pages.
    But how we can reimport our results?

    Lutz,
    It's kind of difficult, but Raj described a procedure here: Synonyms
    We are aware of the potential value of being able to copy pages between applications and are looking at ways to provide that in future versions of HTML DB.
    Scott

  • Hello I bought Photoshop Elements 9 for PC: The application processing multiple files is not working

    tank you

    Dear Ankush,
    Thank you for your help.  I followed the directions on the link and tried to change the security settings (there were some that I had missed, like the 'sites' on my own), but I still can't get AIR to download. I'm still getting security errors for some reason.
    Sincerely,
    Laurie

  • Destroy in JavaBean with application scope?

    Hi,
    I am using a java bean in my jsp application with scope "application". I know that this java bean will be terminated only when the server stops or shuts down (Apache Tomcat 5.5).
    I need to cleanup something manually when the server shuts down. Can anyone tell me what method will be called, or that I can override, to clean up?
    I tried finalize and valueUnbound (implements HttpSessionBindingListener) with no luck... I just can't find a equivalent to destroy in Servlets (I can't use servlets, must use javabeans+jsp)...
    Any sugestion?
    thanks in advance for your time

    There is an indirect way if you know servlets. The "application" implicit object that you use in your JSP is the javax.servlet.ServletContext object. Instead of declaring your bean using the jsp:useBean tag, directly put your objects into the ServletContext using ServletContext.putAttribute() method. Objects put in the ServletCOntext are available to all pages in the application. Just use the ServletContext.getAttribute() method to retrieve this bean in any other page.
    To "kill the bean", just reset the value of this object to null by calling putAttribute(null).

  • Application scope problem in a JSP

    Hi,
    I try to store an object with the following code :
    getServletContext().setAttribute("application", app);
    Later I want to access this object from a JSP with :
    <jsp:useBean id="application" scope="application" class="de.skillworks.SWApp"/>
    that dosn't work !? I can not debug my application because the jsp is initializing my app object new. When I try in my JSP :
    SWApp app = (SWApp)pageContext.getServletContext().getAttribute("application");
    it works fine. I get my object which I have store in my servlet.
    In a Tomcat environment my code is working just the Jdeveloper has a problem with it.
    null

    Andy -
    The web-to-go server has difficulty dealing with sessions. Testing in Tomcat is a good alternative, and this is resolved in Oracle9i JDeveloper.
    Hope this helps,
    Lynn

  • Best Performance? - having a single stateless java pojo as delegate- give it application scope?

    I'm curious about which is best from a performance standpoint -<br /><br />All of our flex calls access a single java pojo. In my remoting-config.xml I'm currently declaring the destination a property scope of 'application': <br /><br /><destination id="UIServicesDelegate"><br />    <channels><br />      <channel ref="my-amf"/><br />      <channel ref="my-local-amf"/ <br />    </channels> <br />     <properties><br />        <factory>spring</factory><br />        <source>uiServicesDelegateBean</source><br />        <scope>application</scope><br />    </properties><br /></destination><br /><br />All of the UIServiceDelegate methods are stateless however, so I'm wondering if I'm gaining anything by giving it scope session. Since their all stateless I"m assuming application scope would be the best from a performance standpoint? I'm assuming in this case only one object will ever be instantiated? <br /><br />Assuming it was between Session and Request scope, is there a lot of overhead instantiating the new server side object each time? I would assume performance would be better using the Session in this case, with the only draw back of some server-side ram being chewed up storing the object in the Session. <br /><br />If you want "singleton" type approach, I figure just using application scope is the preferred approach?

    You wont get any api for directly accessing Servlet application objects from any ejb. I dont think MDB either solves your problem directly. Indirectly you can place a request to some servlet (should be there for each JVM and web application ) and update your application scope variable. I would suggest you to cache the data in database if the size of cache is large. otherwise any open caching tools may help you.

  • OC4J orion-application.xml - elements and attributes

    Hi. i read in oracle docs sentense like this: "Each property maps to an element attribute in the orion-application.xml descriptor." These properties are from deployment plan and i need to know what is the name of the element in orion-application.xml wich is mapped to webSiteBinding property (from deployment plan).

    I just did a quick test of this, and it seems to work for me.
    I used the following XML:
    <?xml version="1.0" encoding="iso-8859-1"?>
    <Employees xmlns="
    http://www.foo.com/Employees">
    <Employee Id="001">
    <LastName>Davis</LastName>
    <FirstName>Kirk</FirstName>
    </Employee>
    <Employee Id="002">
    <LastName></LastName>
    <FirstName>James</FirstName>
    </Employee>
    <Employee Id="003">
    <FirstName>Anthony</FirstName>
    </Employee>
    <Employee>
    </Employee>
    </Employees>
    With the XPath "/Employees/Employee" I got rows in the data
    set and things displayed fine in my page. Changing it to
    "/employees/employee" caused the data set to have no rows which I
    would expect since things should be case sensitive.
    Can you provide me with some sample XML and XPath that
    doesn't work?
    Thanks!
    --== Kin ==--

  • Application scope bean Vs. EJB

    I want to cash some application data - and was thinking of using a singleton bean with application scope in my controller and JSP page.
    <jsp:useBean id="myBean" scope="application" class="bean.datacash" />
    I am not very familiar with EJBs - and wanted to know if it would be a mistake not to use an EJB to perform that task.
    Is there a downside to my approach?
    Thanks for any insight
    Mike

    Entity EJB'S are used as a kind of data persistence, mostly to Databases. In a way it's like a kind of cache but any changes you make to an EJB are usually persisted to the underlying data storage on a regular basis.
    Session EJB's are more for business logic and depending on the type of Session Bean you use can either remain persisted in a session state or used and thrown away.
    EJB's also require alot of code so depending on your application requirements it is kind of a big decision.
    Is the data your wanting to cache to be shared by all users using the application? Are there any race conditions that may be met by concurrent access to the data? What do you plan to do with the cached data store it in a database or just make it available to share?
    If you want to look into using EJB's then your going to require an EJB Container to run them in (this can be standalone like OpenEJB or as part of an J2EE Application server like JBoss or Oracle Application Server to name just a couple).
    Using the Singleton Javabean can keeps things simple but once you start to synchronize methods with multiple users you can find some slowing down of the logic as the singleton tries to complete a request before getting onto the next.
    The [url http://jakarta.apache.org]Jakarta team offer a package called commons pooling which is designed as a pooling framework (also a way of caching) that can come in handy, I've used it to create a custom JDBC Connection pooler and it works quite well when you get the hang of it.
    Another thing to consider is the load the application may be under at it's busiest time. How many concurrent users do you expect to access the application?
    Sorry I can't give you a real answer as that is entirely up to you and your requirements. If you have a small app that has around 20-50 users then EJBs are bit of an overkill. If you find you'll have 100+ users with lots of data to manage then EJB's are probably a good option.
    If you have a look at [url http://www.theserverside.com]the serverside web site you may find a couple of articles on data persistence or check out some of the online magazines which also have articles on this same topic.
    Anthony

  • Error 103: application.version is an unexpected element/attribute

    Hi guys, while i'm publishing iOS app from Flash, i get that thing
    Unexpected or unknown element or attribute in the application descriptor file.
    /Users/stockingem/Documents/DWP/1-app.xml(44): error 103: application.version is an unexpected element/attribute
    application.version is an unexpected element/attribute
    please, help to solve it!

    <?xml version="1.0" encoding="utf-8"?>
    <application xmlns="http://ns.adobe.com/air/application/2.6">
        <id>test1</id>
        <versionNumber>1.2.0</versionNumber>
        <filename>Untitled-1</filename>
        <description></description>
        <!-- To localize the description, use the following format for the description element.
        <description>
            <text xml:lang="en">English App description goes here</text>
            <text xml:lang="fr">French App description goes here</text>
            <text xml:lang="ja">Japanese App description goes here</text>
        </description>
        -->
        <name>Untitled-1</name>
        <!-- To localize the name, use the following format for the name element.
        <name>
            <text xml:lang="en">English App name goes here</text>
            <text xml:lang="fr">French App name goes here</text>
            <text xml:lang="ja">Japanese App name goes here</text>
        </name>
        -->
        <copyright></copyright>
        <initialWindow>
            <content>Untitled-1.swf</content>
            <systemChrome>standard</systemChrome>
            <transparent>false</transparent>
            <visible>true</visible>
            <fullScreen>true</fullScreen>
            <autoOrients>false</autoOrients>
            <aspectRatio>portrait</aspectRatio>
            <renderMode>auto</renderMode>
        </initialWindow>
        <customUpdateUI>false</customUpdateUI>
        <allowBrowserInvocation>false</allowBrowserInvocation>
        <icon>
            <image29x29>AppIconsForPublish/dwp.png</image29x29>
        </icon>
        <iPhone>
            <requestedDisplayResolution>standard</requestedDisplayResolution>
            <InfoAdditions><![CDATA[<key>UIDeviceFamily</key><array><string>1</string></array>]]></In foAdditions>
        </iPhone>
        <version>1.2</version>
    </application>

Maybe you are looking for

  • Deleting a partner application via ssoreg.sh

    Has anyone tried deleting any patner application registered in SSO via ssoreg.sh. As per syntax these are the values: $ORACLE_HOME/sso/bin/ssoreg.sh -oracle_home_path orcl_home_path -site_name site_name -config_mod_osso TRUE -mod_osso_url mod_osso_ur

  • How do i find out the parental lock code, i am the parent and i don't remember setting a restriction.

    My son's ipod is asking for the code to remove the parental restrictions, I am the parent and i don't remember putting in any restriction code. Any idea how to find out what it is?

  • My Numbers application won't open no matter what I do.

    I reinstall the application, reboot the Mac etc.  However when I logged in using another user account, it works.  How do I resolve this issue?

  • Spinning ball of death upon launch

    Hello, Suddenly, Color will only get to the launch window where the list of projects to open are and it essentially crashes. The spinning beach ball spins and I have to force quit. A while back, I switched the render directory to a dedicated drive, r

  • Where is my sampler instrument ?

    I used Logic 7 for ages. Now I´m using Logic X. I tried open one of my Logic 7 songs and the box `... exs. file could not be found.´ The whole song is alright except the exs24 shows ´missing ...´ inst. I tried to go through my old and new folders aga