Cfc:not.found

Hello,
I have some cose like this
<cfinput type="text" name="comune" id="comune" maxlength="80" autosuggest="cfc:cfc.towns.getTown({cfautosuggestvalue})">
and a cfc placed in the directory tree like this /cfc/towns.cfc
So I wonder why the server returns error "The specified CFC cfc.towns could not be found"
Thank you

What version of CF are you using? Is the directory in which you placed the CFC a virtual directory?
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Similar Messages

  • CFC Not Found Error

    I am trying to get the paging to work on the new CF8
    Datagrids.
    I am using the example from Forta on his website and all I
    get is errors.
    The files are in the same directory so I am at a loss when it
    says that the CFC Binding cannot be forund. Use CFDebug to see
    more..
    Here is the code.

    This may be a bug. See the comments of this post
    (11/16/2007):
    http://www.forta.com/blog/index.cfm/2007/5/31/ColdFusion-Ajax-Tutorial-1-AutoSuggest

  • I cannot get it. 10 times already to receive  new passwords today. Adove Download Assistant says  "Unable to invoke CFC - The method login was not found in component tdrc.tdrcfacade.

    I cannot get it. 10 times already to receive  new passwords today. Adove Download Assistant says  "Unable to invoke CFC - The method login was not found in component tdrc.tdrcfacade.
    What can I do? My problem was started from installing Adobe Reader. It says "Done OK" but never installed.
    Elena
    e. [email protected]

    Try using the offline installer from http://get.adobe.com/reader/enterprise/

  • CFC - function not found.

    Can anyone see why this is not working? I am pulling my hair
    out. I have setup autosuggest to bind to a CFC before without a
    problem, but getting VERY wierd results with this one. Can anyone
    see what is wrong here?? I can't !!
    Many thanks in advance for any suggestions.
    CFINPUT....
    <cfinput type="text" name="fMunicipality"
    id="fMunicipality" class="LrgTextField" maxlength="50"
    autosuggest="cfc:lu_municipality.getMunicipality{(cfautosuggestvalue)}">
    THE CFC
    <cfcomponent>
    <cffunction name="getMunicipality" access="remote"
    returntype="array" output="false">
    <cfargument name="suggestvalue" required="true">
    <cfset var myarray = ArrayNew(1)>
    <cfquery name="getMunicipality"
    datasource="datasource">
    SELECT suburb FROM lu_geo_data
    WHERE suburb LIKE <cfqueryparam value="#suggestvalue
    & '%'#" cfsqltype="cf_sql_varchar">
    </cfquery>
    <cfloop query="getMunicipality">
    <cfset arrayAppend(myarray, suburb)>
    </cfloop>
    <cfreturn myarray>
    </cffunction>
    </cfcomponent>
    THE ERROR COMING BACK
    The specified remote function getMunicipality{ was not found
    on the CFC lu_municipality.

    you got your { and ( in the wrong order - it should be
    cfc:cfcpath.functionname({bind control}) - in the bind
    attribute of your
    cfinput... thus it is looking for function getMunicipality{
    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com/

  • Cfc page not found

    I'm trying to binding cfgrid with a cfc but result in "Error Invoking somecfcomponent.cfc : Object not Found [...]".
    I then access that somecfcomponent.cfc from the URL (i.e. http://someserver/somecfcomponent.cfc") result in page not found.
    somecfcomponent.cfc is placed in the root directory. Root directory is c:\mywebsite\, thus http://someserver is pointing to c:\mywebsite.
    I been googling and people suggest that I need to do something with cfmapping? Been trying but to no prevail.
    Any idea?
    Thanks!

    Never mind on this, damn URLScan block .cfc files.
    Now got a different error, but is is javascript error.
    Line: 798
    Error: Exception thrown and not caught.
    /cfide/scripts/ajax/package/cfajax.js
    catch(e){
    throw new SyntaxError("parseJSON");

  • Mapping for component Not Found Error ?

    Hi does anyone know how this error can be fixed I am trying to refer to a compnent called task and it
    is saying I have not mapped it yet it has been mapped inside my coldbox framework ?
    The error I get is:
    Coldfusion.orm.EntityMappingNotFoundException: mapping for component task not found
    Any help would greatly be appreciated on this.
    Thanks

    When using ORM generator to generate cfcs make sure that Application.cfc has unique app names in order to solve the problem above.

  • File not found: /cgi-bin

    Starting on May 2007, unidentified errors started occurring
    on our coldfusion MX7 servers (Window2003) at approximately the
    same time each night but not every night (...maybe 4 to 5 time a
    week). These errors does not effect the performance our
    applications on these servers or at least I don't think it does. No
    schedule jobs or programs have been created that reference the cfm
    template that this process is trying to locate. FYI, no users are
    in these servers at this time. I'm going to assume it's something
    running in the background and I'm not smart enough to figure it
    out. Does anyone have an idea of what is going on?
    Examples of error msg in application log:
    “May 22, 2007 7:03 PM Error 0 File not found:
    /7x0o7F_9Ns_r.cfm The specific sequence of files included or
    processed is: C:\Inetpub\wwwroot\7x0o7F_9Ns_r.cfm“
    Examples of error msg in exception log:
    "Error","jrpp-462","05/22/07","19:03:33",,"File not found:
    /7x0o7F_9Ns_r.cfm The specific sequence of files included or
    processed is: C:\Inetpub\wwwroot\7x0o7F_9Ns_r.cfm "
    coldfusion.runtime.TemplateNotFoundException: File not found:
    /7x0o7F_9Ns_r.cfm
    at coldfusion.filter.PathFilter.invoke(PathFilter.java:83)
    at
    coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:69)
    at
    coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:52)
    at
    coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:2 8)
    at
    coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
    at
    coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
    at
    coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
    at
    coldfusion.filter.RequestThrottleFilter.invoke(RequestThrottleFilter.java:115)
    at coldfusion.CfmServlet.service(CfmServlet.java:107)
    at
    coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:78)
    at
    jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
    at
    jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
    at
    jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:257)
    at
    jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:541)
    at
    jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:204)
    at
    jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:318)
    at
    jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:426)
    at
    jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:264)
    at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
    "Error","jrpp-462","05/22/07","19:03:33",,"File not found:
    /cgi-bin/7x0o7F_9Ns_r.cfm The specific sequence of files included
    or processed is: C:\Inetpub\wwwroot\cgi-bin\7x0o7F_9Ns_r.cfm "
    coldfusion.runtime.TemplateNotFoundException: File not found:
    /cgi-bin/7x0o7F_9Ns_r.cfm
    at coldfusion.filter.PathFilter.invoke(PathFilter.java:83)
    at
    coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:69)
    at
    coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:52)
    at
    coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:2 8)
    at
    coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
    at
    coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
    at
    coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
    at
    coldfusion.filter.RequestThrottleFilter.invoke(RequestThrottleFilter.java:115)
    at coldfusion.CfmServlet.service(CfmServlet.java:107)
    at
    coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:78)
    at
    jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
    at
    jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
    at
    jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:257)
    at
    jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:541)
    at
    jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:204)
    at
    jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:318)
    at
    jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:426)
    at
    jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:264)
    at
    jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

    In any case, you shouldn't be doing any includes in Application.cfc(side note: capital A). The application file is not meant for presenting CFM pages. Translate all such includes into logic involving, for example, cflocation.

  • "File not found: /Adobe_CFC_Generator/handlers/index.cfm"

    Ok I know this is going to turn out to be something silly.  But I cannot seem to get the Extensions to function.  I get the error "File not found: /Adobe CFC Generator/handlers/index.cfm" every time I attempt to use the CFC generator and similar errors for ther other extensions.
    I am using ColdFusion 9 Standalone Server and Apache 2.2.x on Windows XP SP3.
    ColdFusion is installed to:  C:\ColdFusion9
    Apache is installed to C:\Apache
    The Apache Documents folder is mounted to C:\wwwroot rather then the traditional htdocs.
    All Websites are within the wwwroot and set up using VirtualHosts and all sites run off of port 80.  I am using a hosts file to make the domain names back to this development system.
    When installing coldfusion the document root was set to C:\wwwroot thus the CFIDE is within that director.
    The Server is configured to use the local systems hostname on Port 80.
    Server Home = C:\coldfusion9
    Document Root = C:\wwwroot
    Version 9.0.X
    I have access to the RDS Dataview and fileview.
    I have attempted to use a virtualhost mapping to the extensions already.  I have also changed the name of the folder to Adobe_CFC_Generator and set a host setting for it to resolve to the systems static ip address and then used the virtualhost mapping.  No luck so far.  The files are there in the c:\wwwroot directory.  When I first looked a the settings for the extension it stated that the path was C:\wwwroot/Adobe CFC Generator. (Note the slashes.)  So I modified the servers document root to be C:/wwwroot.  Still no go.
    The extensions install location is currently C:/wwwroot/Adobe_CFC_Generator.
    Again I am sure this is something stupid simple.  Anyone have any idea what I am missing?

    I did each.  The files were accessable.  However it still would not function and then I noticed that in the application log file there was a note that the location it was looking for the files were in the CFIDE directory.
    So I copied the folders into that directory and mode no other changes and Bing!  It worked.
    This may be related to my development setup.  It is perhaps not a normal setup.  I have apache, cf9 and the wwwroot folder all off the root of the c: drive.  I use a hosts file to map the actual IP address of my system to the domain names rather then using the loopback.   Apache uses virtual hosts to locate each site.   When coldfusion is installed I use that wwwroot to place the cfide directory.
    The error that it was showing in the application log was:
    "Error","jrpp-9","07/22/09","20:45:11",,"File not found: /Adobe_CFC_Generator/handlers/index.cfm The specific sequence of files included or processed is: C:\wwwroot\CFIDE\Adobe_CFC_Generator\handlers\index.cfm'' "
    The Adobe CFC Generator was attempted both with and without spaces.  The CFIDE directory being in the path even though the actual install location was C:\wwwroot\Adobe_CFC_Generator seemed a little odd so I tried simply locating the generator files in the CFIDE and everything seems to be working.
    Also note that I had attempted to create a mapping to the Adobe CFC Generator files in ColdFusion and through a VirtualHost and both did not work because of the spaces in the name.  Which Is why I tried the _'s.  It still did not work though.
    Not sure if this is a bug or (more likley) that my configuraiton is just odd but as long as it continues to work I am cool with it.
    Any thoughts?

  • CF 9.01 - jrun.exe SQLServerURLParser Path Not Found

    I found a similar post about this from 2 years ago (http://forums.adobe.com/thread/920226) but it had no responses. I'm hoping someone sees this and has some ideas. The server in question is running CF 9.01 Enterprise in multiserver configuration in a cluster with hf901-00008.jar  as the current patch level. all on Windows Server 2008 R2
    We began having problems a couple of days ago where sites were unresponsive, restarting IIS seemed to be the only thing that fixed the issue. We also began seeing problems with application pools shutting off (or not starting when IIS was restarted)
    Below is an exerpt from a Process Explorer log file, over the course of 45 minutes more than 1.4 MILLION of these errors are repeated.
    "11:05:03.7878844 AM","jrun.exe","1996","QueryOpen","D:\JRun4\lib\macromedia\jdbc\sqlserver\SQLServerURLPar ser.class","PATH NOT FOUND",""
    "11:05:03.7878824 AM","jrun.exe","1996","QueryOpen","D:\JRun4\classes\macromedia\jdbc\sqlserver\SQLServerUR LParser.class","PATH NOT FOUND",""
    "11:05:03.7880570 AM","jrun.exe","1996","QueryOpen","D:\JRun4\macromedia\jdbc\sqlserver\SQLServerURLParser. class","PATH NOT FOUND",""
    "11:05:03.7881455 AM","jrun.exe","1996","QueryOpen","D:\JRun4\servers\server1\macromedia\jdbc\sqlserver\SQL ServerURLParser.class","PATH NOT FOUND",""
    "11:05:03.7882880 AM","jrun.exe","1996","QueryOpen","D:\JRun4\servers\server1\cfusion.ear\cfusion.war\macro media\jdbc\sqlserver\SQLServerURLParser.class","PATH NOT FOUND",""
    "11:05:03.7884580 AM","jrun.exe","1996","QueryOpen","D:\JRun4\servers\server1\cfusion.ear\cfusion.war\WEB-I NF\classes\macromedia\jdbc\sqlserver\SQLServerURLParser.class","PATH NOT FOUND",""
    "11:05:03.7907685 AM","jrun.exe","1996","QueryOpen","D:\JRun4\servers\server1\cfusion.ear\cfusion.war\WEB-I NF\cfusion\lib\macromedia\jdbc\sqlserver\SQLServerURLParser.class","PATH NOT FOUND",""
    "11:05:03.7908994 AM","jrun.exe","1996","QueryOpen","D:\JRun4\servers\server1\cfusion.ear\cfusion.war\WEB-I NF\cfusion\gateway\lib\macromedia\jdbc\sqlserver\SQLServerURLParser.class","PATH NOT FOUND",""
    "11:05:03.7910091 AM","jrun.exe","1996","QueryOpen","D:\JRun4\servers\server1\cfusion.ear\cfusion.war\WEB-I NF\flex\jars\macromedia\jdbc\sqlserver\SQLServerURLParser.class","PATH NOT FOUND",""
    "11:05:03.7911502 AM","jrun.exe","1996","QueryOpen","D:\JRun4\servers\server1\cfusion.ear\cfusion.war\WEB-I NF\cfform\jars\macromedia\jdbc\sqlserver\SQLServerURLParser.class","PATH NOT FOUND",""
    "11:05:03.7914672 AM","jrun.exe","1996","QueryOpen","D:\JRun4\servers\lib\macromedia\jdbc\sqlserver\SQLServ erURLParser.class","PATH NOT FOUND",""
    "11:05:03.7916013 AM","jrun.exe","1996","QueryOpen","D:\JRun4\servers\cfusion\cfusion-ear\cfusion-war\WEB-I NF\cfusion\lib\oosdk\classes\macromedia\jdbc\sqlserver\SQLServerURLParser.class","PATH NOT FOUND",""
    "11:05:03.7917110 AM","jrun.exe","1996","QueryOpen","D:\JRun4\servers\cfusion\cfusion-ear\cfusion-war\WEB-I NF\cfusion\lib\oosdk\lib\macromedia\jdbc\sqlserver\SQLServerURLParser.class","PATH NOT FOUND",""
    "11:05:03.7918284 AM","jrun.exe","1996","QueryOpen","D:\JRun4\servers\cfusion\cfusion-ear\cfusion-war\WEB-I NF\cfusion\lib\lib\macromedia\jdbc\sqlserver\SQLServerURLParser.class","PATH NOT FOUND",""
    "11:05:03.7919388 AM","jrun.exe","1996","QueryOpen","D:\JRun4\servers\cfusion\cfusion-ear\cfusion-war\WEB-I NF\cfusion\lib\oosdk\bin\macromedia\jdbc\sqlserver\SQLServerURLParser.class","PATH NOT FOUND",""
    This seems excessive and a waste of processor cycles if this is part of the normal class loading process...

    This behavior occurs only If I put a <cfapplication> tag on my cfm page.
    When I put the <cfapplication> tag in an explicit file Application.cfm, cfc syntax error messages appears correctly.
    Maybe just a problem with my configuration (IIS7), but perhaps an indication...

  • Application.cfc not compiling

    My application.cfc not compiling. I'm using application.cfc
    first time, i'm used to using application.cfm, but now trying to
    switch.
    I've attached the code. Application.cfc is not being executed
    for some reason.
    My environment:
    win2008
    cf8
    iis7
    Thank you,
    Syed

    > application.cfc is not listed in Execution file list
    like application.cfm. Non
    > of the application or session variables are being
    created.
    OK, thanks clarifying that.
    Application.cfc will only be listed in the debugging if
    there's an event
    handler to be run; if you don't have an onRequestStart
    handler, it won't be
    running anything _every request_.
    I suspect you - and jbird5k - have both added code to your
    onApplicationStart event handler after the application had
    already started.
    The onApplicationStart event handler is only run ONCE during
    the life of
    the application (IE: when it's first hit after the CF service
    starts).
    For changes to onApplicationStart to be run, you need to
    restart your
    application.
    I think it was BKBK who suggested that the quickest way to do
    this is to
    change the name of the application - temporarily - so that CF
    thinks it's a
    different application. Or just restarting CF.
    It might be an idea to add an onRequestStart event handler
    which checks for
    a restartApp URL variable, and if found and if true, re-run
    onApplicationStart(). This means less monkeying with your
    code or CF to
    get the app to restart.
    Adam

  • Item cost not found for one or more items - Inventory Posting

    Good Day Mentors,
    My user has encountered an error during Inventory Posting and its "Item cost not found for one or more items".
    The specific Message ID from SAP's System Message Log is 10001287.
    I found a similar post which addresses this error here.
    But unfortunately it did not help me solve my user's problem.
    I already checked if the items had a defined "Item Cost" in the Item Master Data Inventory Tab, and they all have "Item Cost" defined.
    I'm not sure if this will help, but below is the Inventory Audit Report of one of the items that is throwing the "Item cost not found" error.
    I am not a business consultant neither am I literate in accounting, so thanks for the patience.
    SAP Version: 9.0 PL5
    Valuation Method: Moving Average
    Thanks in advance!
    Sean

    Hi Augusto and Raviraj,
    I've already verified in our production database the points you made:
    - Is the "Manage Item cost per warehouse" selected in the Basic Initialization Screen?
    YES
    - Is the "Manage Inventory by Warehouse" ticked/checked in the "Inventory Data" tab of the "Item Master Data" screen?
    YES
    * I apologize for not have been able to give this information upfront.
    Anyway, the database only has one warehouse at the moment.
    I've checked the items, like the item in the screen shot above, and it does have an item cost.
    Below is the screenshot of the sample item from my original post,
    Thanks in advance!
    Sean

  • Itunes wont open at all, error message : quicktime was not found .... please reinstall ... i did that but no luck this only seems to have happened since the 10.4 update, im on windows 7 ..

    itunes wont open at all, error message : quicktime was not found .... please reinstall ... i did that but no luck this only seems to have happened since the 10.4 update, im on windows 7 ..

    Can you start QuickTime on your computer?
    You'll probably have to search for the Windows Installer Cleanup Utility and use it to remove QuickTime Player and iTunes. Then download and install the iTunes again.

  • I was updating Firefox from version 6 to version 7, after updating I tried to open Firefox and the message I got is this: This application has failed to start because xul.dll was not found. How can I fix this?

    I was updating Firefox to the newest version 7.0.1 from version 6.0.2 I think it was, I clicked the restart Firefox button that always comes up after updating. It started updating and then Firefox never restarted like it was supposed to after it was done updating. I then tried to open Firefox and it told me "This application has failed to start because xul.dll was not found." I did have Firefox crash on maybe about 30 minutes or so earlier which bothered me because I have been using Firefox for years and never had it crash on me before but I didn't think much of it at the time it happened because I was able to go back onto Firefox and finish what I had been working on. A while later I checked for updates and updated. The first time I tried to update it didn't work though so I had to shutdown Firefox and reopen Firefox and start the update a second time. It was after the second time that when I tried to open Firefox I got that message about failing to start because xul.dll can't be found. I filed a crash report when my Firefox crashed. This would have been around 1am-2am in the morning that Firefox first crashed and then wouldn't allow me to open it after updating. I have a DELL laptop running the Windows XP operating system but the laptop is probably at least 6 or 7 years old. The laptop will no longer charge so I always have to have it plugged into an outlet. Both my laptop hard drive and my external hard drive give me messages that I am running out of disk space on my hard drive. I bought this laptop 6 or 7 years ago second hand so it could be even older. In short it's a piece of crap and it gives me all kinds of issues but I currently can't afford a new one, but I have never had any problems with Firefox and I use Firefox more than any other aspect of my laptop so it's really really bothering me. May you please help me fix it?

    Unfortunately I tried that and it didn't work. Thanks for the help though. I tried to uninstall and it said I couldn't because the file is corrupt or something, but I think I finally got it uninstalled and/or deleted or whatever, but now I try to reinstall/download it again from the beginning and I can't. No matter what I do I can not get Firefox working again. No matter how many times I try to redownload it. Any other suggestions?

  • JBO:33001 bc4j.xcfg file not found in class path

    Hi,
    I am yet another victim of the age-old error JBO:33001 bc4j.xcfg file not found in class path, When i have my BC4JApp.jar in Tomcat Web-inf/lib directory. All the other jar files and class files in my webserver-application web-inf classes and lib directory works.
    But Tomcat server is not able to read this bc4j.xcfg file. I can see in my jar file that this bc4j.xcfg exists and in the specified package directory. still the problem persists. My BC4JApp.jar is perfectly working when i use JDeveloper. but not when i use tomcat4.0 and call a JSP using BC4JApp.jar from browser (My environment is Jdeveloper3.2, Tomcat4.0+IIS in middle tier and oracle 8i as DB, everything on windows2k)
    I have gone through almost all the threads possible that relates to this error in this form. None of them have a answer except to say "put the file in classpath". and last reply is "will fix in jDeveloper 9i. So what happens to us who are working in Jdeveloper 3.2?
    1. I have this file in my jar file.
    2. I also tried creating a seperate directory manually, with the same name as my package under web-inf/classes, web-inf/lib , just under web-inf directory and atlast under approot directory also. I tried having my package directory containing bc4j.xcfg in these folders one at a time and also tried having this directory in all these folders at the same time.
    Still no solution.
    Itz frustrating that neither proper documentation nor a right url page nor i am aware of available addressing this. page links given in above threads only gives me the wonderful page of ie's "Page cannot be displayed".
    Is there a answer to this error and my problem. If this doesn't work, then i have to all the way develop from scratch creating my jsp using JDBC calls and Stored packages etc.
    I don't want to give up on this Jdeveloper at this final moment because if this bc4j.xcfg file is found, my application will work perfectly. on these final moments, if this doesn't work, i am frightened to imagine to develop my application in standard way. Atlast, if thatz the option left,we have to do that bcos our production date is close by.
    Please can some one in this forum or Jdeveloper help me to solve this problem. I am desperate and very urgent.
    Waiting for a reply from Jdev team very much...
    ( I just posted in the other thread which is pretty old, dated backto May 2001, which was relevant to this error. Just to make sure it is noticed, I am posting it seperately too)
    Thanks
    Hari(2/3/02)

    Hi All,
    For those who are following this thread, I got a solution for this error with the help of Jdev Team.
    This solution may work, if you have deployed your application in Tomcat4.0.1. This is the environment in which I work and tested.
    As you may be aware, Tomcat ignores value in CLASSPATH variable.
    To see any files that are existing or newly deployed, it has it own way of detecting it.
    Addition information on Tomcat working, you can follow this link,
    http://jakarta.apache.org/tomcat/tomcat-4.0-doc/index.html
    Coming to point, Tomcat has got five classloaders and each classloader invoked, looks in their related directories for files in following order.
    1. /WEB-INF/classes of your web-application
    2. /WEB-INF/lib/*.jar of your web application
    3. BootStrap classes of your JVM (Tomcat's $JAVA_HOME/jre/lib/ext)
    4. System class loader classes($CATALINA_HOME/bin/bootstrap.jar,CATALINA_HOME/lib/tools.jar)
    5. $CATALINA_HOME/common/classes
    6. $CATALINA_HOME/common/lib/*.jar
    7. $CATALINA_HOME//classes
    8. $CATALINA_HOME/lib/*.jar
    So All your individual application related files should be deployed in your application's WEB-INF/classes or WEB-INF/lib directory accordingly.
    If your application files are unpacked, they should be deployed or copied under WEB-INF/classes directory
    if the files are within a jar, they should be under WEB-INF/lib directory.
    If your Jar-files contains bc4j components, then those jar files should be deployed under WEB-INF/lib directory. Also,do the next step to copy all relavant BC4J runtime libraries under lib directory.
    IMPORTANT: Please remember to copy and paste all the required BC4j runtime libraries in the Same WEB-INF/lib directory along with your application jar files. This is the real reason which can solve this JBO:33001 to disappear. It worked for me.
    To configure your directory for tag-lib uri's, use web.xml to set the taglib-uri attribute.
    Put your web.xml and DataTags.tld in the WEB-INF directory.
    Your simple web.xml may look like as follows.
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
         <taglib>
              <taglib-uri>
                   /webapp/DataTags.tld
              </taglib-uri>
              <taglib-location>
                   /WEB-INF/DataTags.tld
              </taglib-location>
         </taglib>
    </web-app>
    You may then modify this web.xml to suit further requirements of your application.
    Remember to stop and restart the Tomcat Server (service) by using shutdown and startup scripts after updating any jar files/class files/ JSP or source files deployed in Tomcat.
    Sometimes, only this helps even though your context's reloadable attribute is set to true in Tomcat Server's server.xml file.
    Hope this above information helps you to solve this error in Tomcat environment. My Sincere thanks once again to Juan and Jdev team for their help and efforts to solve this problem.
    Thanks
    Hari

  • File not found error

    I get the following error, but don't know why it can't find the file. Is there anything in this script that would call "\" instead of "/"? Is there any line of code that will switch a wayward "\" back?
    01-09-24 09:37:02 - path="" :jsp: init
    2001-09-24 09:43:42 - path="" :LoginServlet: init
    2001-09-24 09:44:15 - path="" :CourseServlet: init
    2001-09-24 09:46:48 - path="" :LessonServlet: init
    2001-09-24 09:46:54 - path="" :Error: /usr/local/apache/sites/tesco.spinweb.net/htdocs/cmi/courses\Food Service/Intro/AU00.html (No such file or directory)
    The script is below. Thanks for any help anyone can provide me.
    import cmi.xml.AU;
    import cmi.xml.Block;
    import cmi.xml.CourseReader;
    import cmi.xml.CSFElement;
    import java.io.BufferedReader;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileNotFoundException;
    import java.io.FileReader;
    import java.io.IOException;
    import java.io.ObjectInputStream;
    import java.io.PrintWriter;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.util.Enumeration;
    import java.util.Hashtable;
    import java.util.Vector;
    import javax.servlet.ServletConfig;
    import javax.servlet.ServletException;
    import javax.servlet.ServletOutputStream;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import javax.servlet.http.HttpSession;
    import javax.servlet.http.HttpServlet;
    import org.jdom.JDOMException;
    public class LessonServlet extends HttpServlet
    public void init (ServletConfig config) throws ServletException
    super.init (config);
    try {
                   Class.forName (GlobalData.DatabaseDriverName);
                   _jdbcConnection = DriverManager.getConnection (GlobalData.DatabaseName, "tesco", "scorm");
    _jdbcConnection.setAutoCommit (true);
    //should I do this?
    //_jdbcConnection.setAutoCommit (false);
    //load serialized course data
    loadCourseData();
              catch (Exception xcp) {
                   xcp.printStackTrace();     
                   getServletContext().log("Error: " + xcp.getMessage());     
    public void doGet( HttpServletRequest request,
                             HttpServletResponse response)
              throws ServletException, IOException
    boolean normalMode = true;
    try {
    HttpSession session = request.getSession (true);
    //can I load the session given the id??
    //System.out.println ("Lesson.valid session " + session.getId() + ": " + request.isRequestedSessionIdValid());
    response.setContentType ("text/html");
    JDBCHelper dbHelper = new JDBCHelper (_jdbcConnection);
    //get student ID
    Integer studentID = (Integer) session.getAttribute ("studentID");
    //get course ID
    Integer courseID = (Integer) session.getAttribute ("courseID");
    //get lesson ID
    String lessonID = request.getParameter ("lessonID");
    if (lessonID == null) {
    lessonID = (String) session.getAttribute ("lessonID");
    if (studentID == null || courseID == null || lessonID == null) {
    //reset session data by re-logging the user
    sendProfileError (response.getOutputStream());
    return;
    //store lesson ID in session
    session.setAttribute ("lessonID", lessonID);
    String auID = request.getParameter ("auID");
    String mode = request.getParameter ("mode");
    if (mode != null) {
    session.setAttribute ("mode", mode);
    else {
    mode = (String) session.getAttribute ("mode");
    if (mode.equalsIgnoreCase ("review")) {
    normalMode = false;
    else {
    normalMode = true;
    //synchronize access to course hash table
    synchronized (_courseHash)
    //make sure _courseHash is in tact
    if (_courseHash == null) {
    //try reloading it....
    loadCourseData();
    if (_courseHash == null) {
    //error
    response.getOutputStream().close();
    throw new IOException ("Corrupt course data");
    if (! _courseHash.containsKey (courseID.toString())) {
    //try reloading it....
    loadCourseData();
    if (! _courseHash.containsKey (courseID.toString())) {
    //error
    response.getOutputStream().close();
    throw new IOException ("Corrupt course data (course not found)");
    if (auID == null) {
    //show course menu
    Hashtable hash = (Hashtable) _courseHash.get (courseID.toString());
    sendAvailableAUs (hash, studentID.intValue(), courseID.intValue(), lessonID, response.getOutputStream(), response, dbHelper);
    return;
    //if AU has not been attempted, initialize it
    Integer auDataID = new Integer (getAUDataID (studentID.intValue(), courseID.intValue(), lessonID, auID, dbHelper));
    //if (getAUDataID (studentID.intValue(), courseID.intValue(), lessonID, auID, dbHelper) == -1) {
    if (auDataID.intValue() == -1) {
    int newID = initializeAUData (studentID.intValue(), courseID.intValue(), lessonID, auID, dbHelper);
    dbHelper.addAUToPath (studentID.intValue(), courseID.intValue(), lessonID, auID);
    auDataID = new Integer (newID);
    session.setAttribute ("AUID", auID);
    session.setAttribute ("AUDataID", auDataID);
    sendAU (studentID.intValue(), courseID.intValue(), lessonID, auID, auDataID.intValue(), normalMode, response.getOutputStream(), dbHelper);
    //to do: detailed messages should be sent to the client depending on which
    // exception was thrown. Don't have one try/catch....have one for each situation
    catch (Exception e) {
    e.printStackTrace();
                   getServletContext().log("Error: " + e.getMessage());
    public void destroy()
              try {
                   if (_jdbcConnection != null) {
                        _jdbcConnection.close();
              catch (Exception ignored) {}
    private int initializeAUData (int studentID, int courseID, String lessonID, String auID, JDBCHelper dbHelper)
    String sqlQuery = null;
    ResultSet results = null;
    try {
    //get student's name
    sqlQuery = "SELECT Full_Name" +
    " FROM " + GlobalData.StudentTable +
    " WHERE Student_ID = " + studentID;
    results = dbHelper.doQuery (sqlQuery);
    if (! results.next()) {
    //error
    return -1;
    String studentName = results.getString (1);
    results.close();
    //the lock prevents CMIServlet from reading AU_ID before it's committed
    //sqlQuery = "LOCK TABLES " + GlobalData.AUDataTable + " WRITE;";
    //System.out.println (sqlQuery);
    //dbHelper.executeUpdate (sqlQuery);
    sqlQuery = "Insert Into " + GlobalData.AUDataTable +
    "(Course_ID, Lesson_ID, AU_ID, student_id, student_name, lesson_location, credit," +
    " lesson_status, entry, exit, score_raw, score_max, score_min, total_time," +
    " session_time, lesson_mode, suspend_data, launch_data, Evaluation_ID, Objective_ID)" +
    " Values (" + courseID + ", '" + lessonID + "', '" + auID + "', " + studentID + ", '" + studentName + "'," +
    " 'NA', 'credit'," + " 'not attempted', 'ab-initio', " + "'NA', " + 0 + ", " + 0 + ", " + 0 +
    ", '00:00:00.0', '00:00:00.0', " + " 'normal'" + ", 'NA', " + "'NA', " + 0 + ", " + 0 + ");";
    dbHelper.executeUpdate (sqlQuery);
    return getAUDataID (studentID, courseID, lessonID,auID, dbHelper);
    //sqlQuery = "UNLOCK TABLES;";
    //System.out.println (sqlQuery);
    //dbHelper.executeUpdate (sqlQuery);
    catch (Exception e) {
    e.printStackTrace();
                   getServletContext().log("Error: " + e.getMessage());
    return -1;
    private int getAUDataID (int studentID, int courseID, String lessonID, String auID, JDBCHelper dbHelper)
    throws SQLException
    String sqlQuery = "SELECT AUData_ID, lesson_status, lesson_mode, exit" +
                                  " FROM " + GlobalData.AUDataTable +
                                  " WHERE student_id = " + studentID +
                                  " AND Course_ID = " + courseID +
    " AND Lesson_ID = " + "'" + lessonID + "'" +
    " AND AU_ID = '" + auID + "';";
    ResultSet results = dbHelper.doQuery (sqlQuery);
    if (results.next()) {
    return results.getInt ("AUData_ID");
    return -1;
    private void sendAU (int studentID, int courseID, String lessonID, String auID, int auDataID, boolean normalMode, ServletOutputStream htmlOut, JDBCHelper dbHelper)
    throws IOException, ClassNotFoundException
    Hashtable hash = null;
    synchronized (_courseHash)
    hash = (Hashtable) _courseHash.get (String.valueOf (courseID));       
    if (hash == null) {
    loadCourseData();
    hash = (Hashtable) _courseHash.get (String.valueOf (courseID));
    if (hash == null) {
    throw new IOException ("Corrupt course data (course not found)");
    AU au = (AU) hash.get (auID);
    try {
    if (! normalMode) {
    dbHelper.setReviewMode (auDataID);
    String courseFileName = getFileName (String.valueOf (courseID), dbHelper);
    File file = new File (courseFileName);
    //create absolute path to file so we can resolve relative URLs
    String newFileName = file.getParent() + "\\" + au.getLaunchParams();
                   BufferedReader buf = new BufferedReader (new FileReader (newFileName));
    PrintWriter htmlWriter = new PrintWriter (htmlOut);
                   String temp;
    htmlWriter.write (getAUHtml (au.getLaunchParams()));
    htmlWriter.flush();
    htmlWriter.close();
    catch (Exception e) {
    e.printStackTrace();
                   getServletContext().log("Error: " + e.getMessage());
    private String getAUHtml (String path){
    path = path.replace ('\\','/');
    String response;
    response = "<html>\n" +
                        "<head>\n" +
    "</head>\n" +
    "<body>\n" +
    "<script language=\"JavaScript\">\n" +
    "document.location = \"/cmi/courses/" + path + "\"\n" +
    //"win = window.open ('','displayWindow','menubar=yes,scrollbars=yes,status=yes,width=300,height=300');\n" +
    //"window.onload = \"win.close();\"" +
    "</script>\n" +
    "</body>\n" +
    "</html>\n";
    return response;
    private void sendAvailableAUs (Hashtable hash, int studentID, int courseID, String lessonID, ServletOutputStream out, HttpServletResponse response, JDBCHelper dbHelper)
    StringBuffer buf = new StringBuffer (200);
    Block block = (Block) hash.get (lessonID);
    AU au = null;
    try {
    Vector completedAUs = dbHelper.getCompletedAUs (studentID, courseID, lessonID);
    buf.append ("<html>\n" +
                        "<head>\n" +
    "<title>" + block.getTitle() + " units</title>\n" +
    "<script language=\"JavaScript\">\n" +
    "function go() {\n" +
    " var form = document.goForm;\n" +
    " var index = form.gotoSelect.selectedIndex;\n" +
    " if (index == 0) {\n" +
    " document.location = \"/servlet/CourseServlet?courseID=" + courseID + "\";\n" +
    " }\n" +
    " else if (index == 1) {\n" +
    " top.restart();\n" +
    " }\n" +
    "}\n" +
    "</script>\n" +
    "</head>\n" +
    "<body background=\"/cmi/images/marble.jpg\">\n" +
    "<center><h1><b><u>" + block.getTitle() + "</u></b></h1></center>\n" +
    "<p></p>\n<p></p>\n" +
    "<b>" + block.getTitle() + " contains the following units: </b>\n" +
    "<dl>\n");
    Enumeration enum = block.getChildren();
    while (enum.hasMoreElements()) {
    String temp = (String) enum.nextElement();
    CSFElement element = (CSFElement) hash.get (temp);
    if (element.getType().equals ("au")) {
    au = (AU) element;
    if (completedAUs.contains (au.getID())) {
    buf.append ("<dt><p><img src=\"/cmi/images/node2.gif\"><a href=\"/servlet/LessonServlet?lessonID=" + block.getID() + "&auID=" + au.getID() + "&mode=review\">" + au.getTitle() + " (<i>review</i>) </a></p></dt>\n");
    else {
    buf.append ("<dt><p><img src=\"/cmi/images/node.gif\"><a href=\"" + response.encodeURL ("/servlet/LessonServlet?lessonID=" + block.getID() + "&auID=" + au.getID() + "&mode=normal") + "\">" + au.getTitle() + "</a></p></dt>\n");
    else if (element.getType().equals ("block")) {
    buf.append ("<dt><p><img src=\"/cmi/images/folder.gif\"><a href=\"" + response.encodeURL ("/servlet/LessonServlet?lessonID=" + element.getID() + "&mode=normal") + "\">" + element.getTitle() + "</a></p></dt>\n");
    buf.append ("</dl>\n" +
    "<br><br>\n" +
    "<form name=\"goForm\">\n" +
    "<select name=\"gotoSelect\">\n" +
    " <option value=\"lesson\">Lesson Menu</option>\n" +
    " <option value=\"exit\">Exit LMS</option>\n" +
    "</select>\n" +
    "<input type=\"button\" value=\"Go\" onClick=\"go()\">\n" +
    "</form>\n" +
    "</body>\n" +
    "</html>");
    PrintWriter writer = new PrintWriter (out);
    writer.write (buf.toString());
    writer.flush();
    writer.close();
    catch (Exception e) {
    e.printStackTrace();
                   getServletContext().log("Error: " + e.getMessage());
    private String getFileName (String courseID, JDBCHelper dbHelper)
    throws ClassNotFoundException, SQLException
              ResultSet results = null;
              String fileName = null;
    String sqlQuery = "SELECT CourseFile" +
                                  " FROM Course" +
                                  " WHERE Course_ID = " + Integer.parseInt (courseID) + ";";
    results = dbHelper.doQuery (sqlQuery);
              if (results.next()) {
                   fileName = results.getString (1);
              else {
    //need to do more than this :)
                   System.out.println("crap");
    results.close();
    return fileName;
    private void loadCourseData()
    throws IOException, ClassNotFoundException
    //load serialized course data
    File file = new File (GlobalData.DataFileName);
    if (! file.exists()) {
    //error
    throw new FileNotFoundException (GlobalData.DataFileName + " not found.");
    FileInputStream fis = new FileInputStream (GlobalData.DataFileName);
    ObjectInputStream ois = new ObjectInputStream (fis);
    _courseHash = (Hashtable) ois.readObject();
    ois.close();
    private void sendProfileError (ServletOutputStream out)
    String html = "<html>\n" +
    "<body>\n" +
    "<p>An error has occurred with your profile. Please " +
    "<a href=\"\" onClick=\"top.restart(); return true\">login again</a>" +
    "</body>\n" +
    "</html>\n";
    PrintWriter writer = new PrintWriter (out);
    writer.write (html);
    writer.flush();
    writer.close();
    private Connection _jdbcConnection;
    private Hashtable _courseHash;

    I know that is where my error is, but why and where is
    the script calling it up way?You wrote it right? check out the sendAU() method, there is line
    String newFileName = file.getParent() + "\\" + au.getLaunchParams();

Maybe you are looking for

  • Problem about transaction of  mdb

    I've made a MDB,it works fine in WLS7.0, but when I upgraded the server from WLS7.0 to WLS8.1, I found this error:           java.sql.SQLException: Cannot call Connection.rollback in distributed transaction. Transaction Manager will commit the resour

  • Missing VIP mail folder

    VIP Mail folder missing after upgrade 10.9.5

  • VO Auto Refresh error - Unsupported query for Continuous Query Notification

    I created a read only view object and set the auto refresh property to true. According to the documentation that was all that need to be done in order to enable auto-refresh for a view instance of a shared application module (which I am using to retr

  • Different Page Header

    Hi, I am working in AR Invoice Report. The requirement is to print the invoice along with terms and condition, which is the last page. We don't require the logo and company information to appear on the terms and condition page. For this we have used

  • Apply Fill Color to Group Item with Applescript

    Is it possible to set the fill color of a group item using applescript and CS3? The group contains paths and text that have the same fill color with no strokes.I am able to select the group and delete it or move it (with applescript) but have had no