Method ServletConfig() not found!!

Hello,
i got this error when i used the below code. it said the mtheod ServletConfig() not found in class. however, i have download the lastest version of servlet2.1 from sun and i have import to the project. like the following:
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.GenericServlet;
import javax.servlet.ServletConfig;
import javax.servlet.ServletContext;
import javax.servlet.Servlet;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletRequestWrapper;
but it still doesn't work. Does anyone know what i miss here? here is the code
v.processHttpRequest(request, response, ServletConfig().getServletContext;
Thanks a lot
Eva

ServletConfig is no method, it's a class.
As said, use getServletConfig() instead.

Similar Messages

  • The getBuiltInScopes method was not found

      I have an application that has worked for quite a while. I have made no changes to the code since the last time I used it. Basically, the code creates a zip file with input for an involved report. I used it in March of this year it worked fine. I've been assured by the gov't sysadmins and DBAs that nothing has changed, but I still get the attached error. Any ideas?    I have just heard from a friend who knows CF, that it could be a version issue.  I am currently running 8 and I believe he is running 10.   If this is an issue, is the solution somewhere on this site?   I do minimal CF and am at a loss.   The function that is throwing the error is when a button is clicked, a javascript routine is run which combines all the files requred for the zip file.   Yesterday, another application started throwing the error.  I haven't been through the code yet, but it is another button being clicked, and I'm sure, another javascript error.

    The SysAdmin sent me the application log:  Since it is a government site, I changed identifying things to XXXX  or xxxx.
    "Error","ajp-bio-8012-exec-2091","09/26/14","11:43:33","XXXXransfer3","The getBuiltInScopes method was not found.Either there are no methods with the specified method name and argument types or the getBuiltInScopes method is overloaded with argument types that ColdFusion cannot decipher reliably. ColdFusion found 0 methods that match the provided arguments. If this is a Java object and you verified that the method exists, use the javacast function to reduce ambiguity. The specific sequence of files included or processed is: \\haffs002\ProdData\Sites\xxx\IE\XXXX\secure\Authorization\FundingRequestForm_Action.cfm, line: 113 "
    Line 113 is: document.form1.actiontaken.value = "approve"
    The user clicks on a button to Approve or Disapprove a request.  This causes another screen to be displayed.  The error is happening before the 2nd screen is displayed.

  • Method init not found in class oracle.apps.fnd.cp.request.C

    Hi all,
    I am reffering to Oracle Application Framework Developer’s Guide Release
    11.5.10 RUP3 December 2, 2005
    As given in the document (page 275) Concurrent Processing: Request Submission
    and Monitoring ,I want the Concurrent Processing Request Submission and Monitoring user interfaces available on my OA Framework-based pages.
    I have followed the steps given in the OADevGuide but when the custom CO
    is compiled it gives following error.
    method <init> not found in class oracle.apps.fnd.cp.request.ConcurrentRequest.
    The import statement in our code is as followed
    import oracle.apps.fnd.cp.request.ConcurrentRequest;
    import oracle.apps.fnd.cp.request.RequestSubmissionException;
    wheather I have to open a SR on metalink asking for an updated file ConcurrentRequest.class ?
    Thanks in advance,
    Anant.

    Hi All,
    Thanks Prabhat for that update.
    Thanks tapashray cause u r update on thread Apply not being caught in debugger helped me a lot.
    Right now I am facing a different problem.
    On click of submit button The page gets called but it gives error as
    oracle.apps.fnd.framework.OAException: Could not load application module 'oracle.apps.fnd.cp.srs.server.RequestAM'.
    In myprojects folder under oracle dir at reqd path I have this AM .
    Whether I need to add the bc4j pkg "oracle.apps.fnd.cp.srs.server.RequestAM" in my project . I dont think so as I am not extending any class/VO or doing any substitution.
    my code is as followed
    public void processFormData(OAPageContext pageContext, OAWebBean webBean)
    System.out.println("Inside ProcessFormData");
    if (pageContext.getParameter("Submit")!= null )
    System.out.println("Inside Submit ");
    try
    // get the JDBC connection
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    //Connection conn = (Connection)am.getOADBTransaction();
    OADBTransaction conn = am.getOADBTransaction();
    System.out.println("OADBTransaction conn "+conn);
    ConcurrentRequest cr = new ConcurrentRequest(conn.getJdbcConnection());
    System.out.println(" ConcurrentRequest cr "+cr);
    cr.setDeferred();
    // call submit request
    Vector param = new Vector();
    String selectedValue = pageContext.getParameter("reportList");
    System.out.println("selectedValue -> "+selectedValue);
    param.add(selectedValue);
    System.out.println("before cr.submitRequest ");
    int reqId = cr.submitRequest("SQLGL", "RGFSGXML", "Run FSG and XML Publisher",null, false, param);
    // int reqId = cr.submitRequest("SYSADMIN", "FNDSCURS", "User Responsibility Report",null, false, param);
    System.out.println("After cr.submitRequest reqId "+reqId);
    conn.commit();
    System.out.println("After commit");
    // redirect page to Request Scheduling page
    HashMap parameters = new HashMap();
    String url = "OA.jsp";
    parameters.put("akRegionApplicationId", "0");
    parameters.put("akRegionCode", "FNDCPPROGRAMPAGE");
    String id = "" + reqId + "";
    parameters.put("requestMode", "DEFERRED");
    parameters.put("requestId", id);
    System.out.println("before page forward ");
    pageContext.setForwardURL("BSE_CONC_REQUEST"
    ,OAWebBeanConstants.KEEP_MENU_CONTEXT
    ,null
    ,parameters
    ,true
    ,OAWebBeanConstants.ADD_BREAD_CRUMB_NO
    ,OAWebBeanConstants.IGNORE_MESSAGES);
    catch(RequestSubmissionException reportError)
    System.out.println("RequestSubmissionException raised "+reportError.getStackTrace());
    catch(SetDeferredException deferred)
    System.out.println("SetDeferredException raised "+deferred.getStackTrace());
    super.processFormData(pageContext,webBean);
    Hope I have given all the details.
    Regards,
    Anant.
    Message was edited by: Removed the error stack so that thread details remain on the same page
    Anant

  • Method getConnection not found

    hi am having this method am geting error method getConnection not found what could be the problem
    public String login_action() {
    // Add event code here...
    String user = this.getUid().getValue().toString();
    String pwd1 = this.getPwd1().getValue().toString();
    Connection conn;
    try {
    conn = getConnection();
    Statement stmt = conn.createStatement();
    ResultSet rset = stmt.executeQuery ("SELECT 'x' FROM sms_users where user_id = '"+user+"'");
    if (rset.next()) {
    conn.close();
    return "sms0000-v2";
    conn.close();
    } catch (SQLException e) {
    System.out.println(e);
    return "sms0000 Logon";
    }

    thats was easy sorry was not thinking
    public Connection getCurrentConnection()
    Statement st = null;
    try
    // create dummy Statement
    st = this.getDBTransaction().createStatement(0);
    return st.getConnection();
    catch (SQLException s)
    finally
    // close Statement
    if (st != null)
    try
    st.close();
    catch (SQLException s2)
    }

  • Junit AssertionFailedError - method 'null' not found

    After running the TestSuite, everytime I click on "null" in Eclipse under Failures, I get "method 'null' not found".
    The Failure Trace says "junit.framework.AssertionFailedError".
    just running one class through the TestSuite and have commented all my assertion statements but still get this error. Any pointers ?
    Thanking you

    I once encountered this issue. The cause was I put some code in the class (which inherits from TestCase) constructor.
    After I remove the constructor, everything went OK. Hope this help.

  • UI Error 'Method clone not found in class java.lang.Class'

    When attempting to view an application window in the User Interface error I receive the error 'Method clone not found in class java.lang.Class'. The window will run correctly when I execute the application and other objects on the window are displayed correctly in the UI editor.
    Within the window class I have used the following line of code to clone a reference list of values that is loaded just once when the application starts up: -
    dsDefaultComboBoxModel priorityComboBoxModel = (dsDefaultComboBoxModel) dsReferenceLuLists.priorityComboBoxModel.clone();
    And then this line of code to create a combo box: -
    dsGuiComboBoxRefelu priorityComboBox = new dsGuiComboBoxRefelu(priorityComboBoxModel,ReportWindowSql.priorityCodeBuffer);
    And then later on the combo box is displayed.
    detailsArea.add(priorityComboBox, new XYConstraints(250,10,dsGlobalVariables.gvFieldWidthLarge,-1));
    'dsDefaultComboBoxModel' is defined as follows: -
    public class dsDefaultComboBoxModel extends DefaultComboBoxModel implements Cloneable
    public dsDefaultComboBoxModel()
    public Object clone()
    try
    return super.clone();
    catch ( CloneNotSupportedException e )
    // Shouldn't happen.
    throw new InternalError( e.toString() );
    This error occurs using the latest v903, but was also present in previous versions of JDeveloper.
    At the moment this means that I did to execute the window in order to see all of the GUI elements that are displayed. As on option I could use something other than the clone method, but it seems to be such a nice way of copying the static reference lists.
    Thanks for any help.

    Hi Darren,
    My guess is that since DefaultComboBoxModel doesn't implement Cloneable, you can't call super.clone(). Does your code compile?
    Later.
    Dennis

  • Method addLayout not found in class ...cp.request.ConcurrentRequest

    I am trying to send concurrent request (XML publisher report) through OAF controller.
    But I get next error when compile it:
    Error(46,20): method addLayout(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String) not found in class oracle.apps.fnd.cp.request.ConcurrentRequest
    Below the sample of code.
    Please, help me to find a root of cause
    package xxcust.oracle.apps.ap.oie.webui;
    import oracle.apps.fnd.common.VersionInfo;
    import oracle.apps.fnd.framework.webui.OAControllerImpl;
    import oracle.apps.fnd.framework.webui.OAPageContext;
    import oracle.apps.fnd.framework.webui.beans.OAWebBean;
    import oracle.jdbc.OracleCallableStatement;
    import java.util.Vector;
    import oracle.apps.fnd.cp.request.ConcurrentRequest;
    import oracle.apps.fnd.framework.OAApplicationModule;
    import oracle.apps.fnd.framework.OAException;
    import oracle.apps.fnd.framework.server.OADBTransaction;
    public class xxMyPrintCO extends OAControllerImpl
    public static final String RCS_ID="$Header$";
    public static final boolean RCS_ID_RECORDED =
    VersionInfo.recordClassVersion(RCS_ID, "%packagename%");
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    { super.processRequest(pageContext, webBean);
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    OADBTransaction tx = am.getOADBTransaction();
    java.sql.Connection pConncection = tx.getJdbcConnection();
    ConcurrentRequest cr = new ConcurrentRequest(pConncection);
    int xxRequestId = 0;
    // concarent parameters
    String xxp_type = null;
    String applnName = "SQLAP";
    String cpName = "XXKVP_KO1";
    String LayName = "XXKVP_KO1";
    String cpDesc = null;
    try
    cr.addLayout("PER",LayName,"ru","RU","PDF");
    catch(Exception e)
    {throw new OAException("addLayout -" + e.getMessage(), (byte)0);
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    }

    it was a bug described in doc [ID 1360914.1]
    JBO-29000 java.lang.NoSuchMethodError When Calling oracle.apps.fnd.cp.request.ConcurrentRequest.addLayout [ID 1360914.1]

  • Method oadbtransaction not found while running jsp page

    Hi all,
    We are trying to use the below method in jsp, but when are trying its giving error as the method OADBTransaction is not found in corresponding directory, can you please let us know from where we need to download this method from server so that we can run the jsp page from local directory.
    Thanks in advance.
    AppsContext context = ((OADBTransactionImpl)getOADBTransaction()).getAppsContext();
    Regards
    Deb

    Deb,
    To get the object of AppsContext we use following code in jsp
    import      = "oracle.apps.fnd.common.WebAppsContext"
      WebAppsContext wctx = null;
      int userId = 0;
      try {
                  if (Utils.isAppsContextAvailable()) {
                      wctx = Utils.getAppsContext();
                      userId  = wctx.getUserId();
      catch (Exception e) {}Regards,
    Gyan

  • Method definition not found...

    I am very new to Xcode and coding in general.
    I often get an error notification in xcode that does not go away after the error has been corrected.
    Right now I have "Method definition for 'convertFarenheit:' not found" warning listed, however, the error has been corrected.
    The build succeeds, the program runs properly, output is correct.  The warning is not even on the line it originally was on.
    Is there a way to clear errors like this, or run the error check again?  Is this an xcode bug?
    Thanks for the help.

    Well, unfortunately, I closed the project and reopened it.  The error is gone (so I assume there wasn't one with my coding).
    I run into this often and I will try the suggestion next time I do.

  • Method listfiles() not found in java.io File

    Forgive me if the question is silly. Does this mean I need to update the Java Package?? Here is the code.
    import java.io.*;
    public class main1
    public static void main1(String[ ] args)
    File myDir = new File("c:/Data/XML"); // or any required directory pathname
    File[ ] files = myDir.listFiles(); // can also use a FileFilter
    for (int i=0 ; i < files.length ; i++)
    try{
    FileInputStream in = new FileInputStream(files);
    System.out.println(files[1]);
    // Do here your reading and handling
    in.close();
    catch (IOException e) {
    System.err.println("Could not read file: " + files);
    e.printStackTrace();
    }

    Either update your VM or use
    File     dir   = new File(path);
    String[] temp  = dir.list();
    int      size  = temp.length;
    File[]   files = new File[size];
    for(int i = 0; i < size; i++)
        files[i] = new File(temp);

  • Methods not found in class !  HELP !

    Dear java People,
    I am trying to draw, move, and erase balls in a ArrayList. I get an error message that says:
    "BallDemo.java": Error #: 300 : method draw() not found in class java.lang.Object at line 126,
    "BallDemo.java": Error #: 300 : method move() not found in class java.lang.Object at line 132
    "BallDemo.java": Error #: 300 : method erase() not found in class java.lang.Object at line 138
    below are the lines causing the errors and the method with the problem code
    Thank you in advance
    Stan
    public void bounce()
            int ground = 400;   // position of the ground line
            int numberOfBalls = 0;
            myCanvas.setVisible(true);
            ArrayList balls = new ArrayList();
            // draw the ground
            myCanvas.drawLine(50, ground, 550, ground);
            //ex 5.50 (a)
            System.out.println("Type in the number of balls you would like to see bouncing and hit enter");
              numberOfBalls = input.readInt();
             //(b)
             for(int i = 0; i < numberOfBalls; i++)
               //(c) (d)
            Random rg = new Random(255);
             BouncingBall newBall =  new BouncingBall(i + 15, 0, 16, new Color(rg.nextInt(255),rg.nextInt(255),rg.nextInt(255)), ground, myCanvas);
             //add the ball to the ArrayList object
            balls.add(newBall);
           for(int i = 0; i < numberOfBalls; i++)
               balls.get(i).draw();
              // make them bounce
              boolean finished =  false;
              while(!finished) {
               myCanvas.wait(50);           // small delay
               balls.get(i).move();
                // stop once ball has travelled a certain distance on x axis
               // if(ball.getXPosition() >= 550 && ball2.getXPosition() >= 550)
                    finished = true;
              balls.get(i).erase();
        }balls.get(i).draw();
    balls.get(i).move();
    balls.get(i).erase();

    I actually caught this error myself !
    I must be improving !
    Cheers
    Stan

  • Method Not Found Invoke Node error 1316 using Solid Works IEdm

    Hi Forum members,
    I have been having a problem with calling a function in a dll file.  I have attached the VI as example.  When I use the GetFile method I get a reference to that.  I then use the Invoke node and recieve a list of methods, the first of which is ChangeState.  I select this method and wire all required inputs and when I run the program I receive the error at that invoke node that the method does not exist.  How is this possible?  I have tried various methods to ensure the inputs are all correct and none have worked.  I do not believe the fault lies in the inputs, but I cannot for the life of me find the problem...  Perhaps someone has experience using Solid Works in Labview?  Any help would be appreciated.!!
    Cheers
    Ben
    Attachments:
    SetFileSatus.vi ‏18 KB

    I have determined that there is a problem with the Invoke node not recognising the function.  This is a Labview problem as the function is listed and selectable, so when the error comes saying the function is not found, this is a problem with Labview and not the dll.  The Function when selected also has the right input parameters that automatically appear.  How is it then that the method is not found when the program is run?

  • GetTextContent() method not found in JDK1.5

    Hello
    I wish to start by saying this error has frustrated all my efforts to finish my work. I will appreciate any help offered.
    Tomcat 4.1
    JDK1.5
    I'm trying to load an xml file using dom and then access the content of that element. I used the package org.w3c.dom.node. and a number of xpath packages that comes with the new JDK1.5. Everything works well except actually accessing text content of an element. i.e. <ELEMENT>TEXT VALUE</ELEMENT>
    My jsp page keeps saying:
    method getTextContent not found in org.w3c.dom.node.
    and the old getNodeValue() that is available in the old JDK1.4 will not work in JDK 1.5
    And I know for a fact the method in question is available in the package because my beans which utilises the same method compiles OK
    I later discovered this error is specific to tomcat 4.1 and not tomcat 5. Unfortunately I don't have the luxury of upgrading or using third party XML parser.
    Anyone who can replicate similar conditions and can solve this will be appreciated.
    PLSSSSSS HELP!!!!!!!
    anyone who wish to

    I've just tried another method with similar result.
    getWholeText();

  • Can't compile any JSP : method handlePageException(...) not found

    Hello,
    I installed JDev 9.0.3 yesterday, it did compile my JSP pages, but today it won't, even after reinstalling it.
    I get the following error messages for every page :
    Error: method handlePageException(java.lang.Throwable) not found in class javax.servlet.jsp.PageContext
    Error(16,45): method doAfterBody not found in class org.apache.struts.taglib.template.InsertTag
    Error(16,93): variable EVAL_BODY_AGAIN not found in interface javax.servlet.jsp.tagext.BodyTag
    Does anyone know what this could mean ? I have added all libraries in the project's "library" tag, to no avail.
    Thanks.
    P.

    Lynn -
    I tried making a new page with JDev's wizard : File -> New -> Web Tier -> JSP -> JSP Page. This minimal page contains only a "hello world" message, and has got no taglib. I still get :
    Error: method handlePageException(java.lang.Throwable) not found in class javax.servlet.jsp.PageContext
    when I compile it.
    j2ee.jar is in Path and libraries ; my libraries are "JDev Runtime, JSP Runtime, Oracle XML Parser v2" and a bunch of our libraries.
    Any ideas ?
    Thanks.

  • Using 'getClasses'  for reflection / introspection  - not found in Jdev

    Hi people,
    I am using Jdeveloper 10.1.3.0.4 and I am trying to use some of java's reflection / introspection features.
    - I am trying to use the getClasses method, part of the 'Class' class.
    However, Jdeveloper is telling me 'method not found.' The getClass method
    is found OK, but not getClasses, which looks like a standard method in 'Class' in the java doc. Anyone know how to pull this one in ? I am coding import java.lang.Class; explicitly as well.
    Specifically, my need is to determine, at runtime, a list of the lowest-level 'leaf node' subclasses in a specific class inheritance tree. I reckon I should be able to do this with a recursive routine that uses getClasses on each class; when this returns an empty array I know I am at a lowest-level subclass. However it's failing on the first hurdle -
    static House myHouse = new House(); // House is the simple class I want to test
    static Class[] array_of_classes ;
    array_of_classes = myHouse.getClasses();
    -> method getClasses not found in <current package.class>
    on a similar vein, I tried adding
    import java.lang.reflect;
    - this gives java.lang.reflect not found.
    My only alternative is to code my program in a totally non-OO way! :-(
    please help!
    thanks!!!

    Hi,
    I resolved the other errors by changing all references from com.bea.jcom.Variant
    etc to com.linar.jintegra.class name..all were present under the com.linar.jintegra
    package.
    Thank you all anyways,
    Regards,
    rahul
    "Rahul Srivastava" <[email protected]> wrote:
    >
    Hi,
    We are generating java classes for the COM dll using JCOM com2java compiler.
    We are getting a compilation error for import class not found when compiling
    the
    generated Proxy java source code. It can't find the com.bea.jcom.Dispatch
    class that
    the generated Proxy java source code extends. It also can't find com.bea.jcom.Variant
    or com.bea.jcom.Param. These are interfaces or data types or classes used
    by COM
    library.
    I added weblogic.jar to my class path and the only Dispatch class i found
    inside
    the weblogic.jar is com.linar.jintegra.Dispatch;
    We have com objects for which we want to develop an EJB client to interface
    with
    the COM object using JCOM with Native Mode disabled.
    Any help on the compilation error..I tried changing the extends for Dispatch
    to com.linar.jintegra.Dispatch
    but the other errors are still there.
    To begin with, I think the generated code should not refer to any of the
    COM data
    types.
    Any help please.
    Thank you in advance,
    Regards,
    Rahul Srivastava
    [email protected]

Maybe you are looking for

  • Vendor's AP report

    Dear Experts/Gurus, I have a problem to develop a report using query print layout. The report will look like vendor liabilities aging (VLA). In the aging, the closed AP invoices are not display but in the report I need, they are still displayed if th

  • Adobe Reader 11 (11.0.02)

    My computer apparently has Adobe Reader 11 (11.0.02) installed but I am unable to open PDFs. I am also unable to remove or change it and when I try I get a message saying, "This patch package could not be opened. Verify that the patch exists and that

  • Video Podcasts Won't Play under 7.3.2.6

    Just installed new itunes and quick time and numerous previously downloaded and newly downloaded video podcasts won't play. You can see the opening frame on the small screen at bottom left if you click but when you try to play, the screen goes green,

  • Button not working. Quick Fix?

    Hey guys. Im not to new to flash but I didn't work with it for about a year. I created a site a while back but it was all self contained. I decided to do just a flash intro this time and create a button that goes to the site but it isn't working in t

  • Save As Trusted Function: Part II

    Continuing my previous thread:  http://forums.adobe.com/thread/509314?tstart=0 I'm now working on another form requiring this same type of function, but there's a new wrinkle. How can I substitute fields if one of the fields to be used is blank or is