Coldfusion chroot

ok, so I'm trying to integrate cf8 with my apache2 inside of
a chroot jail. when running this command:
strace chroot /chroot/apache/
/opt/coldfusion8/runtime/bin/coldfusion8 -jar jrun.jar -autorestart
-start coldfusion
i get this error:
wait4(-1, Java HotSpot(TM) Server VM warning: Can't detect
initial thread stack location - find_vma failed
now, coldfusion is starting as user nobody, i have nobody in
my /chroot/apache/etc/passwd and /chroot/apache/etc/group. Also
I've ldd'd all the binary files in in the jre directory and i'm
pretty sure all the libraries are in my chroot environment, i just
don't know what else to try.
Any hints?

joplinfan wrote:
> Can anyone tell me what might be wrong with this code
that is keeping me from
> being able to upload images through a form upload link?
I appreciate any help
> and I am a new to Coldfusion.
>
> The error occurred in
>
/var/chroot/home/content/W/e/b/WebPro06/html/cf_upload.cfm: line 22
>
> 20 : </form>
> 21 : <cfif isdefined ("form.upload_now")>
> 22 : <cffile accept="image/gif, image/jpeg,
image/png" action="upload"
> destination="/cgi/gdform.cgi" filefield="ul_path"
> nameconflict="makeunique">Thank you! Your photograph
has been received by THP.
> 23 : </cfif>
> 24 : <p> </p>
>
>
>
several things may be wrong with it:
1) destination must be an ABSOLUTE path. use expandpath()
function to
get an absolute path from a relative - check the function
syntax in cf
reference or livedocs if you need to.
2) what is "ul_path" you use in the filefield attribute? you
should put
the name of the form field of type="file" in there. if
ul_path is a
variable you set that holds the name of the file field in
your form,
surround it with #.
as an aside, you may want to put your <cffile ...> code
inside a <cftry>
and use <cfcatch> to show an error if a file of wrong
type has been
selected. otherwise your users will see an ugly
non-descriptive CF error
only.
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com

Similar Messages

  • Coldfusion error - security?!?

    Hello,
    I recently purchased hosting and am trying to get my website
    online. I'm using coldfusion on my website, but I am getting an
    error.
    This is my code to load the header and footers from a .cfm
    file...
    <body>
    <table width="72%" border="0" cellpadding="0"
    cellspacing="0">
    <tr>
    <td colspan="2"><cfinclude
    template="/includes/inc_header.cfm"></td>
    </tr>
    <tr>
    <td width="78%">Info goes here </td>
    <td width="22%">something goes here.... </td>
    </tr>
    <tr>
    <td height="38" colspan="2"><cfinclude
    template="/includes/inc_footer.cfm"></td>
    </tr>
    </table>
    </body>
    And here is the error I am getting....
    The web site you are accessing has experienced an unexpected
    error.
    Please contact the website administrator.
    The following information is meant for the website developer
    for debugging purposes.
    Error Occurred While Processing Request
    Security: The requested template has been denied access to
    /var/chroot/home/content/r/n/p/rnpodsia/html/includes/inc_header.cfm.
    The following is the internal exception message: access
    denied (java.io.FilePermission
    /var/chroot/home/content/r/n/p/rnpodsia/html/includes/inc_header.cfm
    execute)
    The error occurred in
    /var/chroot/home/content/r/n/p/rnpodsia/html/test.cfm: line 10
    8 : <table width="72%" border="0" cellpadding="0"
    cellspacing="0">
    9 : <tr>
    10 : <td colspan="2"><cfinclude
    template="/includes/inc_header.cfm"></td>
    11 : </tr>
    12 : <tr>
    you can also go to www.vividcomp.com/test.cfm
    If anybody has a answer or a solution that would be greatly
    appreciated because I am not quite sure where I went wrong... And
    my hosting is from godaddy.com and I purchased the coldfusion
    language support.... Thank you for your time.
    -Ricky

    Hey,
    I have set all my persmissons, they are set to 755... which
    means that everything is checked except the Write for user/group
    and everyone.
    Here is my code for my inc_header....
    <script type="text/JavaScript">
    <!--
    function MM_swapImgRestore() { //v3.0
    var i,x,a=document.MM_sr;
    for(i=0;a&&i<a.length&&(x=a
    )&&x.oSrc;i++) x.src=x.oSrc;
    function MM_preloadImages() { //v3.0
    var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new
    Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0;
    i<a.length; i++)
    if (a.indexOf("#")!=0){ d.MM_p[j]=new Image;
    d.MM_p[j++].src=a
    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[n];
    for(i=0;!x&&d.layers&&i<d.layers.length;i++)
    x=MM_findObj(n,d.layers
    .document);
    if(!x && d.getElementById) x=d.getElementById(n);
    return x;
    function MM_swapImage() { //v3.0
    var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new
    Array; for(i=0;i<(a.length-2);i+=3)
    if ((x=MM_findObj(a))!=null){document.MM_sr[j++]=x;
    if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    //-->
    </script>
    <body
    onLoad="MM_preloadImages('/images/home_rollover.gif','/images/about_rollover.gif','/image s/services_roll.gif','/images/portfolio_roll.gif','/images/contact_roll.gif')"><table
    width="72%" border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td><img src="/images/header_topleft.gif"
    width="308" height="18"></td>
    <td><img src="/images/header_topright.gif"
    width="432" height="18"></td>
    </tr>
    <tr>
    <td width="31%"><img
    src="/images/header_bannerlefttop.gif" width="308"
    height="57"></td>
    <td><img src="/images/header_right.gif" width="432"
    height="57"></td>
    </tr>
    <tr>
    <td width="31%"><img
    src="/images/header_bannerleftbottom.gif" width="308"
    height="25"></td>
    <td height="27"><a href="#"
    onMouseOut="MM_swapImgRestore()"
    onMouseOver="MM_swapImage('Image4','','/images/home_rollover.gif',1)"><img
    src="/images/home.gif" name="Image4" width="84" height="25"
    border="0"></a><a href="#"
    onMouseOut="MM_swapImgRestore()"
    onMouseOver="MM_swapImage('Image5','','/images/about_rollover.gif',1)"><img
    src="/images/about.gif" name="Image5" width="84" height="25"
    border="0"></a><a href="#"
    onMouseOut="MM_swapImgRestore()"
    onMouseOver="MM_swapImage('Image6','','/images/services_roll.gif',1)"><img
    src="/images/services.gif" name="Image6" width="84" height="25"
    border="0"></a><a href="#"
    onMouseOut="MM_swapImgRestore()"
    onMouseOver="MM_swapImage('Image7','','/images/portfolio_roll.gif',1)"><img
    src="/images/portfolio.gif" name="Image7" width="84" height="25"
    border="0"></a><a href="#"
    onMouseOut="MM_swapImgRestore()"
    onMouseOver="MM_swapImage('Image8','','/images/contact_roll.gif',1)"><img
    src="/images/contact.gif" name="Image8" width="95" height="25"
    border="0"></a></td>
    </tr>
    </table>
    Still confused on why this is happening... any help would be
    great!! thanks!
    -Ricky

  • 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

  • Error  while assigning resultset value to Querytable variable in Coldfusion 10

    We are upgrading from coldfusion 8 to 10. Internally we were using java function to to get the data.
    In java function we have a resultset object, if we assign this resultset value to Querytable variable, we are getting below error. This code was working fine in coldfusion 8.
    Detail    This exception is usually caused by service startup failure. Check your server configuration.
    Message    The Runtime service is not available.
    StackTrace    coldfusion.server.ServiceFactory$ServiceNotAvailableException: The Runtime service is not available. at coldfusion.server.ServiceFactory.getRuntimeService(ServiceFactory.java:117) at coldfusion.runtime.RequestMonitor.<clinit>(RequestMonitor.java:14) at coldfusion.sql.QueryTable.populate(QueryTable.java:358) at coldfusion.sql.QueryTable.populate(QueryTable.java:283) at coldfusion.sql.QueryTable.<init>(QueryTable.java:96) at com.myCompany.myClass.myFunct(myClass.java:627) at
    Here is the function which is causing error.
    static private QueryTable myFunct(String userId, SessionFactory sf) {
            PreparedStatement pStmt = null;
            ResultSet rs = null;
            QueryTable ret = null;
             try{
                Query q = sf.getCurrentSession().getNamedQuery("ListUsers");
                pStmt = sf.getCurrentSession().connection().prepareStatement(q.getQueryString());
                rs = pStmt.executeQuery();// works fine till here
                ret = new QueryTable(rs);  // error line         
                rs.close();
            }catch(Exception e){
                e.printStackTrace();
                throw new RuntimeException(e.getLocalizedMessage());
            return ret;
    Can you provide some help on this. Please let me know if you need any other details.

    We have found this error is logs
    coldfusion.runtime.Encryptor$InvalidParamsForEncryptionException: An error occurred while trying to encrypt or decrypt your input string: The input and output encodings are not same..
        at coldfusion.runtime.Encryptor.decrypt(Encryptor.java:303)
        at coldfusion.runtime.Encryptor.decrypt(Encryptor.java:284)
        at coldfusion.runtime.CFPage.Decrypt(CFPage.java:5353)
        at coldfusion.runtime.CFPage.Decrypt(CFPage.java:5326)
        at coldfusion.runtime.CFPage.Decrypt(CFPage.java:5458)
        at com.vmware.vcp.service.impl.EncryptColdFusionImpl.decrypt(EncryptColdFusionImpl.java:65)
        at com.vmware.vcp.web.servlet.ApplicationConfigServlet.initEmailService(ApplicationConfigSer vlet.java:119)
        at com.vmware.vcp.web.servlet.ApplicationConfigServlet.init(ApplicationConfigServlet.java:51 )
        at javax.servlet.GenericServlet.init(GenericServlet.java:160)
        at coldfusion.bootstrap.ClassloaderHelper.initServletClass(ClassloaderHelper.java:121)
        at coldfusion.bootstrap.BootstrapServlet.init(BootstrapServlet.java:59)
        at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1266)
        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1185)
        at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1080)
        at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5001)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5278)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1525)
        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1515)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:722)

  • Error Occured while processing a Request-openning a another coldfusion page from old page link

    in one page there is dynamic link in that i want to open anather page...
    code is compiled ok and page is at place where i refered a link but it gives error 'error occured while processing a request'
    Error Diagnostic Information
    An error has occurred.
    HTTP/1.0 404 Object Not Found
    this error shows please help me...
    i am new in coldfusion.
    Thanks.

    Hi Salvatore,
    This is a very wide error. You did not provided any other info as specified by Michael. Just a wild guess, this sort of error occurs generally when classpath or java_home properties are not set correctly. But, as i said it is very wide, some more info will be useful.
    Regards
    Chander Kararia

  • ColdFusion 11: cfclient in the context of the CFML language, not the tooling

    G'day:
    I am reposting this from my blog ("ColdFusion 11: <cfclient> in the context of the CFML language, not the tooling") at the suggestion of Adobe support:
    @dacCfml @ColdFusion Can you post your queries at http://t.co/8UF4uCajTC for all cfclient and mobile queries.— Anit Kumar Panda (@anitkumar85) April 29, 2014
    I have edited this in places to remove language that will be deemed inappropriate by the censors here. Changes I have made are in [square brackets]. The forums software here has broken some of the styling, but so be it. There is worthwhile discussion in the comments of the article on my blog: perhaps go have a read.
    G'day:
    This article could end up being a complete waste of space, as I am operating under more real-world re-interpretation of the raison d'être of <cfclient>, as described by Ram:
    ColdFusion [11] has added support for client side CFML (<cfclient>) and this code is translated to JavaScript
    Mike Henke has pointed out that the first part of this "CF11 has added support for client-side CFML" is actually ******** (my wording, not his):
    "ColdFusion Splendor has added support for client side CFML" is probably phrased wrong and gave me flash backs to VBScript or CFML running in the client browser.
    Maybe this is better verbiage. "ColdFusion Splendor has added support for CFML to generate JS".
    Because... there's not such thing as "client-side CFML". That would imply CFML actually running on the client (ie: the browser, or the mobile device, as is the target of <cfclient> as a concept). This is absolutely not true. I know Ram went on to qualify what he meant there, but the messaging from Adobe on <cfclient> has been inaccurate. Possibly I think to the point of actual misrepresentation (in the legal sense, I mean).
    What <cfclient> does is... convert CFML code to JavaScript. So let's look at that idea.
    Why I say this article could be a complete waste of space is that I dunno if this is the intent of <cfclient>; because, really, the messaging from Adobe as to what <cfclient> is for is very muddied. In general the narrative about it is bundled-in with various features of ColdFusion Builder 3.0, in regards to mobile application creation and packaging (and debugging, and all sort of stuff that sounds quite nice but I don't care about as I don't use CFB).
    However <cfclient> has to stand on its own merit in the CFML language, completely decoupled from CFB features. And as far as I can tell, Mike is right: as far as CFML goes, <cfclient> is a tag which tells ColdFusion to - instead of compiling to byte code - compiles the enclosed CFML code to JavaScript instead.
    This of course just sets my alarm klaxons going.  Because Adobe are (I choose my words carefully) [not very good] at converting CFML to client-side code. This has been borne out by <cfform>, <cflayout>, <cfpod> etc. Back in the days of CFMX7 the "CFML-to-client-side" wizards had some merit, because the client-side arena was still immature, and the team at Macromedia actually had some exposure to the idea of "website development", so they knew where the pain points were that they could possible ameliorate. Times have changed, and the client-side of things is probably now more mature an environment than CFML is - Javascript is probably are more coherent language than CFML is, now - and it is very very very clear that the current Adobe ColdFusion Team don't know the first thing about web development (they can't even write decent CFML for their own documentation, before we get onto how they'd be doing web work!), so they are completely out of their depth when it comes to addressing pain points that web devs might have these days. Not only have they not walked a mile in a web dev's shoes, they don't even - as far as I can tell - know what shoes are, or why someone would be wearing them.
    And <cfclient> is a far more "meta" solution than <cfform> or <cfpod> were... at least the CFML-to-client-side solution there had a tangible target in mind. <cfclient> has removed the targets, and is just a tag designed for converting general CFML to general JS. Yikes.
    600-odd words in, here's some code. This is the first-ever code I have written using <cfclient>:
    <cfclient> <cfset msg = "G'day World"> <cfoutput>#message#</cfoutput> </cfclient>
    So I'm off to a false start: I admit I'm sitting in the pub and I've had a few pints (probably four, I guess; this is "having some drinks before deciding to actually drink this evening" sort of level for me), and I inadvertently [messed-up] my variable names here. And this did not yield a compile error. The error just fell through to JS, where it did error
    Uncaught ReferenceError: message is not defined gdayWorld.cfm:4
    If, in contrast, I tried this in CoffeeScript, I'd get this:
    coffee> msg = "G'day world"
    'G\'day world'
    coffee> alert msg
    undefined
    coffee>
    alert message
    ReferenceError: message is not defined
        at eval (eval at  (http://larryng.github.io/coffeescript-repl/js/main.js:96:26), :1:9)
    Important note: I know nothing about CoffeeScript - it seems like a solution to a non-existent problem to me - so I just googled "hello world coffeescript" and REPLed the code on http://larryng.github.io/coffeescript-repl/.
    The point is here is that ColdFusion, during the "compile" process should actually notice I am referencing a variable that doesn't exist. I'm OK with this being a runtime error in the normal CFML-compile process, because there could be many moving parts (and other files) involved in the runtime environment, but I don't think this is a valid notion with <cfclient>? Or maybe it is?
    Update:As Ray points out and Aaron agrees with below: I was being unduly harsh here... it's entirely reasonable for variables to be declared in other JS code elsewhere in the response.
    Anyway, once I actually write my code properly, I get this:
    G'day World
    On the screen. What CF actually sends back in the response is this:
    <script type="text/javascript" src="/CFIDE/cfclient/cfclient_main.js"></script> <script type="text/javascript" src="/CFIDE/cfclient/cffunctions.js"></script> <meta name="viewport" content="width=device-width"> <script type='text/javascript'>globalDivStruct=null;var _$gdayWorld_func=function(){var self=this;var variables={};self.__init=function(){var localdivstruct=globalDivStruct;var __output_var="";var tmpVarArray={};message="G'day World";localdivstruct.outputvar+=message;return""}}; function __startPage__$gdayWorld(){document.write("\x3cdiv id\x3d'__cfclient_0'\x3e\x3c/div\x3e");window.ispgbuild=false;var clientDivStruct={divId:"__cfclient_0",outputvar:""};globalDivStruct=clientDivStruct;try{_$gdayWorld=new _$gdayWorld_func;_$gdayWorld.__init()}catch(__eArg){if(__eArg!=="$$$cfclient_abort$$$")throw __eArg;}__$cf.__flush(clientDivStruct)}__startPage__$gdayWorld(); </script>
    [Blimey]. To output a string variable? Really? That's what you compile my CFML down to?
    Gobsmacked.
    And [forget] emotive things like "gobsmacked"... if one looks at the size of the response, it's 128kB to represent "G'day World" on the screen. 128kB might not be a great deal these days when it comes to a web page, but when it comes to rendering "G'day world", it's lunacy. And on a mobile phone - which intrinsically might be in an area in which one is paying a premium for data - it's just irresponsible. This is before we get to the point that it seriously should not take 128kB of data to render 11 bytes.
    Blimey. To be honest I was gonna try some more tricky CFML and see how it compiled, but I've run out of will to live (and I have to concede the beer is getting the better of me, and my laptop battery is almost dead). I'll continue this, but I will let this article stand or fall on its own merit; something <cfclient> certainly seems to be unable to do, thusfar.
    I'll be back on the case with this tomorrow.
    Adam

    The functions defined in the cffunctions.js are not namespaced. If it is namespaced, you would have to add the namespace while using a function inside cfclient.
    These functions are not namespaced, so that you can use the same syntax for using a function inside and outside the cfclient block.
    This is indicative of everyone's concern that you guys would just implement / encourage poor practice in your <cfclient> implementation.
    How is it - given you're "compiling" the CFML anyway - you cannot translate source code that says "listlen()" into "compiled" JS that is CF.listLen() or something? Thus good CFML can be translated into good JS.
    You seem to think that there's a one-to-one mapping between what the CFML says and what the resultant JS needs to be.
    You've basically written a mechanism for a CFML developer to write bad JavaScript.
    Well done.
    Adam

  • Packaged ColdFusion 9 Datasources not importing to ColdFusion 10 64-bit on another computer

    I installed ColdFusion 10 64-bit on my I new 64-bit work computer. To save time and effort; l decide to use Packaging & Deployment option on ColdFusion 9 32-bit on my old computer to archive all my data sources and deploy on the new server. I selected all the Datasources I wanted to archive (26 of them) without selecting any other settings. The archive file was successfully created and I built the backup file 'C:/Projects/ColdFusion/ColdFusionBak24May2013.car' to copy to my machine. Created achieve file is visible in ColdFusion Archives on my old computer, I can modify it and I deploy it on my old computer but nothing happens when I copy ColdFusionBak24May2013.car file to my new computer and try to deploy it there using ColdFusion 10 64-bit.
    Everything seems to work fine with selecting the file but when I click Deploy Achieve; the process goes through the motion but none of the data sources are added to ColdFusion 10 on the new computer.
    Am I doing something wrong or doesn't ColdFusion 9 (32-bit) Achieve file work on ColdFusion 10 (64-bit)?
    PS: XML file called neo-datasource.xml is located in ColdFusion10\cfusion\lib directory listing all datasources. Would it work if I merge neo-datasource.xml file on my new computer with the one on my old computer instead or not? 
    Any assistance will be greatly appreciated.
    Thank you.

    Have you considered using JDBC rather than ODBC?  I suspect that both Adobe and Microsoft view ODBC as a legacy technology.

  • Install coldfusion ent 64 bit in a distributed environment

    Hi,
    What I am trying to achieve :
    Install CF 80 ent 64 bit in windows server 2003. (server 1)
    MY webserver is is anoter system which is running windows xp
    32 bit. ie my iis is 32 bit. (server 2)
    All my web files and websites(IIS stuffs ) wil be in server
    2. and Jrun will in in server 1.
    What i did:
    1. Installed Cf 80 in server 1. with multiple instance
    support.
    2. copied the connector files from jrun folder of server 1 to
    server 2. and changed few config files
    (This was done by following some docs form net)
    But this method is not working. Please let me know if someone
    have a clear way of doing it or any docs are there.
    I will be so thankfull as I am struck up with this.
    Thanks,
    Dev

    devlosh wrote:
    > Install CF 80 ent 64 bit in windows server 2003. (server
    1)
    > MY webserver is is anoter system which is running
    windows xp 32 bit. ie my iis
    > is 32 bit. (server 2)
    >
    > All my web files and websites(IIS stuffs ) wil be in
    server 2. and Jrun will
    > in in server 1.
    This will not work. All your .cfm files must be on the server
    that has
    JRun (server1).
    In order to set this up:
    1. Install JRun / CF on server1. It is highly recommended to
    choose the
    buildin webserver so you can verify your installation is
    correct.
    2. Copy wsconfig.jar to the webserver on server2. Make sure
    you have a
    JDK installed (same version as CF/JRun uses).
    3. Run wsconfig.jar and specify connection parameters to
    connect to
    server1:
    http://livedocs.adobe.com/coldfusion/6.1/htmldocs/websera7.htm
    4. Plcae your .cfm files in the CF wwwroot
    (...\???.ear\cfusion.war\
    folder) on server 1.
    5. Test.
    This should work, but IIRC Adobe will only support a
    configuration where
    you also have your CF code on the webserver and the path to
    your IIS
    wwwroot on server2 is identical to the path to the JRun
    wwwroot on server1.
    Jochem
    Jochem van Dieten
    Adobe Community Expert for ColdFusion

  • Install coldfusion 8 32 bit on 64bit system

    in agreement with docs
    http://kb2.adobe.com/cps/403/kb403277.html#main__Toc193176416
    ("As of ColdFusion 8 Update 1, the Standard Edition can run as a 32-bit application on all supported 64-bit platforms in addition to 32-bit platforms")
    i'm trying to install coldfusion-801-lin.bin on
    a linux 64bit system
    but i receive this error
    [root@lnx1 store]# ./coldfusion-801-lin.bin
    Preparing to install...
    Extracting the JRE from the installer archive...
    Unpacking the JRE...
    Extracting the installation resources from the installer archive...
    Configuring the installer for this system's environment...
    strings: '/lib/libc.so.6': No such file
    Launching installer...
    ./coldfusion-801-lin.bin: /tmp/install.dir.9137/Linux/resource/jre/bin/java: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
    ./coldfusion-801-lin.bin: line 2479: /tmp/install.dir.9137/Linux/resource/jre/bin/java: Success
    =========
    if i tryng to install coldfusion-801 64bit version,
    the serial number is not valid
    (my serial number is CF standard, upg license)
    you can help me?
    many thanks!

    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

  • Solaris 8 on chroot in Solaris 10

    I've copied all nessesary Sol8 system files to machine with Sol10. After executing "chroot /home/chroot/sol8 /bin/bash" almost everything is OK except running programs which need the "libthread.so.1" library (for example java). These programs cause error: "_sys_thread_create() failed, errno = 22".
    bash-3.00#uname -a
    SunOS xxxx 5.10 Generic_118822-25 sun4u sparc SUNW,Sun-Fire-480R
    bash-3.00# mount -F proc proc /home/chroot/sol8/proc
    bash-3.00# mount -F fd /dev/fd /home/chroot/sol8/dev/fd
    bash-3.00# chroot /home/chroot/sol8 /bin/bash
    bash-2.05b#
    bash-2.05b# ldd /usr/bin/java
    libthread.so.1=> /usr/j2re1.4.1/bin/../../../lib/sparcv9/libthread.so.1
    libdl.so.1 => /usr/j2re1.4.1/bin/../../../lib/sparcv9/libdl.so.1
    libc.so.1 => /usr/j2re1.4.1/bin/../../../lib/sparcv9/libc.so.1
    /usr/platform/SUNW,Sun-Fire-480R/lib/sparcv9/libc_psr.so.1
    bash-2.05b# /usr/bin/java
    systhread_create() failed, errno = 22
    The "libthread.so.1" file is dated on 19th may 06 (patch no. 108993-57)
    Other machine with native Sol8 does not have such problem.
    Can anyone explain me what the "errno=22" mean ?
    Best regards.
    Tom

    We a lot of machines with Solaris 8 at our customer which cannot be upgraded in near future (for some security reasons). I've decided to install Solaris 10 on our development server (V480) but we have to produce binaries (aplications and libraries) which will be running in "clean" Sol8 environment.
    The best solution would be to prepare Sol8 temporary environment on our server till then the customer will upgrade own machines to Sol10.
    In reference to "Dynamic System Domains" option:
    We are using[b] Sun-Fire V480 server not Sunfire 6800 - is that option applicable to such servers (V480) ???

  • Unique ID's in ColdFusion 8?

    What tools are available to create UNIQUE ID's for an application?
    I know in ColdFusion we can use CreateUUID() but this generates a string that is very long.
    What I want to be able to do is create a string of say no more than 6 characters long that can be considered unique for a number of records that could reach the millions.
    For example, the website TinyURL seems to do this quite well with a link like the following:
    http://tinyurl.com/dlz23k
    How do you think they ensure it's uniqu everytime??
    Cheers,
    Mikey

    I've done quite a bit of research on URL shortening due to a customer's desire. After review of 8th grade math (permutations and combinations), there are two solutions to URL shortening. These schemes assume that the URL cannot be recycled and put back into circulation.
    Base 36 - a 6 character URL key consisting of letters a-z and 0-9 for a total of 36 characters, and hence base 36. (26 characters (a-z) and 10 digits). This scheme provides  2,238,976,116 unique URL keys ((36^7-36)/35). Notice, this is case-insensitive. For example, http://foo.com/?ItsMagic and http://foo.com/?itsmagic resolve to the same real URL. If over 2 billion URLs is sufficient, this scheme is for you.
    Base 62 - a 6 character URL key consisting of letters a-z, A-Z, and 0-9 for a total of 62 characters (26 +26 + 10 = 62). This scheme provides 57,731,386,986 ((62^7-62)/61) unique URLs. For example, http://foo.com/?ItsMagic and http://foo.com/?itsmagic resolve to DIFFERENT real URLs. If over 5 billion URLs is sufficient, this scheme is for you. (ref: http://www.bennadel.com/blog/1540-Converting-Numbers-To-A-Character-Set-Based-Radix-Using- ColdFusion.htm)
    Scheme 1 code:
            <!--- number of times to try getting a unique suffix before quiting --->
            <cfset var tries = 10>
            <!--- current number of trys --->
            <cfset var trycnt = 1>
            <!--- flag that suffix is unique --->
            <cfset var isunique = false>
            <!--- try to generate a random url suffix --->
            <cfloop condition="(not isunique and trycnt lte tries)">
                <!--- number of epoch seconds --->
                <cfset epochs = DateDiff("s", "January 1 1970 00:00", Now())>
                <!--- the suffix is a base 36 number --->
                <cfset suffix = FormatBaseN((RandRange(1,100000000) + epochs),36)>
                <!--- make sure this URL key is unique among those already created --->
                <cfset isunique = URLDAO.isURLUnique(this,suffix);
                <cfset trycnt = trycnt + 1>
            </cfloop>
    Scheme 2 code:
    See http://www.bennadel.com/blog/1540-Converting-Numbers-To-A-Character-Set-Based-Radix-Using- ColdFusion.htm)

  • Coldfusion 11 Running on IIS Server and Java CreateObject Error

    I am getting the error below when trying to create an object in CF 11 using cfscript. In the CF Admin Java VM settings are the default setting. I have placed xmlsec-1.5.8.jar file under \cfusion\lib and cfusion\wwwroot\WEB-INF\lib I have also restarted the CF service.
    java.lang.NoClassDefFoundError: Could not initialize class org.apache.xml.security.signature.XMLSignature
    sun.misc.Unsafe.ensureClassInitialized(Native Method) at sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:4 3) at sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:142) at java.lang.reflect.Field.acquireFieldAccessor(Field.java:1082) at java.lang.reflect.Field.getFieldAccessor(Field.java:1063) at java.lang.reflect.Field.get(Field.java:387) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at coldfusion.runtime.StructBean.invoke(StructBean.java:508) at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2553) at cfdump2ecfm2106091068$funcDUMPOBJECT.runFunction(/WEB-INF/cftags/dump.cfm:1797) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:487) at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:383) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:334) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:533) at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:2805) at cfdump2ecfm2106091068$funcRENDEROUTPUT.runFunction(/WEB-INF/cftags/dump.cfm:681) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:487) at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:383) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:334) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:231) at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:2840) at cfdump2ecfm2106091068._factor17(/WEB-INF/cftags/dump.cfm:565) at cfdump2ecfm2106091068._factor25(/WEB-INF/cftags/dump.cfm:564) at cfdump2ecfm2106091068._factor3(/WEB-INF/cftags/dump.cfm) at cfdump2ecfm2106091068._factor54(/WEB-INF/cftags/dump.cfm:493) at cfdump2ecfm2106091068.runPage(/WEB-INF/cftags/dump.cfm:1) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:246) at coldfusion.filter.CFVariablesScopeFilter.invoke(CFVariablesScopeFilter.java:56) at coldfusion.tagext.lang.ModuleTag.doStartTag(ModuleTag.java:332) at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2986) at cfjavatest2ecfm1994854383.runPage(J:\PPNPF_WEB\SAMLTEST\javatest.cfm:8) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:246) at coldfusion.tagext.lang.IncludeTag.handlePageInvoke(IncludeTag.java:736) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:572) at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65) at coldfusion.filter.IpFilter.invoke(IpFilter.java:45) at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:487) at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:42) at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40) at coldfusion.filter.PathFilter.invoke(PathFilter.java:142) at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:94) at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:2 8) at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:58) at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38) at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at coldfusion.filter.CachingFilter.invoke(CachingFilter.java:62) at coldfusion.CfmServlet.service(CfmServlet.java:219) at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:303) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42 ) at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:422) at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:199) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.jav a:607) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745)

    Does the coldfusion administrator show that the jar file is loaded? If you go to the Settings Summary and look for the CF Server Java Class Path part, it will list all the loaded files.

  • How to handle Coldfusion SOAP Web Service Errors

    Hi,
    I have just created simple wsdl example:
    My Component:
    <cfcomponent displayname="mytest">
        <cffunction name="service_login_authentication" access="remote" output="true" returntype="any" hint="Returns login">
         <cfargument name="login" type="string" required="yes">
            <cfargument name="password" type="string" required="yes">
              <cfif #arguments.login# eq "abcdef" and #arguments.password# eq "123456">
                      <cfxml variable="soapRes">                
                            <kps_response>
                                <message>OK</message>
                                <token>354dfdffsdf</token>
                             </kps_response>
                        </cfxml>
                 <cfelse>
                         <cfthrow type="MyException" message="INVALID LOGIN" errorcode="1000" />
             </cfif>        
          <cfreturn soapRes >
        </cffunction>
    </cfcomponent>
    Its generating wsdl and no problem with response but when generating any error like username and password does not match then it's generating fault code like this:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <soapenv:Body>
          <soapenv:Fault>
             <faultcode>soapenv:Server.userException</faultcode>
             <faultstring>coldfusion.xml.rpc.CFCInvocationException: [coldfusion.runtime.CustomException : INVALID LOGIN. ]</faultstring>
             <detail>
                <ns1:hostname xmlns:ns1="http://xml.apache.org/axis/">HOST_NAME</ns1:hostname>
             </detail>
          </soapenv:Fault>
       </soapenv:Body>
    </soapenv:Envelope>
    But I want customize Fault Code like this:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <soapenv:Body>
          <soapenv:Fault>
             <faultcode>1000</faultcode>
             <faultstring>INVALID LOGIN</faultstring>
          </soapenv:Fault>
       </soapenv:Body>
    </soapenv:Envelope>
    Fault Code and Fault String should be customize and I don't want detail tag completely. In old ColdFusion version like ColdFusion 8 displaying detail tag with <ns1:stackTrace xmlns:ns1="http://xml.apache.org/axis/"> coldfusion.xml.rpc.CFCInvocationException: and so on.
    Any suggestions on how to create customize faultcode and faultstring is very helpful.
    Thanks!!

    But my component is not produces this fault code:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">                   
                                <soapenv:Body>                   
                                      <soapenv:Fault>                   
                                         <<faultcode>1000</faultcode>                   
                                                   <faultstring>INVALID LOGIN</faultstring>                   
                                      </soapenv:Fault>                   
                                   </soapenv:Body>                   
    </soapenv:Envelope>
    What is your ColdFusion Version as i have checked in ColdFusion 11 developer edition and ColdFusion 8 enterprise which is on window 2003 server.
    Could you please check my below component, did i am doing something wrong.
    <cfcomponent output="false">
        <cffunction name="service_login_authentication" access="remote" output="true" returntype="any" hint="Returns login">
         <cfargument name="login" type="string" required="yes">
            <cfargument name="password" type="string" required="yes">
      <cfset var isLoginValid = False>
            <cftry>
              <cfif #arguments.login# eq "1111" and #arguments.password# eq "1111">
                  <cfset isLoginValid = True>
                </cfif>
                 <cfif isLoginValid>
                        <cfsavecontent variable="soapRes"><?xml version="1.0" encoding="UTF-8"?>           
                           <kps_response>           
                               <message>OK</message>           
                               <token>354dfdffsdf</token>           
                            </kps_response>           
                         </cfsavecontent>           
                    <cfelse>           
                        <cfthrow type="MyException" message="INVALID LOGIN" errorcode="1000" />           
                    </cfif>
                      <cfcatch type="MyException">           
                         <cfsavecontent variable="soapRes">               
                                <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">                   
                                <soapenv:Body>                   
                                      <soapenv:Fault>                   
                                         <<cfoutput><faultcode>#cfcatch.errorCode#</faultcode>                   
                                                   <faultstring>#cfcatch.message#</faultstring></cfoutput>                   
                                      </soapenv:Fault>                   
                                   </soapenv:Body>                   
                                </soapenv:Envelope>                  
                           </cfsavecontent>
                    </cfcatch>
                </cftry>     
          <cfreturn soapRes >
        </cffunction>
    </cfcomponent>
    If my component is okay then may be possible some setting in ColdFusion administrator. i have checked in SoapUI as well via getSoapResponse method.

  • ColdFusion with IIS URL Rewrite - Page never finishes loading

    I am running CF10 on IIS 7.5 with URL Rewrite module installed.
    All the rewrite rules work perfectly and ColdFusion is returning the correct pages. In order to get the page displayed in the browser I have to manually set the 'content-length' value in Application.cfc like this:
    <cfcomponent>
    <cffunction name="onRequestEnd">
    <cfheader name="Content-Length" value="#getPageContext().getCFOutput().getBuffer().size()#" />
    </cffunction>
    </cfcomponent>
    Without this code the browser does not display the page. However, even though it is now displaying the page, it is not doing it correctly. The page never finishes loading fully and not all of the HTML content seems to be on the page.
    I have tried to add a <cfflush> tag after setting the 'content-length' but it makes no difference. I don't understand why this is happening but I know that it has happened to someone else who was using htaccess: http://forums.devshed.com/coldfusion-development-84/page-not-finishing-loading-coldfusion- and-htaccess-bug-575906.html
    Can anyone please help?

    Hi guys,
    I would like to do url rewriting on our CF app but am worried I'll break something if I try and do it myself - is there anyone who would be interested in a bit of consultancy to help us achieve this?
    I want to turn http://www.allchichesterjobs.com/search-results.cfm?sector=21&q=part-time-jobs
    into http://www.allchichesterjobs.com/part-time-jobs
    I've tried this using IIS and URL Rewrite, when I browsed to http://www.allchichesterjobs.com/search-results.cfm?sector=21&q=part-time-jobs
    my browser was redirected to http://www.allchichesterjobs.com/part-time-jobs ok - but then I got a 404 error
    I'm wondering if I can pay someone to remote view my screen while we talk on skype and tell me what to do?
    Hope it's ok to post this sort of request on here
    Thanks very much indeed.
    Nick

  • ColdFusion 10/IIS 7.5 Authorized Access Issue

    I've installed ColdFusion 10 on my Windows VPS, running IIS 7.5. The VPS is managed through Plesk 11.
    Everything works great if I'm just trying to access an HTML file as shown here: http://broncotime.info. However, if I try to access a .cfm page, I get a login screen that prompts for my User Name and Password, see http://broncotime.info/index.cfm
    If I hit cancel while logged in locally on the server, I'll see the error message:
    HTTP Error 401.3 - Unauthorized
    You do not have permission to view this directory or page because of the access control list (ACL) configuration or encryption settings for this resource on the Web server.
    Error Code: 0x80070005
    Physical Path: C:\Inetpub\vhosts\econsummit.secureserver.net\broncotime.info\index.cfm
    From everything I've read, including the on-page 'likely causes', it's an issue where the user doesn't have the correct permissions. However, I've updated all the files within C:\Inetpub\vhosts\econsummit.secureserver.net\broncotime.info\ and c:\ColdFusion10\cfusion\wwwroot to have read\execute permissions for everyone. So I'm unsure where the permission issue could be since it seems like I covered all my bases there.
    I've also updated the Anonymous Authentication (within the IIS settings) to point to Application pool identity as specified by other folks who have experienced this. To no avail!
    So my question is: How do I make my ColdFusion pages viewable to the public?
    One more not since this may factor in somewhere...none of the user accounts set up for the server actually work for the prompted authentication.
    Thanks,
    Aaron

    I did find this page entitled Coldfusion, IIS7, Plesk and 401 Authentication that seems to address the issue but like the comments from the users at the bottom of that page, I don't have ColdFusion listed in the Plesk reconfigurator.

Maybe you are looking for

  • Premeire Elements 12 can't see disc menus added to project in PE 10

    I have a project that I created in Premiere Elements 10. I just installed Premeire Elements 12, and while I was able to open my project, PE 12 apparently can't see the disc menu I created in PE 10. I tried to recreate the menu, but when I installed P

  • Some shows (HD only) not getting flagged in Guide as New

    In the FIOS Guide, many shows are correctly flagged as "First Run" on the regular display channels, but not flagged as "First Run" on the exact same HD-version channel.  For example in the guide, bring up Thursday, Sept 26th at 8pm.  Channel 4 shows

  • Mount iPhone as a volume (same as possible with iPods)

    Hi everyone, I suppose there's no official way of mounting the iPhone as a volume on the Mac. Are there any 3rd party apps that do this or is the only way to accomplish this to jailbreak it and use ftp, scp, etc? Thank you Björn

  • SAP Query : Save to file in XLS format in background

    Hello everybody, I used the enhancement SQUE0001 for saving result (an XLS file) of SAP query in background. I used also the ABAP commands 'OPEN DATASET', 'TRANSFER' and 'CLOSE DATASET' as described in the SAP note 537735. The execution of SAP query

  • Extracting data from ECC tables in BODS

    Hello all, I'm trying to extract data from ECC tables. I have created a data store and imported the necessary tables(FAGLFLEXT) that i will be using.  I have used the table in a job as a source and tried to execute the job but i was only able to extr