Error when using a HTML form along with a servlet

Hi All,
I am using Sun Studio 4 to create a HTML form that takes in 4 inputs and then
passes them on to a servlet to be processed.
In my HTML form i have the form heading.. <form method = post action="processServlet">
my directory structure is as follows:
/home/cosmo/projects/testservlet/processServlet ... processServlet being the servlet underneath the testservlet directory.
inputForm.html is also under the same testservlet directory. I am running TOMCAT.. and under the run time tab under tomcat --> Internal --> it has localhost:8081 and under that the default context is /home/cosmo/projects/testservlet
NOW, when i execute my HTML page the URL on top says "http://localhost:8081/inputForm.html
which seems correct. I get my form correctly. When i input the data,and i hit the submit button, the URL says "http://localhost:8081/processServlet" which i think is also correct, but i get a "404 Error and the error description says " The requested resource( /processServlet)
is not available." I have coded the servlet to give me just a few lines of output, but instead, the above error shows up.
Why would this be happening? Do i have my directory structure messed up? Do i have the wrong type of template? I used a web module to do this. I also compiled my Servlet from Sun Studio without any errors.
Any help would be appreciated.
Thanks
Kal.

You can't post directly to a servlet the way you can to an HTML or JSP page. You must map your requests to specific servlets for the request to get directed there. There are entries in the web.xml for this.
You need to map the request for "processServlet" to "edu.xxx.yyy.processServlet", or the servlet engine won't know what to do with that request.
Often times, an app will route all requests for a particular extension to a router servlet, which then figures out which class to actually send the request to. This keeps you from having to map all servlets in the web.xml file.

Similar Messages

  • Error when use Crystal report Bundled Version with Vs2003 on Windows Vista

    Post Author: MartinoLuccarelli
    CA Forum: .NET
    Hi,  I have developed a software with Vs2003 that uses Crystal report Bundled Version.   I have created a Installation package that include the merge modules,   and i have entered the Licence Key for Crystal_regWiz2003 module.    If i install and use the software in the computer with XP or Windows 2000 I do not have problems.    But when i install the software on the PC with Windows Vista i have this error when the probram show a report "Operazine di Crystal Report non Riuscita perche' non e' stato possibile ottenere una licenza gratuita nel tempo allocato"  Thank's

    Uninstall CRVS2010 that you currently have installed.
    To remove the assemblies from the GAC use gacutil. Google will get you a number of links on how to. Also, see the KB [1535325  - How to remove CRVS2010 Beta 2|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333533333335333333323335%7D.do].
    Reinstall CRVS2010 SP1 from here:
    SAP Crystal Reports, developer version for Microsoft Visual Studio: Updates & Runtime Downloads [original link is broken]
    - Ludek

  • Getting a runtime error when using a standard Form Interface

    I am getting this Error analysis:
    The following syntax error was found in the program /1BCDWB/SAPLSM00000212 :
    "Field "VBRK-WAERK" is unknown. It is neither in one of the specified t"
    "ables nor defined by a "DATA" statement. ."
    The problem is, I am using a standard interface INVOICE_INTERFACE for a custom form. Why am I getting this error? Where in my form should I declare VBRK-WAERK for my program to work?

    Here are some troubleshooting steps that will help you isolate and fix this problem:
    Create a Z-copy of the INVOICE_INTERFACE (ex. ZIF_SD_INVOICE).  Use this interface in your custom form (ex. ZFRM_SD_INVOICE).
    OPTIONAL: In your custom form, deactivate all of the fields you are not using.  This will minimize the amount of work in the next steps.
    In your custom interface, go to the Currency/Quantity Fields section.  There are 88 currency fields in the stock interface, but only 12 of them are defined in this section.  At this point you have options:
    If you still have fields that are active, but not listed here, you will have to enter them.
    If you didn’t deactivate anything, you will have to define the remaining 76 fields here.
    Use the interface at the bottom and deactivate the CMPRE_FLT field in your Adobe Form. It can be found in the PAYMENT_CARDS table contained in the HEAD_DETAIL structure of the interface.  The other CURR and QUAN fields are all defined in this interface.  The pictures will guide you to that field in your form. 

  • Dreamweaver Error when using Record Insertion Form Wizard

    This is the error I'm getting:
    While executing onLoad in ServerObject-InsRecPHP.htm, the following JavaScript error(s) occured:
    At line 283 of file "C:Program Files (x86)\Adobe\Adobe Dreamweaver CS4\Configuration\Commands\ServerObject-FormCmnPHP.js":
    invalid array length
    The strange thing is, that I've added a form using the wizard before and had no problems. But I deleted the form and wanted to create a new one using the wizard again. And that's when I got the error. I tried this on another computer and got the same error.
    Please help, this is very aggrevating.
    *Also, I've done the same thing on multiple computers and get the same error.
    I've tried deleting the file cache in the configuration folder as instructed by an individual who was talking about JavaScript errors and it still doesn't work.
    Message was edited by: PJP2123

    I know its 4 years later but I just got the same error. after several hours of debugging i found the issue was in my database.
    I have fields named - length, width, height, weight.
    I fixed it by changing them to Lamplength, lampwi   etc
    hope that helps anyone else in the future.

  • Errors when using sql loader direct path with a nvl functin on a date field

    I thought I read in 10g that all sql functions now work in direct path mode.
    the following function works without direct path mode. When we turn direct path mode on the load fails. When we take the function out in direct path mode it works.
    mydate DATE "YYYY-MM-DD" "nvl(:mydatedate,to_date('9999-01-01','YYYY-MM-DD'))"
    with direct path mode I get:
    EVERY record gets rejected with this error.
    Record 10: Rejected - Error on table MYTABLE
    ORA-00604: error occurred at recursive SQL level 1
    ORA-01861: literal does not match format string
    again works fine without direct=true, works fine with direct=true if i get rid of the function.
    any ideas?
    Message was edited by:
    Guess2
    Message was edited by:
    Guess2

    like usual your posts are completely useless daniel.
    I could have swarn that oracle advertised that you can use functions with 9i or 10g release in the new features guys or the first releases.

  • ORA-01002: fetch out of sequence error when using Oracle Thin Driver 9i with Weblogic 6.1

    The simple program below is a client that executes a SELECT query -
    there are 13 rows in the table, of which 10 are printed when I run the
    program, then after that the ORA-01002 error is reported. I am not
    doing anything with LOBs, or updates. I've tried putting
    con.setAutoCommit(false) as well, but that does not do anything.
    Why am I getting this error? Can anyone help.
    Thanks
    -H
    Context ctx = null;
    Hashtable ht = new Hashtable();
    ht.put(Context.INITIAL_CONTEXT_FACTORY,
    "weblogic.jndi.WLInitialContextFactory");
    ht.put(Context.PROVIDER_URL,
    "t3://127.0.0.1:7001");
    PreparedStatement stmt = null;
    ResultSet rs = null;
    UserTransaction ut = null;
    try {
    ctx = new InitialContext(ht);
    javax.sql.DataSource ds
    = (javax.sql.DataSource) ctx.lookup ("jtaXADS");
    java.sql.Connection conn = ds.getConnection();
    // You can now use the conn object to create
    // Statements and retrieve result sets:
    ut = (UserTransaction)
    ctx.lookup("javax.transaction.UserTransaction");
    ut.begin();
    stmt = conn.prepareStatement("select firstname,surname from
    EMPLOYEE ");
    stmt.executeQuery();
    rs = stmt.getResultSet();
    // Close the statement and connection objects when you are finished:
    while (rs.next())
    System.out.println("Result is " + rs.getString("firstname") + " " +
    rs.getString("surname"));
    ut.commit();
    stmt.close();
    conn.close();
    catch (Exception e) {
    e.printStackTrace();
    // a failure occurred
    finally {
    try {ctx.close();
    rs.close();}
    catch (Exception e) {
    // a failure occurred
    e.printStackTrace();

    Thanks everybody.
    I have tried this, calling ut.begin() first before getConnection,
    however no difference. However the problem goes away if I call
    stmt.setFetchSize(100);
    But I would prefer not to have to code this in every time!!!
    I see there is a setting within Weblogic Admin console to see the
    row-prefetch, but that is already set to 45 rows, so why do have to
    explicitly call stmt.setFetchSize(100)!!!
    Thanks
    -H
    "Carl Lawstuen" <[email protected]> wrote in message news:<[email protected]>...
    Agreed. The transaction must start before the connection. This is what
    is most likely causing the error.
    "Nils Winkler" <[email protected]> wrote in message
    news:[email protected]...
    Hi,
    one more thing: The UserTransaction has to be started before you obtain
    the connection, not after.
    Nils
    Humphrey wrote:
    The simple program below is a client that executes a SELECT query -
    there are 13 rows in the table, of which 10 are printed when I run the
    program, then after that the ORA-01002 error is reported. I am not
    doing anything with LOBs, or updates. I've tried putting
    con.setAutoCommit(false) as well, but that does not do anything.
    Why am I getting this error? Can anyone help.
    Thanks
    -H
    Context ctx = null;
    Hashtable ht = new Hashtable();
    ht.put(Context.INITIAL_CONTEXT_FACTORY,
    "weblogic.jndi.WLInitialContextFactory");
    ht.put(Context.PROVIDER_URL,
    "t3://127.0.0.1:7001");
    PreparedStatement stmt = null;
    ResultSet rs = null;
    UserTransaction ut = null;
    try {
    ctx = new InitialContext(ht);
    javax.sql.DataSource ds
    = (javax.sql.DataSource) ctx.lookup ("jtaXADS");
    java.sql.Connection conn = ds.getConnection();
    // You can now use the conn object to create
    // Statements and retrieve result sets:
    ut = (UserTransaction)
    ctx.lookup("javax.transaction.UserTransaction");
    ut.begin();
    stmt = conn.prepareStatement("select firstname,surname from
    EMPLOYEE ");
    stmt.executeQuery();
    rs = stmt.getResultSet();
    // Close the statement and connection objects when you are finished:
    while (rs.next())
    System.out.println("Result is " + rs.getString("firstname") + " " +
    rs.getString("surname"));
    ut.commit();
    stmt.close();
    conn.close();
    catch (Exception e) {
    e.printStackTrace();
    // a failure occurred
    finally {
    try {ctx.close();
    rs.close();}
    catch (Exception e) {
    // a failure occurred
    e.printStackTrace();
    ============================
    [email protected]

  • Error when using automatic clearing (F.13)with foreign currency valuation.

    Hello all
    below is our problem, please suggest us a solution
    We are experiencing a problem when running the automatic clearing in SAP. Somehow, the system seems to clear (with no reason) open items created with the revaluation of foreign currency.
    Let's say that we run the valuation of open items in foreign currency for December 31, and we run the program to post the reverse entry as of  January 1 of the next year. As a result of this valuation, the system calculates a loss of 10 euros. Therefore, it posts a document with a debit entry of 10 into the Loss account, and a credit of 10 in to account where the valuation was carried out. This document has a posting date of December 31. The batch program also creates the reversing entry, this time a credit entry into the Loss account, and a debit into the original account.
    If now, we try to run the automatic clearing (F,13) on December 31 for those accounts, the system will create (automatically) a document on December 31, similar to the reversing entry that the valuation created, clearing at the same time, the first document that the valuation originally created.
    The final result then is that the valuation makes a posting, and we end up having two reversing entries. Does it make sense?
    In our scenario in the system P70, for MX10, we have a foreign currency valuation run on December 31st, which posted the document numbers:
    1)  5100004579/2008, for a total of  0 euros, and 240,483.17 MXN. Credit to account 11081108 Finavigate cash receipt bank collect.CMG MXN.Debit to account 18601000 Losses f.foreign curr.valuation on financial trans
    2) In the same batch, the system also books a reversing entry (doc 5100000042/2009) with posting date 01.01.2009 with exactly the same opposite entries as in the previous document.
    3) After this, we run the automatic clearing with posting date 31.12.2008, and now, the system creates automatically the document 5000003236/2008, which clear the original document, 5100004579.
    The final result, as you can see, it's out of balance, there is an additional document that we need to reverse.
    Thanks in advance
    sujatha

    To my knowledge you get do two things:
    1. In F.13 transaction don't include both the GL accounts where the Dr. and Cr. posting from the valuation run have taken place. With this the system won't find the matching entry.
    2. If you want to use all the GL accounts in F.13, then check the clearing procedure configuration and make suitable changes.
    With the info provided, this is the only thing I can suggest.
    Regards,
    ~Vishal.

  • Error when using BeX Analyzer 7.0 with Excel 2007

    When i try to execute a query in BeX analyzer 7.0 and my microsoft excel version is 2007, there will always have a fatal error showing. However, when i use the Bex Analyzer 3.5 , i could execute the query.
    Anyway to solve this problem?

    You need to do the following
    Identify the SAP GUI version you're using, 6.40 or 7.10, and the patch level.
    Identify the BW or BI Add-on and patch level of it.
    From there, check to see if the versions you have actually support BI 7.0 and Excel 2007.  Reliable Excel 2007 support requires failry current patch levels of both the SAP GUI and the corresponding BW/BW Add-ons.. 
    Do you have access to a PC that has a more recent version of the SAP GUI and BW/ BI Add-on?  If so, try using that PC and see if you still have the problem.

  • "caching-descriptor" must be declared error when using ejbc on WLS6.0 with EJB 1.1

    I'm compiling with ejbc an entity bean .jar. Using WLS 6.0. In the ejb-jar.xml,
    I've set version to EJB 1.1. I've made sure the weblogic-ejb-jar.xml has the caching-descriptor
    element defined (used to work with WLS 5.1).
    Thanks.
    Sayid
    Error is : org.xml.sax.SAXParseException: Element type "caching-descriptor" must
    be declare d. at weblogic.apache.xerces.framework.XMLParser.reportError(XMLParser.java
    :1008) at weblogic.apache.xerces.validators.common.XMLValidator.reportRecoverab
    leXMLError(XMLValidator.java:1236) at weblogic.apache.xerces.validators.common.XMLValidator.validateElement
    AndAttributes(XMLValidator.java:2673) at weblogic.apache.xerces.validators.common.XMLValidator.callStartElemen
    t(XMLValidator.java:818) at weblogic.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher
    .dispatch(XMLDocumentScanner.java:1222) at weblogic.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocu
    mentScanner.java:380) at weblogic.apache.xerces.framework.XMLParser.parse(XMLParser.java:900)
    at weblogic.xml.process.ProcessorDriver.process(ProcessorDriver.java:128 ) at
    weblogic.ejb20.dd.xml.WebLogicEjbJarLoader_WLS600.process(WebLogicEjb JarLoader_WLS600.java:455)
    at weblogic.ejb20.dd.xml.DDUtils.loadDeploymentDescriptor(DDUtils.java:9 3) at
    weblogic.ejb20.dd.xml.DDUtils.loadDeploymentDescriptor(DDUtils.java:4 7) at weblogic.ejb20.dd.xml.DDUtils.loadDeploymentDescriptor(DDUtils.java:3
    8) at weblogic.ejbc20.runBody(ejbc20.java:665) at weblogic.utils.compiler.Tool.run(Tool.java:81)
    at weblogic.ejbc.main(ejbc.java:20) --------------- nested within: ------------------
    weblogic.xml.process.XMLParsingException: Element type "caching-descriptor" must
    be declared. - with nested exception: [org.xml.sax.SAXParseException: Element
    type "caching-descriptor" must be declar ed.] Line: 8 Column: 27 at weblogic.xml.process.ProcessorDriver.process(ProcessorDriver.java:132
    ) at weblogic.ejb20.dd.xml.WebLogicEjbJarLoader_WLS600.process(WebLogicEjb JarLoader_WLS600.java:455)
    at weblogic.ejb20.dd.xml.DDUtils.loadDeploymentDescriptor(DDUtils.java:9 3) at
    weblogic.ejb20.dd.xml.DDUtils.loadDeploymentDescriptor(DDUtils.java:4 7) at weblogic.ejb20.dd.xml.DDUtils.loadDeploymentDescriptor(DDUtils.java:3
    8) at weblogic.ejbc20.runBody(ejbc20.java:665) at weblogic.utils.compiler.Tool.run(Tool.java:81)
    at weblogic.ejbc.main(ejbc.java:20) ERROR: weblogic.xml.process.XMLParsingException:
    Element type "caching-descripto r" must be declared. - with nested exception:
    [org.xml.sax.SAXParseException: Element type "caching-descriptor" must be declar
    ed.] Line: 8 Column: 27

    but a bean's deployment descriptor lies in the
    meta-inf folder, right?Sorry, my mistake. I was thinking of WAR files while writing. Thanks for pointing out.
    Regards,
    $ Carol.

  • Linkage Error when using Apache SOAP 2.2 with Weblogic 6.1

    Has anyone seen this error before? Apparently I've got some incompatible versions of xerces being loaded. I tried putting different versions of xerces.jar in the front of my classpath, and creating an XML Registry to point to org.apache.xerces.jaxp..., but I always get the same error message.
    D:\soap>java -classpath "/soap-2_2/lib/soap.jar;activation.jar;mail.jar;xerces.jar;." org.apache.soap.server.Servic
    eManagerClient http://localhost:8001/App/servlet/rpcrouter list
    Ouch, the call failed:
    Fault Code = SOAP-ENV:Server.Exception:
    Fault String = loader constraints violated when linking org/xml/sax/InputSource class

    Has anyone seen this error before? Apparently I've got some incompatible versions of xerces being loaded. I tried putting different versions of xerces.jar in the front of my classpath, and creating an XML Registry to point to org.apache.xerces.jaxp..., but I always get the same error message.
    D:\soap>java -classpath "/soap-2_2/lib/soap.jar;activation.jar;mail.jar;xerces.jar;." org.apache.soap.server.Servic
    eManagerClient http://localhost:8001/App/servlet/rpcrouter list
    Ouch, the call failed:
    Fault Code = SOAP-ENV:Server.Exception:
    Fault String = loader constraints violated when linking org/xml/sax/InputSource class

  • Error when use VARRAY in Entity Model with VS2010

    Hi all,
    At the database server, I created type is COUNTRY_LIST like:
    CREATE OR REPLACE TYPE COUNTRY_LIST AS VARRAY (200) OF VARCHAR2(20);
    And then created store procedure:
    create or replace procedure get_all_country_data(vArrayResult OUT COUNTRY_LIST)
    is
    begin
    SELECT country_name
    BULK COLLECT INTO vArrayResult
    FROM country
    WHERE status = 1;
    end;
    On the VS2010, I created project with type Class Library (My goal is export to dll file) and I have been Entity Model technology to get data from Country table with above store procedure. I can connect to db, but after add Country model, I received some message from VS 2010:
    The function 'GET_ALL_COUNTRY_DATA' has a parameter 'VARRAYRESULT' at parameter index 0 that has a data type 'varray' which is not supported. The function was excluded.     
    Error 6005: The function 'GET_ALL_COUNTRY_DATA' has a parameter 'VARRAYRESULT' at parameter index 0 that has a data type 'varray' which is not supported. The function was excluded.
    plz help me about it. Thanks.

    As indicated in the doc, this data type is not supported in Entity Framework:
    http://docs.oracle.com/cd/E20434_01/doc/win.112/e23174/featLINQ.htm#CJAFBGIJ

  • "Could not complete scan" error when using Windows Fax and Scan

    "Could not complete scan" error when using Windows Fax and Scan with a HP OfficeJet Pro 8600 Plus All-In-One network printer.
    Printing is fine.
    When using the HP Scan application, get the error "Scanner communication cannot be established".
    When scanning from the printer itself it fails with the same message. In addition the printer panel displays the error:
    "The scan could not be completed due to one or more of the following issues:
    Connection to the computer is lost
    The scanner is in use
    OCR application is not installed"
    My PC is a HP Compaq Pro 6300 SFF 64bit, with ethernet cable to the router and ethernet cable to the printer
    Originally ran Windows 8.0; recently upgraded to Windows 8.1.
    Older separate Netgear router and modem was replaced with a newer Netgear Router/Modem, but both experienced the same problem.
    There was no problem with the original Windows 8.0 configuration and only after upgrading to 8.1 did the problem emerge.
    On my home netowrk I have an HP ProBook 6550b running Windows 7 sp1 that uses wireless to get to the Router, and it has no problem with scanning.
    I have followed the recommendations of a number of articles relating to this issue (including: http://h10025.www1.hp.com/ewfrf/wc/document?cc=us&​lc=en&docname=c02915410&product=4323659#N94), but there has been no change in behaviour.
    The printer has a static IP address;
    Power settings have been adjusted to Never for Turn off Hard Disk; Sleep and Hybrid Sleep.
    Scanning has been tested with all firewalls and antivirus turned off and in Selective Startup.
    The printer has been plugged directly into the power socket.
    With all these settings the Windows 8.1 cannot scan while the Windows 7 laptop with wireless to the router has no problems.
    Appreciate any insights into this problem.
    I can only surmise that the problem is a compatibility problem between the 8600 Printer and Windows 8.1.
    Any ideas?
    regards,
    Motorbike

    You can determine if there is compatiblity between the printer and PC by checking the Windows 8.1 hardware compatibility list. I have done that and it is shown to be fully compatible.  If the driver you installed before was only the basic driver,it would explain the lack of scan and copy functionality.
    Download and install the Windows 8.1 full feature driver and software on the HP Compaq Pro 6300 SFF 64bit PC . 
    http://h10025.www1.hp.com/ewfrf/wc/softwareDownloa​dIndex?softwareitem=bi-108858-4&cc=us&dlc=en&lc=en​...
    ****Please click on Accept As Solution if a suggestion solves your problem. It helps others facing the same problem to find a solution easily****
    2015 Microsoft MVP - Windows Experience Consumer

  • How to use SAP Business Workflow along with Interactive Adobe Form

    Hi Experts,
    I am working on SAP Business Workflow since last couple of years.
    Now i have got a new Project where client wants to use SAP Business Workflow along with Interactive Adobe Form.
    I am new to Interactive Adobe Form and Portal thing and i really dont know from where to start.
    We have one central system and 2 local systems. when we do create a Material document using adobe form workflow should trigger and notification should go to group of users who can approve or reject it, once they approve it document gets created in central system and replicated to 2 local system through ALE.
    In the Local system they do extend the document to different plants, again workflow triggers and notification will go to Managers inbox for the approval.
    Once the final approval done data should go and store in SAP.
    Now here i have couple of Questions.
    1. In SAP R3 Business workflow when i execute the workitem from the inbox i do get the application screen ( i.e. MM01 MRP View ) , what is going to happen if the same case i have with Adobe form?? is it possible or do we have to design a adobe form and we will have to map the fields with backend application??
    2. Do i have to maintained 3 separate Org Structure for 3 different system or using UWL  i can manage the show
    3. Untill final submit is not done, where the application data is going to be, is there any kind of buffer that we will have to keep it or its there with XML file??
    Please help me out.
    Thanks in Advance.
    Regards,
    Manoj

    Hi Manoj,
    Welcome to ADOBE Forms related Workflow Development. Well, here are my answers.
    1) You can go for either go for ISR based development or WD development with Adobe form. In both the cases you can achieve your requirement. Yes, you will have to design the Adobe form and bind the fields to backend.
    2) Am not clear or your System landscape to advice you in these regards.
    3) Until final Submit/Approval is done, the data can be stored in WORKFLOW CONTAINERS or XML FORM(If you go for ISR based Development).
    Hope this helps.
    Regards
    <i><b>Raja Sekhar</b></i>

  • 500 error when using customized form

    TMG 2010 Service Pack 2    
    Server 2008 R2 Service Pack 1
    Only one member in the array
    I have enabled "Use customized HTML forms instead of the default" in a listener. That works fine, as long as I stick to the original custom folder: "ISA".
    But once I make a copy of the default folder, calling it "ISA-2" and try to use that copy, the error is
    Error Code: 500 Internal Server Error. The data area passed to a system call is too small. (122)
    As far as I can see, the copy - ISA-2 - is a perfect copy of the original - ISA. (The error message is the same as the one I get if I specify a folder that does not exist at all.)

    Hi,
    Was the copy file ISA-2 in the same folder with the original ISA custom folder? If yes, please enter "ISA-2" on the Forms tab, click appy and restart the TMG Firewall Service to apply the changes to TMG.
    Best regards,
    Susie

  • I keep getting this error when trying to backup time capsule with time machine. The backup disk image "/Volumes/Data-1/Dan's iMac.sparsebundle" is already in use.

    I keep getting this error when trying to backup time capsule with time machine. The backup disk image “/Volumes/Data-1/Dan’s iMac.sparsebundle” is already in use.

    Make sure that no other Macs are backing up at the time.
    Pull the power cable from the back of the Time Capsule
    Count to ten
    Plug the power cable back into the back of the Tme Capsule
    Wait a few minutes, then try a backup again.

Maybe you are looking for