Getting error in compiling servlet

I am trying to compile servlet and I am getting error "cannot resolve symble : class HttpServlet"
there are 6 error almost same not resolve servlet or http. I already add jdk1.3.1 and tomcat in my path I don't understand why I am getting this error please help me.

You need to add servlet.jar into the classpath. You can find servlet.jar in tomcat_home\lib dir.

Similar Messages

  • What to do if i get Error 500: javax.servlet.ServletException: Filter [HSBC Filter]: filter is unavailable but at same time it opens from other IPad

    What to do if i get Error 500: javax.servlet.ServletException: Filter [HSBC Filter]: filter is unavailable but at same time it opens from other IPad

    Clear any HSBC related cookies from your browser cache and reload the page.

  • Getting error while compiling frmcmp_batch batch file

    HI
    I am getting error while running frmcmp_batch commant
    to create .fmx file
    following is command that i am using
    $ frmcmp_batch module=$AU_TOP/forms/US/DEMxxEOR.fmb userid=APPS/apps output_file=$PO/forms/US/DEMxxEOR.fmx module_type=form batch=no compile_all=specialfollowing is error that i am getting
    Forms 10.1 (Form Compiler) Version 10.1.2.3.0 (Production)
    Forms 10.1 (Form Compiler): Release - Production
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application >>Testing options
    PL/SQL Version 10.1.0.5.0 (Production)
    Oracle Procedure Builder V10.1.2.3.0 - Production
    Oracle Virtual Graphics System Version 10.1.2.0.0 (Production)
    Oracle Multimedia Version 10.1.2.0.2 (Production)
    Oracle Tools Integration Version 10.1.2.0.2 (Production)
    Oracle Tools Common Area Version 10.1.2.0.2
    Oracle CORE 10.1.0.5.0 Production
    FRM-18108: Failed to load the following objects.
    Source Module:APPSTAND>> Source Object: STANDARD_PC_AND_VA
    Source Module:APPSTAND>>Source Object: STANDARD_TOOLBAR
    Source Module:APPSTAND>>Source Object: STANDARD_CALENDAR
    Compiling package specification APP_CUSTOM...>> No compilation errors.
    Compiling package specification APP_CUSTOM...>> No compilation errors.
    Compiling package body APP_CUSTOM...
    Compilation error on package body APP_CUSTOM:
    PL/SQL ERROR 302 at line 22, column 19
    component 'DISABLED' must be declared
    PL/SQL ERROR 0 at line 22, column 5
    Statement ignored
    PL/SQL ERROR 201 at line 40, column 5
    identifier 'APP_WINDOW.CLOSE_FIRST_WINDOW' must be declared
    PL/SQL ERROR 0 at line 40, column 5
    Statement ignored
    Compilation errors have occurred.
    Form not created

    Hi;
    I am getting error while running frmcmp_batch commant
    to create .fmx file
    following is command that i am using
    $ frmcmp_batch module=$AU_TOP/forms/US/DEMxxEOR.fmb userid=APPS/apps output_file=$PO/forms/US/DEMxxEOR.fmx module_type=form batch=no compile_all=special
    Please try wiht below syntax
    frmcmp_batch userid=apps/apps module=/u01/VIS/apps/apps_st/appl/au/12.0.0/forms/US/INVTTMTX.fmb output_file=/u01/VIS/apps/apps_st/appl/au/12.0.0/forms/US/INVTTMTX.fmx module_type=form batch=no compile_all=yes
    Regard
    Helios

  • Error while compiling Servlet

    Hello everyone,
    I am quite new to the Java Technology.
    I have this simple servlet program which gives me an error when I try to compile it.
    The error is as follows:
    TestServlet.java:1: package javax.servlet does not exist
    import javax.servlet.*;
    ^
    TestServlet.java:2: package javax.servlet.http does not exist
    import javax.servlet.http.*;
    ^
    Is this anything to do with the classpath or path settings?
    Any help would be highly appreciated.
    Thanks in advance,

    I have this file called servlet.jar which has some
    .class files.And this file is in the classpath.Just open it with WInZip or some ZIP viewing utility and check if the required classes are present.

  • Getting error when compiling form in R12

    getting the following error msg when trying to compile a form in R12. what to do ?
    Message file /d01/oracle/VIS/db/tech_st/11.1.0/forms/mesg/fmcus.msb not found.

    970426 wrote:
    Looks like there is an issue with the install. If you used both oracle and applmgr accounts to install R12.1.1 Vision, then this script (and others, plus all application binaries) should be owned by applmgr account, not oracle. It looks like you used only the oracle account - does the applmgr account own any files ?
    HTH
    Srinibut Oracle and applmgr users belong to dba group and there are no files that are owned by applmgr...so whats the work around for compiling forms ??If applmgr account does not have any files, then you have single-user install (using oracle account). Have you sourced the application environment file in $APPL_TOP before invoking frmcmp_batch.sh ? Pl post the complete command used and the complete output and error message. If the install has been done correctly using oracle account, the script should work without errors
    >
    Message file /d01/oracle/VIS/db/tech_st/11.1.0/forms/mesg/fmcus.msb not found.
    >
    This message indicates you have sourced the database environment file, not the application environment file. The application uses 10g (10.1.2) binaries for Forms, not 11gR1 binaries (which are used by the database)
    http://docs.oracle.com/cd/E18727_01/doc.121/e12841/T120505T120509.htm#F_92659x3Ax20H1x20Head1x3Ax20Environmentx20Settings
    HTH
    Srini

  • Error when compiling servlet

    I have this error and don't understand exactly what it means. Any advice on where to look to research it? I tried typing in the exception itself and even wrapper, but am not getting anything that explains to me why it happened and how to fix it.
    [code error]
    javax.servlet.ServletException: Wrapper cannot find servlet class com.kpotter.servlet.EmployeeServlet or a class it depends on
    [code error]
    package com.kpotter.servlets;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import com.kpotter.beans.EmployeeProfile;
    public class EmployeeServlet extends HttpServlet {
         public void doGet(HttpServletRequest req, HttpServletResponse res)
              throws ServletException, IOException {
              //Set the Content-Type header
              res.setContentType("text/html");
              PrintWriter out = res.getWriter();
              EmployeeProfile profile = new EmployeeProfile();
              * Write out the HTML page.
              out.println("<HTML>");
              out.println("<HEAD><TITLE>Employee</TITLE></HEAD>");
              out.println("<BODY>");
              out.println(profile.getfirstName());
                    out.println("</BODY></HTML>");
                 out.close();
         // End of the HTTP doGet() method.
         public void doPost(HttpServletRequest req, HttpServletResponse res)
              throws ServletException, IOException {
                   doGet(req, res);
    }

    HTML PAGE
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <head>
    <title>My Template</title>
    <script language="JavaScript">
    <!--
    if (document.images) {
      image1on = new Image();
      image1on.src = 'images/b1off.gif';
      image2on = new Image();
      image2on.src = 'images/b2off.gif';
      image3on = new Image();
      image3on.src = 'images/b3off.gif';
      image4on = new Image();
      image4on.src = 'images/b4off.gif';
      image5on = new Image();
      image5on.src = 'images/b5off.gif';
      image1off = new Image();
      image1off.src = 'images/b1.gif';
      image2off = new Image();
      image2off.src = 'images/b2.gif';
      image3off = new Image();
      image3off.src = 'images/b3.gif';
      image4off = new Image();
      image4off.src = 'images/b4.gif';
      image5off = new Image();
      image5off.src = 'images/b5.gif';
    function changeImages() {
      if (document.images) {
        for (var i=0; i<changeImages.arguments.length; i+=2) {
          document[changeImages.arguments].src = eval(changeImages.arguments[i+1] + ".src");
    // -->
    </script>
    </head>
    <body bgcolor="#6F7A9E" text="#000000" topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
    <tr valign="top"><!-- row 1 -->
    <td width="10%">
    <table border="0" cellpadding="0" cellspacing="0" width="159">
    <tr valign="top"><!-- row 1 -->
    <td colspan="2"><img name="topleft" src="images/topleft.gif" width="159" height="225" border="0"></td>
    </tr>
    <tr valign="top"><!-- row 2 -->
    <td><img name="image1" src="images/b1.gif" width="131" height="34" border="0"></td>
    <td rowspan="6" background="images/side.gif"><img name="side" src="images/side.gif" width="28" height="230" border="0"></td>
    </tr>
    <tr valign="top"><!-- row 3 -->
    <td><img name="image2" src="images/b2.gif" width="131" height="32" border="0"></td>
    </tr>
    <tr valign="top"><!-- row 4 -->
    <td><img name="image3" src="images/b3.gif" width="131" height="32" border="0"></td>
    </tr>
    <tr valign="top"><!-- row 5 -->
    <td><img name="image4" src="images/b4.gif" width="131" height="34" border="0"></td>
    </tr>
    <tr valign="top"><!-- row 6 -->
    <td><img name="image5" src="images/b5.gif" width="131" height="35" border="0"></td>
    </tr>
    <tr valign="top"><!-- row 7 -->
    <td><img name="ibot" src="images/ibot.gif" width="131" height="63" border="0"></td>
    </tr>
    <tr valign="top"><!-- row 8 -->
    <td colspan="2" height="300" background="images/leftbg.gif" valign="top"><img name="leftbg" src="images/leftbg.gif" width="159" height="10" border="0"></td>
    </tr>
    </table>
    </td>
    <td width="90%">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
    <tr valign="top"><!-- row 1 -->
    <td background="images/top.gif"><img name="top" src="images/top.gif" width="14" height="85" border="0"></td>
    </tr>
    <tr valign="top"><!-- row 2 -->
    <form name="frmKathy" method="post" action="/kpotterApp/servlet/EmployeeServlet">
    <table width="75%" border="1" cellspacing="3" cellpadding="1">
    <tr>
         <td><img name="top" src="images/javalogo.jpg" width="100%" height="90" border="1"></td>
    </tr>
    <tr>
    <td>�<input type="text" name="txtFirstName">First Name</td>
    </tr>
    <tr>
    <td>�<input type="text" name="txtLastName">Last Name</td>
    </tr>
    <tr>
    <td>�<input type="text" name="txtEmail1">Work Email Address</td>
    </tr>
    <tr>
    <td>�<input type="text" name="txtEmail2">Personal Email Address**</td>
    </tr>
    <tr>
    <td>�<input type="text" name="txtWorkPhone">Work Phone</td>
    </tr>
    <tr>
    <td>�<input type="text" name="txtCellPhone">Cell Phone</td>
    </tr>
    <tr>
    <td>�<input type="text" name="txtCellPhone2">Cell Phone2**</td>
    </tr>
    <tr>
    <td>�
    <input type="text" name="txtAddress">
    Address</td>
    </tr>
    <tr>
    <td>�
    <input type="text" name="txtCity">
    City</td>
    </tr>
    <tr>
    <td>�
    <select name="txtStates">
    <OPTION> Alabama</OPTION>
    <OPTION> Alaska</OPTION>
    <OPTION> Arizona</OPTION>
    <OPTION> Arkansas</OPTION>
    <OPTION> California</OPTION>
    <OPTION> Colorado</OPTION>
    <OPTION> Connecticut</OPTION>
    <OPTION> Delaware</OPTION>
    <OPTION> Florida</OPTION>
    <OPTION> Georgia</OPTION>
    <OPTION> Hawaii</OPTION>
    <OPTION> Idaho</OPTION>
    <OPTION> Illinois</OPTION>
    <OPTION> Indiana</OPTION>
    <OPTION> Iowa</OPTION>
    <OPTION> Kansas</OPTION>
    <OPTION> Kentucky</OPTION>
    <OPTION> Louisiana</OPTION>
    <OPTION> Maine</OPTION>
    <OPTION> Maryland</OPTION>
    <OPTION> Massachusetts</OPTION>
    <OPTION> Michigan</OPTION>
    <OPTION> Minnesota</OPTION>
    <OPTION> Mississippi</OPTION>
    <OPTION> Missouri</OPTION>
    <OPTION> Montana</OPTION>
    <OPTION> Nebraska<OPTION>
    <OPTION> Nevada</OPTION>
    <OPTION> New Hampshire</OPTION>
    <OPTION> New Jersey</OPTION>
    <OPTION> New Mexico</OPTION>
    <OPTION> New York</OPTION>
    <OPTION> North Carolina</OPTION>
    <OPTION> North Dakota</OPTION>
    <OPTION> Ohio</OPTION>
    <OPTION> Oklahoma</OPTION>
    <OPTION> Oregon</OPTION>
    <OPTION> Pennsylvania</OPTION>
    <OPTION> Rhode Island</OPTION>
    <OPTION> South Carolina</OPTION>
    <OPTION> South Dakota</OPTION>
    <OPTION> Tennessee</OPTION>
    <OPTION> Texas</OPTION>
    <OPTION> Utah</OPTION>
    <OPTION> Vermont</OPTION>
    <OPTION> Virginia</OPTION>
    <OPTION> Washington</OPTION>
    <OPTION> West Virginia</OPTION>
    <OPTION> Wisconsin</OPTION>
    <OPTION> Wyoming</OPTION>
    </select>
    State </td>
    </tr>
    <tr>
    <td>�
    <input type="text" name="txtZipCode">
    Zip</td>
    </tr>
    <tr>
    <td>�
    <select name="txtDepartment" >
    <OPTION>Inventory</OPTION>
    <OPTION>Stockroom</OPTION>
    <OPTION>Clothing</OPTION>
    <OPTION>Outdoor</OPTION>
    <OPTION>Garden</OPTION>
    </select>
    Department </td>
    </tr>
    <tr>
    <td>�
    <select name="txtTitle">
    <OPTION>President</OPTION>
    <OPTION>Vice President</OPTION>
    <OPTION>Secretary</OPTION>
    <OPTION>Laborer</OPTION>
    <OPTION>Stock Person</OPTION>
    </select>
    Title </td>
    </tr>
    <tr>
    <td>�Pay scale
    <input type="radio" name="rdoOpt1" value="payscale1">
    $10-$20</td>
    </tr>
    <tr>
    <td>�Pay scale
    <input type="radio" name="rdoOpt1" value="payscale2">
    $30-$40</td>
    </tr>
    <tr>
    <td>�Pay scale
    <input type="radio" name="rdoOpt1" value="payscale3">
    $50-$60</td>
    </tr>
    <tr>
         <td>�Pay scale
    <input type="radio" name="rdoOpt1" value="payscale4">
    $70-$80</td>
    </tr>
    <tr>
    <td>�Pay scale
    <input type="radio" name="rdoOpt1" value="payscale5">
    $90-$100</td>
    </tr>
    <tr><td>�Hobbies**
         <SELECT NAME="selHobbies" MULTIPLE>
         <OPTION> Music</OPTION>
         <OPTION> Playing Pool</OPTION>
         <OPTION> Hiking</OPTION>
         <OPTION> Tennis</OPTION>
         <OPTION> Basketball</OPTION>
         </SELECT>
         </td>
         </tr>
         <tr>
              <td>�Swag Order List**
         <SELECT NAME="selSwagList" MULTIPLE>
    <option value="$39.95">Great Advancement $39.95</option>
    <option value="$139.95">Paid Vacations $139.95</option>
    <option value="$69.95">Seniority Counts $69.95</option>
    <option value="$139.95">Medical $139.95</option>
    <option value="$149.95">Dental $149.95</option>
    </SELECT>
         </td>
         </tr>
    </table>
         <p>All ** are optional, all other text boxes are required</p>
         <input type="submit" name = "submit" value="Submit">
         <input type="Reset" name = "reset" value = "reset">
    </form>
    </tr>
    </table>
         </td>
    </tr>
    </table>
    </body>
    </html>
    Isn't that the correct path? I named it: kpotterApp/servlet/EmployeeServlet in my html form. Am I understanding it incorrectly?

  • Getting error while compiling The Duke’s Bank Application

    Hi,
    I am trying to complies The Duke’s Bank Application with reference to http://docs.jboss.org/jbossas/getting_started/v4/html/dukesbank.html guide.
    I am getting the following error:
    D:\Technical\Software\Tutorial\J2ee\Installation\J2ee-1_4\J2ee-1_4\j2ee-1_4-doc-tutorial_7\j2eetutorial14\jbossj2ee-src\examples\bank>ant -f jboss-build.xml c
    pile
    Buildfile: jboss-build.xml
    prepare:
    compile:
    [javac] Compiling 5 source files to D:\Technical\Software\Tutorial\J2ee\Installation\J2ee-1_4\J2ee-1_4\j2ee-1_4-doc-tutorial_7\j2eetutorial14\jbossj2ee-sr
    examples\bank\build
    BUILD FAILED
    D:\Technical\Software\Tutorial\J2ee\Installation\J2ee-1_4\J2ee-1_4\j2ee-1_4-doc-tutorial_7\j2eetutorial14\jbossj2ee-src\examples\bank\jboss-build.xml:44: D:\T
    hnical\Software\Tutorial\J2ee\Installation\J2ee-1_4\J2ee-1_4\j2ee-1_4-doc-tutorial_7\j2eetutorial14\jbossj2ee-src\examples\bank\${jboss.server}\lib not found.
    Total time: 0 seconds
    D:\Technical\Software\Tutorial\J2ee\Installation\J2ee-1_4\J2ee-1_4\j2ee-1_4-doc-tutorial_7\j2eetutorial14\jbossj2ee-src\examples\bank>
    Its not able to find ${jboss.server}\lib.
    What is the solution for this compiling problem. Please help me.
    Thanks in Advance.

    Hi,
    This could also be a reason :
    If you have any private proc defined in package body, make sure you define it at the top before using in other proc inside package body.

  • Error in compiling servlet..

    hi all,
    i had gone through the previous people who posted about the import.javax.httpServlet is not found... I am also encounting this error.. I do not understand what to change and include in the classpath.. i had installed JDK 1.3.1_01 and Apache TomCat under windows.
    i had written a simple servlet and i had put it in the directory name web-inf/classes under tomcat. What should i need to do next??
    Thanks for your help.

    Hi,
    Set servlet.jar file in CLASSPATH. You would not
    encounter this problem again.
    Regards,
    Sudhir

  • How do i get error after compiling package

    Hi ,
    i am compiling some packages by sys schema of hr schema as
    alter package hr.example compile package
    but it shows compiled with error
    how can i see that errors as i dont know the password of hr schema ..
    Thanks in advance

    First of all you should not be using SYS to compile anything ... create a DBA account.
    Second there is not need to be HR to see the errors ... type "SHO ERR" and you should see the errors and if that does not work there is always the simple
    SELECT * FROM dba_errors;In the future please do not post questions without full version number and, when possible, screen scrapes (cut and paste) so we can see what you are doing.

  • Getting error while compiling this pl/sql code

    Hi,
    I am trying to execute the below block of pl/sql code and i encountering an error. i tried all possible combination of paranthesis and quotes. still giving error. can someone please help?
    IF inserting THEN
    pk_imdb_audit.p_ins_characteristic_a_t
    (in_'||rpad(column_name,35,' ')||'=> pk_imdb_audit.v_action_inserting,'
    WHEN max_col = column_id THEN
    in_'||rpad(column_name,35,' ')||'=> '||lower(in_col_value)||');'
    ELSE
    ' in_'||rpad(column_name,35,' ')||'=> '||lower(in_col_value)||','
    END text,
    table_name,
    column_id,
    2 disp_ord
    error snapshot:-
    ORA-06550: line 14, column 14:
    PLS-00103: Encountered the symbol "||rpad(column_name,35," when expecting one of the following:
    . ( ) , * @ % & | = - + < / > at in is mod remainder not
    range rem => .. <an exponent (**)> <> or != or ~= >= <= <>
    and or like LIKE2_ LIKE4_ LIKEC_ as between from using ||
    multiset member SUBMULTISET_
    The symbol "( was inserted before "||rpad(column_name,35," to continue.
    ORA-06550: line 15, column 13:
    PLS-00103: Encountered the symbol "WHEN" when expecting one of th

    Hi,
    here is a 'parseable' version of your query, but there is numerous ways to improve what you want to do (not sure even if the query is giving you what you're expecting from it):
    SELECT text
    FROM   (SELECT (CASE
                       WHEN min_col = max_col THEN    'CREATE OR REPLACE TRIGGER '
                                                   || SUBSTR(column_name,
                                                             1,
                                                             4
                                                   || 'aud
    AFTER INSERT
    OR UPDATE
    OF '
                                                   || column_name
                                                   || ',
    OR DELETE ON imdb.'
                                                   || table_name
                                                   || '
    FOR EACH ROW'
                       ELSE(CASE
                               WHEN min_col = column_id THEN    'CREATE OR REPLACE TRIGGER '
                                                             || SUBSTR(column_name,
                                                                       1,
                                                                       4
                                                             || 'aud
    AFTER INSERT
    OR UPDATE
    OF '
                                                             || column_name
                                                             || ','
                               ELSE(CASE
                                       WHEN max_col = column_id THEN    ' '
                                                                     || column_name
                                                                     || '
    OR DELETE ON imdb.'
                                                                     || table_name
                                                                     || '
    FOR EACH ROW'
                                       ELSE(CASE
                                               WHEN column_id IS NULL THEN    'CREATE OR REPLACE TRIGGER '
                                                                           || SUBSTR
                                                                                 (column_name,
                                                                                  1,
                                                                                  4
                                                                           || 'aud
    AFTER INSERT
    OR UPDATE
    OR DELETE ON imdb.'
                                                                           || table_name
                                               ELSE    ' '
                                                    || column_name
                                                    || ','
                                            END
                                    END
                            END
                    END
                   ) text,
                   table_name1 table_name,
                   column_id,
                   1 disp_ord
            FROM   (SELECT LOWER(REPLACE(column_name,
                                         'O_',
                                        )) column_name,                   /*changing O to O_*/
                           LOWER(REPLACE(t.table_name,
                                         '_A_',
                                        )) table_name,
                           LOWER(t.table_name) table_name1,
                           c.column_id,
                           MIN(column_id) OVER(PARTITION BY c.table_name) min_col,
                           MAX(column_id) OVER(PARTITION BY c.table_name) max_col
                    FROM   all_tab_columns c,
                           (SELECT object_name table_name
                            FROM   all_objects
                            WHERE  TRUNC(created) = TRUNC(SYSDATE)
                            AND    object_name = 'CHARACTERISTIC_A_T') t
    --AND object_name LIKE 'IMDB/_A/_%' ESCAPE '/') t /*commented this line for testing*/
                    WHERE  c.table_name(+) = t.table_name
                    AND    SUBSTR(column_name(+),
                                  1,
                                  2
                                 ) = 'O_'))
              /*changed the substring condition to match new changes*/
    UNION ALL
    SELECT (CASE
               WHEN min_col = column_id THEN    'DECLARE
    BEGIN
    IF inserting THEN
    pk_imdb_audit.p_ins_characteristic_a_t
    (in_'
                                             || RPAD(column_name,
                                                     35,
                                             || '=> pk_imdb_audit.v_action_inserting,'
               ELSE(CASE
                       WHEN max_col = column_id THEN    'in_'
                                                     || RPAD(column_name,
                                                             35,
                                                     || '=> '
                                                     || LOWER(in_col_value)
                                                     || ');'
                       ELSE    ' in_'
                            || RPAD(column_name,
                                    35,
                            || '=> '
                            || LOWER(in_col_value)
                            || ','
                    END
            END
           ) text /*,
           table_name,
           column_id,
           2 disp_ord*/
    FROM   (SELECT table_name,
                   column_name,
                   column_id,
                   min_col,
                   max_col,
                   in_col_value,
                   trg_header,
                      'in_'
                   || RPAD(column_name,
                           35,
                   || '=> '
                   || LOWER(in_col_value)
                   || ',' in_col
            FROM   (SELECT   LOWER(c.column_name) column_name,
                             LOWER(c.table_name) table_name,
                             c.column_id,
                             (CASE
                                 WHEN SUBSTR(column_name,
                                             1,
                                             2
                                            ) = 'N_' THEN
                                   /*changed the substring condition to match the new change*/
                                                            ':NEW.'
                                                         || REPLACE
                                                               (column_name,
                                                                'N_',
                                                                'N_'
                                            /*changed the condition to match new requirement*/
                                 WHEN SUBSTR(column_name,
                                             1,
                                             2
                                            ) = 'O_' THEN
                                   /*changed the substring condition to match the new change*/
                                                         'NULL'
                                 ELSE    ':NEW.'
                                      || REPLACE(column_name,
                                                 '_A_',
                              END
                             ) in_col_value,
                             LOWER(SUBSTR(column_name,
                                          1,
                                          3
                                         )) trg_header,
                             MIN(column_id) OVER(PARTITION BY c.table_name) min_col,
                             MAX(column_id) OVER(PARTITION BY c.table_name) max_col
                    FROM     all_tab_columns c
                    WHERE    c.table_name IN(
                                SELECT object_name
                                FROM   all_objects
                                WHERE  TRUNC(created) = TRUNC(SYSDATE)
                                AND    object_name = 'CHARACTERISTIC_A_T')
                    ORDER BY c.table_name,
                             c.column_id))

  • Problem in compiling servlets

    Hi
    I have j2sdk1.4.0 and i am using J2ee application server.My problem is while compiling i get error as "javax.servlet" package not found.Can anybody suggest me how to give the classpath for successful compilation.
    regrds
    Vaijayanthi

    hi vaiju
    basically it gets struck while finding as well loading the appropriate library files when there is a request for servlet.. tats where it gave the error of javax.servlet is missing..
    all servlet and jsp related files (class files) reside in this javax.servlet package.. its there javax.servlet jar or simply servlet.jar or even you can use the j2ee.jar which the superset of all of these..
    you can any one of the following 2 things:
    (1) you can either set the classpath of your pc to point to or include the location where it contains any of these .jar files
    (2) you can put the reqd lib files in the container's (web/app server's) location which it internally maintains for searching while loading/running the applications...
    here you have two options
    (a) either you can include the jar files with the individual applications (your applications WEB-INF/lib folder, which you can find inside the <TOMCAT_HOME>/webapps/ YOUR_APP_ROOT/WEB-INF/lib folder)
    (b) you can put the jar files in the common place of the container in case of being required by several applications (in case of tomcat, you can put in <TOMCAT_HOME>/common/lib folder).
    Dont forget to mention this in the build.xml file in case if you use ANT tool to build your application. you can set the <property> for the classpath.
    Hope this helps...
    Good luck to your journey in Servlets....

  • Getting error while executing this select statement

    Hi All,
    I am new to this community.
    I am getting error whie compiling the below code. Its telling 'Text' is invalid identifier. Also i want to know how can we obtain 'parseable' version of the below query?
    my basic intention is to create a trigger header through a select statement and show it the complete text as a single column..
    select text from
    (select 'CREATE OR REPLACE TRIGGER '||SUBSTR(column_name,2,4)||'aud
    AFTER INSERT
    OR UPDATE
    OF '||column_name||',
    OR DELETE ON '||table_name||'
    FOR EACH ROW'
    FROM(SELECT lower(REPLACE(column_name,'O_','')) column_name , /*changing O to O_*/
    lower(replace(t.table_name,'_A_','_')) table_name,
    lower(t.table_name) table_name1,
    c.column_id
    FROM all_tab_columns c,
    (SELECT object_name table_name
    FROM all_objects
    WHERE object_name LIKE '%/_A/_%' ESCAPE '/') t
    WHERE c.table_name(+) = t.table_name
    AND SUBSTR(column_name(+),1,2) = 'O_'))

    thanks prathamesh. it solved the problem. i have one more question.
    as of now it creates single create trigger statement for each column on a table.
    example:
    CREATE OR REPLACE TRIGGER ust_aud
    AFTER INSERT
    OR UPDATE
    OF cust_id,
    OR DELETE ON characteristic_t
    FOR EACH ROW
    however, i want to create trigger for all columns in a single statement. can you please help me how to do it?
    basically want to 'CREATE TRIGGER' for all columns in a table. i am finding difficult how to change my query to suit this!!
    i am pasting my original query again for your reference. pls advise...
    example:
    CREATE OR REPLACE TRIGGER ust_aud
    AFTER INSERT
    OR UPDATE
    OF cust_id,
    fixed_item_val,
    copy_item_val,
    rgn_id,
    txn_id,
    OR DELETE ON characteristic_t
    FOR EACH ROW
    ORIGINAL QUERY
    select text from
    (select 'CREATE OR REPLACE TRIGGER '||SUBSTR(column_name,2,4)||'aud
    AFTER INSERT
    OR UPDATE
    OF '||column_name||',
    OR DELETE ON '||table_name||'
    FOR EACH ROW' text
    FROM(SELECT lower(REPLACE(column_name,'O_','')) column_name , /*changing O to O_*/
    lower(replace(t.table_name,'_A_','_')) table_name,
    lower(t.table_name) table_name1,
    c.column_id
    FROM all_tab_columns c,
    (SELECT object_name table_name
    FROM all_objects
    WHERE object_name LIKE '%/_A/_%' ESCAPE '/') t
    WHERE c.table_name(+) = t.table_name
    AND SUBSTR(column_name(+),1,2) = 'O_'))

  • Error when compiling invalid object   XLA_00555_AAD_C_011117_PKG

    Hello folks,
    i am getting error when compiling the following object.
    XLA_00555_AAD_C_011117_PKG
    here i have mentioned below is what i have done for that invalid object.
    SQL> select owner,object_name,object_type
    2 from dba_objects
    3 where status='INVALID';
    OWNER
    OBJECT_NAME
    OBJECT_TYPE
    APPS
    XLA_00555_AAD_C_011117_PKG
    PACKAGE BODY
    SQL> connect apps/apps
    Connected.
    SQL> alter package XLA_00555_AAD_C_011117_PKG compile body;
    Warning: Package Body altered with compilation errors.
    SQL> show errors;
    Errors for PACKAGE BODY XLA_00555_AAD_C_011117_PKG:
    LINE/COL ERROR
    32209/1 PLS-00103: Encountered the symbol "NVL" when expecting one of the
    following:
    * & - + / at mod remainder rem then <an exponent (**)> and or
    || multiset
    The symbol "*" was substituted for "NVL" to continue.
    32209/23 PLS-00103: Encountered the symbol "=" when expecting one of the
    following:
    . ( * % & - + / at mod remainder rem then <an exponent (**)>
    and or ||
    The symbol "* was inserted before "=" to continue.
    LINE/COL ERROR
    Please Provide me solution as soon as possible
    Regards,
    Farook

    Not exactly a custom object.
    XLA%AAD%PKG packages will be built dynamically by the XLA's AAD compiler. This will be used while generating the accounting entries.
    This error may occur due to two reasons:
    a) missing source, which is used in the setup
    SELECT *
    FROM xla_conditions xc
    WHERE application_id = &appl_id
    AND xc.source_code IS NOT NULL
    AND NOT EXISTS (SELECT 1
    FROM xla_sources_b xsb
    WHERE xc.source_application_id = xsb.application_id
    AND xc.source_type_code = xsb.source_type_code
    AND xc.source_code = xsb.source_code);
    b) wrong conditions in setup
    SELECT application_id,amb_context_code,entity_code,event_class_code
    ,accounting_line_type_code,accounting_line_code
    ,segment_rule_detail_id,description_prio_id
    FROM xla_conditions xc
    WHERE application_id = &appl_id
    GROUP BY application_id,amb_context_code,entity_code,event_class_code
    ,accounting_line_type_code,accounting_line_code
    ,segment_rule_detail_id,description_prio_id
    HAVING COUNT(*) > 1
    AND SUM(NVL2(source_code,1,0)) <> SUM(NVL2(logical_operator_code,1,0)) + 1;
    For (a) check any patch available for the missing source. Otherwise contact Oracle Support.
    For (b) check the condition of the JLT / JED / ADR, whether anything is wrongly entered.
    By
    Vamsi

  • Error while compiling apps code

    HI,
    I m getting error when compiling package in apps.My pkg is as such:
    Create or replace package body pkg1 --specification is created
    Is
    Proc1 (p1 OUT number,P2 OUT Varchar2)
    AS
    Proc2 (p1 OUT number,P2 OUT Varchar2)
    AS
    Proc3 (retcode out number,errbuf out Varchar2)
    --calling proc1 and proc2 here
    proc1;
    proc2;
    End pkg1;
    Getting error "Wrong number of argument passed to procedure".
    So,plse tell me what to pass in Proc1,Proc2 within Proc3 as it will nt accept OUT parameter here.
    I m calling package in this way (pkg1.Proc3) in apps.
    Plse tell me abt this as i knw it is very basic.
    Thnks,
    KJ

    You are not passing the parameters to proc1 and 2 while calling. Try this
    Create or replace package body pkg1 --specification is created
    Is
    Proc1 (p1 OUT number,P2 OUT Varchar2)
    AS
    Proc2 (p1 OUT number,P2 OUT Varchar2)
    AS
    Proc3 (retcode out number,errbuf out Varchar2)
    AS
    --calling proc1 and proc2 here
    ln_retcode number := null;
    lv_errbuf varchar2(2000) := null;
    begin
    proc1(ln_retcode,lv_errbuf);
    ln_retcode := null;
    lv_errbuf := null;
    proc2(ln_retcode,lv_errbuf);
    END Proc3;
    End pkg1;
    Thanks
    Shree

  • Error while compiling trigger/procedure for a table in which attribute is r

    I have table
    desc pappu
    name varchar(10);
    start varchar(5);
    end varchar(5);
    One of the attribute is end which is also a reserved keyword in oracle.I want to create some procedure/trigger which use the attribute end but i get errors while compiling that "
    PLS-00103: Encountered the symbol "END" when expecting one of the
    following:
    <an identifier> <a double-quoted delimited-identifier>
    The symbol "<an identifier> was inserted before "END" to
    continue.
    Any workaround for this.

    user620101 wrote:
    name varchar(10);
    start varchar(5);
    end varchar(5);
    SQL> create table pappu (name varchar(10),stat varchar(5),end varchar(5));hi,
    earlier you have given column name start and here you are creating table with colum name stat....anyway try to use column alias for column END
    CREATE TABLE pappu (NAME VARCHAR(10),STAT VARCHAR(5),END VARCHAR(5));
    INSERT INTO PAPPU ( NAME, STAT, END ) VALUES ( 'name1', '1', '14');
    INSERT INTO PAPPU ( NAME, STAT, END ) VALUES ( 'name2', '15', '20');
    CREATE OR REPLACE PROCEDURE testpappu
    AS
    CURSOR test1
    IS
    SELECT NAME,stat AS st,END AS v_end FROM pappu;
    BEGIN
         FOR i IN test1
         LOOP
         DBMS_OUTPUT.PUT_LINE ( 'name - '||i.NAME ||'-'||i.st||'-'||i.v_end );
         END LOOP;
    END;
    SQL> exec testpappu;
    name - name1-1-14
    name - name2-15-20
    PL/SQL procedure successfully completed.
    Thnx
    MB
    Edited by: ManishB on Sep 20, 2010 10:50 AM

Maybe you are looking for

  • CalcMgrRequest XML Files

    Backup job lists number of files related to calc manager as ‘no such file or directory’. I have produced an abridged list below. This happen when backup jobs initially make the list of files to backup and hours later when it is ready to read file it

  • QuickTime files not visible in Firefox (Mac) & poster frame not visible

    I created a website with QuickTime samples and uploaded it to an ftp server. I can see the QT files when I access via Safari (Mac + Win), Chrome (Win), IE (Win) and Firefox (Win), but for some reason, when I access via Firefox (Mac) they do not appea

  • Backup Problem LTO & Tivoli.

    Dear Guru's, I have again into a problem with our SAP Production backup. We have two backups regularly running in the system, following are the details : Single Cartridge LTO : Offline. Tivoli Backup :  Online. The error is (It is same for both the c

  • HT5349 After reset I keep getting prompted to create or join Open Directory.

    I followed this procedure and after step 5 I get the option to create a new Open Directory domain.  I already have a master on this server, but I can't get beyond this dialog box to configure the Profile Manager.  If I click through to create a new O

  • Pearl won't boot up with blue light?

    I have a pearl and last night the screen went dead and the blue light turned on. I have taken the battery out and as soon as I replace the battery, the blue light comes on.  Doesn't even attempt to boot. Any ideas?