"The specified resource is reserved" in DAQ error

Dear all,
Earlier before I posted a thread on "stop error caused by device driver?". The problem was partially solved, however, new problems start to come up.
Basically the problem is that I have an PXI-6115 DAQ card, I used its two output channels to control my scan mirrors (by send two sawtooth waveform out). Everytime I finished one scan cycle, I need to put the mirror back to its originial position by using the same two output channels (sending two single voltage out). Since these two tasks are of different type, I created two different tasks: scanTask and parkTask. Then I do the following as suggeted by TheWoost:
1. create and configure task handles for scanTask
2. create and configure task handles for parkTask
3. start scanTask and stop after finished one scan cycle
4. start parkTask and stop after returning to orginial position
Then repeat 3 and 4. The problem comes in when I get to step 4: "Function DAQmxStartTask: (return value == -50103 [0xffff3c49]). The specified resource is reserved. The operation could not be completed as specified. Task Name: _unnamedTask<1>  Status Code: -50103"
I browsed through the knowledge base and realized that I cannot have two tasks using the same output channel, even though only one of them is active. If I clear scanTask after stopping it, then recreate it when I need it, that would be fine. However, that would be too much trouble. I was wondering if my understanding is right. If yes, is there anyway to get around it? I need to run scanTask and parkTask in a loop and it would be hard to recreate the task everytime.
Any input is highly appreciated. Thank you for your time.
Best Regards,
Dan

Dear Rob,
Thank you for offering your expertise on this problem. I would be happy to include my code here. Right now I take the alternative approach by  clearing each task after it's finished and then recreate them. It works fine but brings in complexity and inconvenience. If you can get away with this, that would be great.
The code is an except from the whole program. Since I changed it back and forth so many times, there might be some errors. The main part is focusButton and stopButton. When I hit focusButton, the two mirror outputTask are running. When I hit stopButton, I stop these tasks and call parkLaser function, which assign the outputTask to do single point output. Then I can do focus again. This is the part that gives problem.
If there is anything that is unclear, please let me know.
Best,
Dan
Attachments:
scanimage2.c ‏47 KB
Scanimage.uir ‏48 KB

Similar Messages

  • Error 50103 the specified resource is reserved - task name - on 4 modules

    Hi all.
    I'm sorry i put this post by mistake in Measurement Studio for.NET: smileyindifferent:
    Let me tell you my configuration:
    software:   Windows XP sp3, Labview 8.5 en.
    hardware:   NI-cDAQ chassis 9172 with 4 modules installed (in this order):
                            1. NI-9217 (4 RTDs)
                            2. NI-9217 (4 RTDs)
                            3. NI-9219 (4 RTDs)
                            4. NI-9219 (4 RTDs)
    So, i want to aquire 16 temperatures.
    In MAX v4.3, all is working fine.
    As you aspected, I have the famous error 50103:  "The specified resource is reserved. The operation could not be completed
    as specified". "Task name: unnamedTask<9>".   - highlighting module #2.
    My goal is to read these temperatures consecutively, i mean: mod1 ch0..ch3, mod2 ch0..ch3 and so on.
    My programm (vi) is like that:
    In a while loop I have a Stacked Sequence Structure which has 4 frames, each for every DAQ Assistant asigned and configurated
    for those modules.
    So i have: Assitant1 for mod1, Assistant2 for mod2, and so on.
    The Assistants work well in configuration preview mod. (I see 4 temperatures on each module).
    But in my programm, i got the error above, on module2.
    I read something about this error and I understand that I can't use 2 or more resource in the same time.
    I understand that a resource represents a channel on a module.
    At each DAQ Assistant output I have a Split Signal (split in 4)
    But with this configuration and this algorithm I suppose I read all 16 channels in total consecutively, not in the same time.
    Am I wrong ?
    How can I fix the problem ? : smileysad:
    Thanks.
    Solved!
    Go to Solution.

    Hi dsasorin,
    The error that you have mentioned can be caused due to a number of reasons. There is a knowledgebase article listing several reasons for it that can be helpful. Have you created a task beforehand in MAX? Are you generating the code directly from it or are you writing the code in LabVIEW and asking it to use the channels from the task you specify? Have you tried using the lower level DAQmx VIs such as DAQmx Task name and then tried generating code from that by right-clicking and selecting Generate Code >> Configuration and Example. Hope this helps!
    Ipshita C.
    National Instruments
    Applications Engineer

  • Error -50103 the specified resource is reserved

    I installed DAQ 8.0, and loaded the example AcqIntClk and ir ran with a simulated device PCIMIO16XE10. Then I ran a measurement studio example in which I had to create a task using MAX. That ran okay. Then I deleted the task I had created, and returned to AcqIntClk and ran it again. This time I get the error when I press Start
    error -50103 the specified resource is reserved
    Please advise what to do?
    Thnaks,
    Saroj

    Hi saroj-
    Let's consolidate this discussion here.
    Thanks-
    Tom W
    National Instruments

  • Daqmx error num: -50103 with message: The specified resource is reserved. The operation could not be completed as specified.

    Hi, I am running a program where I have 4 nidaq cards on a single machine, all connected. I am trying to start a counter and keep getting that error (daqmx error num: -50103 with message: The specified resource is reserved. The operation could not be completed as specified.) in two places in my code. I understand what the error means (you can only have one task of a type per card), but I don't see where that is occuring in my code.
    See below for code. I noted the two places where the error is occuring. I am debugging someone else's code, which is part of the problem.
    Thanks!
    counterTask = 0;
    daq_err_check( DAQmxCreateTask( "counter_generation_task",
    &(counter_generation_task) ));
    daq_err_check( DAQmxCreateTask("counter_count_task",
    &(counter_count_task) ));
    char co_chan_name[40];
    char ci_chan_name[40];
    char ci_trig_chan_name[40];
    sprintf( co_chan_name, "%s/ctr0", niDev);
    sprintf( ci_chan_name, "%s/ctr1", niDev);
    sprintf( ci_trig_chan_name, "/%s/PFI9", niDev);
    printf("OK1");fflush(stdout);
    daq_err_check( DAQmxCreateCOPulseChanTicks( counter_generation_task,
    co_chan_name, "", "ai/SampleClock",
    DAQmx_Val_Low, 32,16,16) );
    daq_err_check( DAQmxCfgImplicitTiming( counter_generation_task,
    DAQmx_Val_ContSamps, 1000) );
    daq_err_check( DAQmxCreateCICountEdgesChan( counter_count_task,
    ci_chan_name, "",
    DAQmx_Val_Rising, 0, DAQmx_Val_CountUp) );
    daq_err_check( DAQmxCfgSampClkTiming( counter_count_task,
    "Ctr0InternalOutput", 1000.0, DAQmx_Val_Rising,
    DAQmx_Val_ContSamps, 1000) );
    daq_err_check( DAQmxSetRefClkSrc( counter_generation_task, "OnboardClock") );
    daq_err_check( DAQmxSetRefClkSrc( counter_count_task, "OnboardClock") );
    printf("abt to start counter_count\n"); fflush(stdout);
    daq_err_check ( DAQmxStartTask( counter_count_task ) ); // ERROR OCCURS HERE
    printf("abt to start counter_gen\n"); fflush(stdout);
    daq_err_check ( DAQmxStartTask( counter_generation_task ) ); // ERROR OCCURS HERE
    fflush(stdout);
    Thanks again for your patience!

    I get it when capturing from my mini DV cam (which is not controllable by FCP). To resolve, I have to click Capture Now a split second after I start the DV tape rolling.

  • How to solve the error "The specified resource is reserved" when running with DAQmx And LabVIEW?

    How to solve the error "The specified resource is reserved" when running with DAQmx And LabVIEW?

    I hate "J term"
    OK I love the learning the students get.   And, I like helping them out!  But, as a former man who's got the varicose viens to prove he's spent time "behind the podium" (yeah, "behind the podium" puts 'em to sleep- songs and dances for the young'uns) come on! USE the tools you teach!
    Instructors invited to engage in the forums
    Jeff

  • Error: the specified resource is reserved.

    Hi all,
    I have composed a program that is going to read 4 analog input voltages, however, I get error as shown in the picture.  Basically, Dev1/ai0 thru Dev1/ai3 will be used to get data from. But everytime I run this program, one of the DAQmx reads will light up and the error message will pop up and I am in trouble.
    Is there any way I can fix this problem, so that I can read all 4 AIs at the same time?
    Thanks a lot in advance.
    Pui 
    Solved!
    Go to Solution.
    Attachments:
    error.JPG ‏92 KB

    I guess you did not try to search for this error. It's been asked numerous times.
    The answer is simple - don't use 4 separate tasks. Use a single task with multiple channels.

  • SBO Mailer Error - The specified resource type cannot be found in the image file

    Hi Experts,
    I have created an alert in SBO and selected email and internal option for same. I get internal message however email is not getting delivered, I checked the Event Viewer of Windows and below error is shown for SBOMail.
    The description for Event ID 62 from source SBOMail cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.
    If the event originated on another computer, the display information had to be saved with the event.
    The following information was included with the event:
    Failed to mark records error [-1]
    The specified resource type cannot be found in the image file
    I can send email from sbo for other documents but the alert is not delivering email.
    Please advise.
    Thanks
    Deepak

    Hi Deepak..
    Check with these threads...
    http://scn.sap.com/thread/966957
    http://scn.sap.com/thread/1295818
    SBOMail Application log error
    SBOMail error in event log
    Hope Helpful
    Regards
    Kennedy

  • Why am I suddenly getting the following error message: "The specified location is reserved by the operating system and is not permitted. Please choose a different location." I've been recording all night and I haven't changed any of the parameters.

    Why am I suddenly getting the following error message: "The specified location is reserved by the operating system and is not permitted. Please choose a different location." I've been recording all night and I haven't changed any of the parameters.

    Hi Tom,
    Looks like we have problem here as we see another blank post from you here. It's probably something to do with your email. Let me send you a PM with my email address and we can communicate that way.
    Thanks,
    Kevin

  • The specified resource name cannot be found in the image file.

    Dear Experts,
    I have developed an import too and it imports many of the Business Objects from a temporary data base to SAP B1. It was running fine for more than 6 months now.
    Currently when the Tool is importing Credit Notes in to SAP B1, the following error is thrown.
    The specified resource name cannot be found in the image file.
    And I have no Clue about the error. Any one had any experience regarding the above error???
    Thanks in Advance,
    Vasu Natari.

    Hello VAsu,
    Somethimes this unexpected, ununderstandable eroor messages caused by corrupted observer dll.
    Do a clean up (delete %TEMP%SM_OBS_DLL) folder, and see the result ! (i had several issues in the past with some strange messages...)
    Regards
    János

  • One or more of the specified resources could not be re-assigned. This can happen if the proposed resource to be assigned has already an assignment on the given task or the specified assignment is deleted or rejected.

    I create a brand new plan based on a template.
    A task in that plan has a team resource assigned. the task is fixed work. The PM may change the work and duration but not the team resource.
    The plan is published.
    I delegate my self as a team resource: and try add myself to team task in the timesheet area (using insert row). I can choose some tasks and the add. Most tasks throw this error. This happens if nothing on the plan is changed - it is brand new - minutes
    old
    One or more of the specified resources could not be re-assigned. This can happen if the proposed resource to be assigned has already an assignment on the given task or the specified assignment is deleted or rejected.
    How can I stop the alert:
    One or more of the specified resources could not be re-assigned. This can happen if the proposed resource to be assigned has already an assignment on the given task or the specified assignment is deleted or rejected.
    Trying to stop the swap to Salesforce - but the errors keep a coming

    oooch - I can fix it - I need delete the task and recreate it. Which is amazingly tedious as I cannot see if a task needs recreating or not. There's 10 template plans and an average of 200 tasks - then I have to rename the template - the assign the
    new template to the EPT - this will be a long night; with only complaints at the end.
    Trying to stop the swap to Salesforce - but the errors keep a coming

  • How to handle "The specified resource does not exist" exception while using entity group transactions to purge WADLogs table

    Hi,
    We have a requirement to purge the Azure WADLogs table on a periodic basis. We are achieving this by using Entity group transactions to delete the
    records older than 15 days. The logic is like this.
    bool recordDoesNotExistExceptionOccured = false;
    CloudTable wadLogsTable = tableClient.GetTableReference(WADLogsTableName);
    partitionKey = "0" + DateTime.UtcNow.AddDays(noOfDays).Ticks;
    TableQuery<WadLogsEntity> buildQuery = new TableQuery<WadLogsEntity>().Where(
    TableQuery.GenerateFilterCondition("PartitionKey",
    QueryComparisons.LessThanOrEqual, partitionKey));
    while (!recordDoesNotExistExceptionOccured)
    IEnumerable<WadLogsEntity> result = wadLogsTable.ExecuteQuery(buildQuery).Take(1000);
    //// Batch entity delete.
    if (result != null && result.Count() > 0)
    Dictionary<string, TableBatchOperation> batches = new Dictionary<string, TableBatchOperation>();
    foreach (var entity in result)
    TableOperation tableOperation = TableOperation.Delete(entity);
    if (!batches.ContainsKey(entity.PartitionKey))
    batches.Add(entity.PartitionKey, new TableBatchOperation());
    // A Batch Operation allows a maximum 100 entities in the batch which must share the same PartitionKey.
    if (batches[entity.PartitionKey].Count < 100)
    batches[entity.PartitionKey].Add(tableOperation);
    // Execute batches.
    foreach (var batch in batches.Values)
    try
    await wadLogsTable.ExecuteBatchAsync(batch);
    catch (Exception exception)
    // Log exception here.
    // Set flag.
    if (exception.Message.Contains(ResourceDoesNotExist))
    recordDoesNotExistExceptionOccured = true;
    break;
    else
    break;
    My questions are:
    Is this an efficient way to purge the WADLogs table? If not, what can make this better?
    Is this the correct way to handle the "Specified resource does not exist exception"? If not, how can I make this better?
    Would this logic fail in any particular case?
    How would this approach change if this code is in a worker which has multiple instances deployed?
    I have come up with this code by referencing the solution given
    here by Keith Murray.

    Hi Nikhil,
    Thanks for your posting!
    I tested your and Keith's code on my side, every thing worked fine. And when result is null or "result.count()<0", the While() loop is break. I found you code had some logic to handle the error "ResourceDoesNotExist" .
    It seems that the code worked fine. If you always occurred this error, I suggest you could debug your code and find which line of code throw the exception.   
    >> Is this an efficient way to purge the WADLogs table? If not, what can make this better?
    Base on my experience, we could use code (like the above logic code) and using the third party tool to delete the entities manually. In my opinion, I think the code is every efficient, it could be auto-run and save our workload.
     >>Is this the correct way to handle the "Specified resource does not exist exception"? If not, how can I make this better?
    In you code, you used the "recordDoesNotExistExceptionOccured " as a flag to check whether the entity is null. It is a good choice. I had tried to deleted the log table entities, but I used the flag to check the result number.
    For example, I planed the query result count is 100, if the number is lower than 100, I will set the flag as false, and break the while loop. 
    >>Would this logic fail in any particular case?
    I think it shouldn't fail. But if the result is "0", your while loop will always run. It will never stop. I think you could add "recordDoesNotExistExceptionOccured
    = true;" into your "else" block.
    >>How would this approach change if this code is in a worker which has multiple instances deployed?
    You don't change anything expect the "else" block. It would work fine on the worker role.
    If any question about this issue, please let me know free.
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • The specified Resource List is invalid while adding memeber to resource lst

    HI team,
    I am trying add a item to a already exist resource list in Oracle Projects by Using an API with below code but i ma getting an error Single Planning Resource failed!.
    Error: The specified Resource List is invalid.
    Please help me in resolving in this issue.
    CODE:
    DECLARE
    l_return_status VARCHAR2(2000);
    l_msg_count NUMBER;
    l_msg_data VARCHAR2(2000);
    l_resource_list_member_id NUMBER;
    p_chr_temp_str VARCHAR2(512);
    l_chr_error_message VARCHAR2(2000);
    l_list VARCHAR2 (240 Byte) :='AS DEFAULT PRL UKH'; -- Taken from select name from pa_resource_lists
    BEGIN
    FND_GLOBAL.APPS_INITIALIZE(120345,51072,275,0,114);
    PA_RESOURCE_PUB.ADD_RESOURCE_LIST_MEMBER(
    p_commit => FND_API.G_FALSE,
    p_init_msg_list => FND_API.G_FALSE,
    p_api_version_number => 1.0,
    p_resource_list_name =>l_list,
    p_resource_list_id =>1061, -- Taken from select reource_list_id from pa_resource_lists
    p_resource_group_alias =>null,
    p_resource_group_name =>null, --
    p_resource_type_code =>NULL,--'ORGANIZATION',
    p_resource_attr_value =>'ORGANIZATION',
    p_resource_alias =>'TEST12345', -- Alias Name
    p_sort_order => PA_INTERFACE_UTILS_PUB.G_PA_MISS_NUM,
    p_enabled_flag => PA_INTERFACE_UTILS_PUB.G_PA_MISS_CHAR,
    p_resource_list_member_id => l_resource_list_member_id,
    p_msg_count => l_msg_count,
    p_msg_data => l_msg_data,
    p_return_status => l_return_status );
    dbms_output.put_line(SubStr('p_return_status = '||l_return_status,1,255));
    dbms_output.put_line('p_msg_count = '||TO_CHAR(l_msg_count));
    dbms_output.put_line(SubStr('p_msg_data = '||l_msg_data,1,255));
    dbms_output.put_line(SubStr('l_resource_list_member_id = '||l_resource_list_member_id,1,255));
    IF (l_return_status != Fnd_Api.G_RET_STS_SUCCESS) THEN
    dbms_output.put_line('Single Planning Resource failed!.');
    IF (l_msg_count > 0) THEN
    p_chr_temp_str := SUBSTR(Fnd_Msg_Pub.get(Fnd_Msg_Pub.G_FIRST, Fnd_Api.G_FALSE),1,512);
    FOR I IN 1..(l_msg_count -1) LOOP
    p_chr_temp_str := SUBSTR(Fnd_Msg_Pub.get(Fnd_Msg_Pub.G_NEXT, Fnd_Api.G_FALSE),1,512);
    END LOOP;
    dbms_output.put_line('Error: '||p_chr_temp_str);
    END IF;
    END IF;
    END;
    Thanksin Advance,
    Regards,

    You can do it one of two ways:
    1. Change the rule of the top level to deny everything.
    or
    2. Add a rule below your "map C to Z" to deny everything.
    The way it works is that when SGD finds a local drive, it'll try find a matching rule. If it doesn't find it, it'll go up the datastore structure and check for rules. And the first rule that applies, it'll use that rule. So, in your case, when SGD sees drive A (for example), it looks at the rule of the person (or profile) object and it does not find a matching rule since you only have one rule (map C to Z), so it goes up the datastore structure, and try finding a matching rule. Since you have no other rules in between, it goes all the way to the top and try to map drive A to "U" (default first drive letter).
    Hope this helps.

  • Azure Rest API PUT Block Blob Returns "The specified resource does not exist" CORS

    I am trying to upload a file to Azure Blob storage. For some reason when I try to put a new block blob on in the storage it tells me the resource does not exist. I am sure it is something silly I am missing.
    According to the documentation:
    The Put Blob operation creates a new block blob or page blob, or updates the content of an existing block blob. Updating an existing block blob overwrites any existing metadata on the blob. Partial updates are not supported with Put Blob; the content of the
    existing blob is overwritten with the content of the new blob. To perform a partial update of the content of a block blob, use the Put Block List (REST API) operation.
    CORS is setup and that seems okay.
    When I do a preflight and get this:
    Request URL:https://<account>.blob.core.windows.net/test/image.png
    Request Method:OPTIONS
    Status Code:200 OK
    Request Headers
    OPTIONS /test/image.png HTTP/1.1
    Host: <account>.blob.core.windows.net
    Connection: keep-alive
    Cache-Control: no-cache
    Pragma: no-cache
    Access-Control-Request-Method: PUT
    Origin: http://www.<site>.com
    User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.117 Safari/537.36
    Access-Control-Request-Headers: accept, content-type
    Accept: */*
    Referer: http://www.<site>.com/azure/
    Accept-Encoding: gzip,deflate,sdch
    Accept-Language: en-US,en;q=0.8
    Response Headers
    HTTP/1.1 200 OK
    Transfer-Encoding: chunked
    Server: Blob Service Version 1.0 Microsoft-HTTPAPI/2.0
    x-ms-request-id: 0d372e95-1524-460a-ab9c-7973d42a7070
    Access-Control-Allow-Origin: http://www.<site>.com
    Access-Control-Allow-Methods: PUT
    Access-Control-Allow-Headers: accept, content-type
    Access-Control-Max-Age: 36000
    Access-Control-Allow-Credentials: true
    Date: Thu, 27 Feb 2014 22:43:52 GMT
    But when I make the PUT request these are the results.
    Request URL:https://<account>.blob.core.windows.net/test/image.png
    Request Method:PUT
    Status Code:404 The specified resource does not exist.
    Request Headers
    PUT /test/image.png HTTP/1.1
    Host: <account>.blob.core.windows.net
    Connection: keep-alive
    Content-Length: 22787
    Cache-Control: no-cache
    Pragma: no-cache
    x-ms-blob-content-dis; filename = "image.png"
    User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.117 Safari/537.36
    Content-Type: image/png
    x-ms-blob-type: BlockBlob
    Accept: application/json, text/plain, */*
    x-ms-version: 2013-08-15
    Origin: http://www.<site>.com
    x-ms-date: Thu, 27 Feb 2014 23:19:19 GMT
    Referer: http://www.<site>.com/azure/
    Accept-Encoding: gzip,deflate,sdch
    Accept-Language: en-US,en;q=0.8
    Response Headers
    HTTP/1.1 404 The specified resource does not exist.
    Content-Length: 223
    Content-Type: application/xml
    Server: Blob Service Version 1.0 Microsoft-HTTPAPI/2.0
    x-ms-request-id: d5a60c8b-356a-44ff-93af-0ea720b5591f
    x-ms-version: 2013-08-15
    Access-Control-Expose-Headers: x-ms-request-id,Server
    Access-Control-Allow-Origin: http://www.<site>.com
    Access-Control-Allow-Credentials: true
    Date: Thu, 27 Feb 2014 23:22:42 GMT

    Your request must be authenticated to be able to upload a blob. Please see our
    Windows Azure Storage: Introducing CORS blog post for more information on using Shared Access Signatures with CORS.

  • "The requested resource (/hello) is not available"  Error of Servlet

    Hello all,
    I get HTTP STATUS 404 Error which states "The requested resource (/hello) is not available" even thought according to me I am doing everything perfectly.
    Here is more information. If you can find out where the proble might be please
    let me know because I am working on this for more than 9 hours.
    I AM USING-<br>
    TOMCAT 5.5.26 <br>
    JRE 6 <br>
    J2SDK 1.4.0 <br>
    </B>
    <BR><BR>
    SYSTEM VARIABLES :<br>
    <B>
    CLASSPATH
    </B>
    C:\apache-tomcat-5.5.26\common\lib\servlet-api.jar <BR>
    <B> JAVA_HOME</B> D:\j2sdk1.4.0
    <BR>
    <B>JRE_HOME</B> C:\Program Files\Java\jre6
    <BR>
    <B>TOMCAT_HOME </B>C:\apache-tomcat-5.5.26
    <BR>
    <P>
    I have placed my hello.class file inside
    <b>C:\apache-tomcat-5.5.26\webapps\ROOT\WEB-INF\classes</b>
    also, i have modified web.xml file as<br>
    <b>
    <servlet>
    <servlet-name>hello</servlet-name>
    <servlet-class>hello</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>hello</servlet-name>
    <url-pattern>hello</url-pattern>
    </servlet-mapping>
    </b><br><br>
    But still I am not able to access my servlet when i type
    http://localhost:8080/hello
    I get the error I mentioned above.

    Hi..Thanks for all those who have replied earlier. I feel I should add some more information.
    I dont know what PACKAGE NAME you are talking about
    I am pasting contents of my XML file located in :
    **apache-tomcat-5.5.26\webapps\ROOT\WEB-INF\web.xml**
    -->
    - <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4">
    <display-name>Welcome to Tomcat</display-name>
    <description>Welcome to Tomcat</description>
    - <!-- JSPC servlet mappings start
    -->
    - <servlet>
    <servlet-name>org.apache.jsp.index_jsp</servlet-name>
    <servlet-class>org.apache.jsp.index_jsp</servlet-class>
    </servlet>
    - <servlet-mapping>
    <servlet-name>org.apache.jsp.index_jsp</servlet-name>
    <url-pattern>/index.jsp</url-pattern>
    </servlet-mapping>
    - <!-- JSPC servlet mappings end
    -->
    </web-app>
    web.xml file located in
    apache-tomcat-5.5.26\webapps\servlets-examples\WEB-INF
    is given below:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!--
    Licensed to the Apache Software Foundation (ASF) under one or more
    contributor license agreements. See the NOTICE file distributed with
    this work for additional information regarding copyright ownership.
    The ASF licenses this file to You under the Apache License, Version
    2.0
    (the "License"); you may not use this file except in compliance with
    the License. You may obtain a copy of the License at
    http://www.apache.org/licenses/LICENSE-2.0
    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
    implied.
    See the License for the specific language governing permissions and
    limitations under the License.
    -->
    <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
    http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
    version="2.4">
    <display-name>Servlet 2.4 Examples</display-name>
    <description>
    Servlet 2.4 Examples.
    </description>
    <!-- Define servlet-mapped and path-mapped example filters -->
    <filter>
    <filter-name>Servlet Mapped Filter</filter-name>
    <filter-class>filters.ExampleFilter</filter-class>
         <init-param>
         <param-name>attribute</param-name>
    <param-value>filters.ExampleFilter.SERVLET_MAPPED</param-value>
         </init-param>
    </filter>
    <filter>
    <filter-name>Path Mapped Filter</filter-name>
    <filter-class>filters.ExampleFilter</filter-class>
         <init-param>
         <param-name>attribute</param-name>
    <param-value>filters.ExampleFilter.PATH_MAPPED</param-value>
         </init-param>
    </filter>
    <filter>
    <filter-name>Request Dumper Filter</filter-name>
    <filter-class>filters.RequestDumperFilter</filter-class>
    </filter>
    <!-- Example filter to set character encoding on each request -->
    <filter>
    <filter-name>Set Character Encoding</filter-name>
    <filter-class>filters.SetCharacterEncodingFilter</filter-class>
    <init-param>
    <param-name>encoding</param-name>
    <param-value>EUC_JP</param-value>
    </init-param>
    </filter>
    <filter>
    <filter-name>Compression Filter</filter-name>
    <filter-class>compressionFilters.CompressionFilter</filter-class>
    <init-param>
    <param-name>compressionThreshold</param-name>
    <param-value>10</param-value>
    </init-param>
    <init-param>
    <param-name>debug</param-name>
    <param-value>0</param-value>
    </init-param>
    </filter>
    <!-- Define filter mappings for the defined filters -->
    <filter-mapping>
    <filter-name>Servlet Mapped Filter</filter-name>
         <servlet-name>invoker</servlet-name>
    </filter-mapping>
    <filter-mapping>
    <filter-name>Path Mapped Filter</filter-name>
         <url-pattern>/servlet/*</url-pattern>
    </filter-mapping>
    <!-- Example filter mapping to apply the "Set Character Encoding"
    filter
    to all requests processed by this web application -->
    <!--
    <filter-mapping>
    <filter-name>Set Character Encoding</filter-name>
    <url-pattern>/*</url-pattern>
    </filter-mapping>
    -->
    <!--
    <filter-mapping>
    <filter-name>Compression Filter</filter-name>
    <url-pattern>/CompressionTest</url-pattern>
    </filter-mapping>
    -->
    <!--
    <filter-mapping>
    <filter-name>Request Dumper Filter</filter-name>
    <url-pattern>/*</url-pattern>
    </filter-mapping>
    -->
    <!-- Define example application events listeners -->
    <listener>
    <listener-class>listeners.ContextListener</listener-class>
    </listener>
    <listener>
    <listener-class>listeners.SessionListener</listener-class>
    </listener>
    <!-- Define servlets that are included in the example application
    -->
    <servlet>
    <servlet-name>CompressionFilterTestServlet</servlet-name>
    <servlet-class>compressionFilters.CompressionFilterTestServlet</servlet
    -class>
    </servlet>
    <servlet>
    <servlet-name>hello</servlet-name>
    <servlet-class>hello</servlet-class>
    </servlet>
    </servlet>
    <servlet>
    <servlet-name>HelloWorldExample</servlet-name>
    <servlet-class>HelloWorldExample</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>RequestInfoExample</servlet-name>
    <servlet-class>RequestInfoExample</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>RequestHeaderExample</servlet-name>
    <servlet-class>RequestHeaderExample</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>RequestParamExample</servlet-name>
    <servlet-class>RequestParamExample</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>CookieExample</servlet-name>
    <servlet-class>CookieExample</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>SessionExample</servlet-name>
    <servlet-class>SessionExample</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>CompressionFilterTestServlet</servlet-name>
    <url-pattern>/CompressionTest</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>HelloWorldExample</servlet-name>
    <url-pattern>/servlet/HelloWorldExample</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>RequestInfoExample</servlet-name>
    <url-pattern>/servlet/RequestInfoExample/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>RequestHeaderExample</servlet-name>
    <url-pattern>/servlet/RequestHeaderExample</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>RequestParamExample</servlet-name>
    <url-pattern>/servlet/RequestParamExample</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>CookieExample</servlet-name>
    <url-pattern>/servlet/CookieExample</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>SessionExample</servlet-name>
    <url-pattern>/servlet/SessionExample</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>hello</servlet-name>
    <url-pattern>/servlet/hello</url-pattern>
    </servlet-mapping>
    <security-constraint>
    <display-name>Example Security Constraint</display-name>
    <web-resource-collection>
    <web-resource-name>Protected Area</web-resource-name>
         <!-- Define the context-relative URL(s) to be protected -->
    <url-pattern>/jsp/security/protected/*</url-pattern>
         <!-- If you list http methods, only those methods are
    protected -->
         <http-method>DELETE</http-method>
    <http-method>GET</http-method>
    <http-method>POST</http-method>
         <http-method>PUT</http-method>
    </web-resource-collection>
    <auth-constraint>
    <!-- Anyone with one of the listed roles may access this area
    -->
    <role-name>tomcat</role-name>
         <role-name>role1</role-name>
    </auth-constraint>
    </security-constraint>
    <!-- Default login configuration uses form-based authentication -->
    <login-config>
    <auth-method>FORM</auth-method>
    <realm-name>Example Form-Based Authentication Area</realm-name>
    <form-login-config>
    <form-login-page>/jsp/security/protected/login.jsp</form-login-page>
    <form-error-page>/jsp/security/protected/error.jsp</form-error-page>
    </form-login-config>
    </login-config>
    <!-- Security roles referenced by this web application -->
    <security-role>
    <role-name>role1</role-name>
    </security-role>
    <security-role>
    <role-name>tomcat</role-name>
    </security-role>
    <!-- Environment entry examples -->
    <!--env-entry>
    <env-entry-description>
    The maximum number of tax exemptions allowed to be set.
    </env-entry-description>
    <env-entry-name>maxExemptions</env-entry-name>
    <env-entry-value>15</env-entry-value>
    <env-entry-type>java.lang.Integer</env-entry-type>
    </env-entry-->
    <env-entry>
    <env-entry-name>minExemptions</env-entry-name>
    <env-entry-type>java.lang.Integer</env-entry-type>
    <env-entry-value>1</env-entry-value>
    </env-entry>
    <env-entry>
    <env-entry-name>foo/name1</env-entry-name>
    <env-entry-type>java.lang.String</env-entry-type>
    <env-entry-value>value1</env-entry-value>
    </env-entry>
    <env-entry>
    <env-entry-name>foo/bar/name2</env-entry-name>
    <env-entry-type>java.lang.Boolean</env-entry-type>
    <env-entry-value>true</env-entry-value>
    </env-entry>
    <env-entry>
    <env-entry-name>name3</env-entry-name>
    <env-entry-type>java.lang.Integer</env-entry-type>
    <env-entry-value>1</env-entry-value>
    </env-entry>
    <env-entry>
    <env-entry-name>foo/name4</env-entry-name>
    <env-entry-type>java.lang.Integer</env-entry-type>
    <env-entry-value>10</env-entry-value>
    </env-entry>
    </web-app>
    My program hello.java is given below
    import java.io.*;
    import javax.servlet.http.*;
    import javax.servlet.*;
    public class hello extends HttpServlet {
    public void doGet (HttpServletRequest req,
    HttpServletResponse res)
    throws ServletException, IOException
    PrintWriter out = res.getWriter();
    out.println("Hello, world!");
    out.close();
    }

  • Labview Error 10608 occurred at an unidentified location. No transfer is in progress for the specified resource

    I am using Measurement Computing Boards MiniLab1008 as my hardware. I have very basic VI which is using AI Acquire Waveform VI in it. Basically I am trying to do exactly which is on this link: http://www.seas.upenn.edu/ese/rca/software/Labview/myfirstvi.html
    Attachments:
    my2ndvi.vi ‏22 KB

    You are using NI data acquisition functions with a non-NI board. That won't work. You need to get a LabVIEW driver from measurment computing and use those functions.

Maybe you are looking for

  • My iPod will not play songs that I've put on it from my computer.

    It plays Them on iTunes, but they will not play on my iPod. It selects the songs, and brings up the screen, and the icon is on play, but the songs do not play. They're not songs I bought, it's some that I put on my iPod manually from the music I had

  • CS6 System Requirements + Hardware Questions

    I am in hope that someone who is knowledgeable regarding hardware can confirm that my computer would meet the system requirements for CS6. I tried to get some answers via Adobe Chat, but the person was not that helpful. I have an old Mac Pro 1,1 Dual

  • Exception Message not showed

    Hi, In tcode MD04, there's a Purchase Order, which delivery date lies <b>after</b> the date of requirement elements, but no execptio message showed by the system, is there anything wrong with the settings? Please kindly advise. Thanks and best regard

  • How do I manage and catalogue photos from an external hard drive

    My new laptop is fast, but does not have a huge amount of storage.  Therefore, the store advised I keep the photos on an external hard drive  However, when I am in elements and want to have my list of folders - under folders - so I can then catalogue

  • ISO Burn CD Failure

    Hi All, I keep getting the blue screen and a flashing cursor, but no install options. I've tried burning at a low speed, and from different burn devices(that I know are ok), and still the same. 1 CD even gave a "can't find boot.bin" error. Anyone els