1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

org.apache.jasper.JasperException

Discussion in 'Java' started by Juuno, Jun 13, 2009.

  1. Juuno

    Juuno New Member

    Joined:
    Feb 3, 2009
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    0
    I used jstl in my jsp to pass parameter to my java program and get the output like this:
    ${sm:searcher_main(obj, obj.keyword)}
    and it worked fine. But I need to pass another parameters so that I changed it to :
    ${sm:searcher_main(obj, obj.keyword, obj.content)}.
    I also changed the code in my java program to accept two parameters. And I ve already changes it in my .tld file. But it doesn't work and I got the following error:

    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.

    exception

    org.apache.jasper.JasperException: Method "match" for function "searcher_main" not found in class "com.webIndex.wixUI.search.searcher_main"
    org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:51)
    org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:409)
    org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:181)
    org.apache.jasper.compiler.Validator$ValidateVisitor$1MapperELVisitor.visit(Validator.java:1635)
    org.apache.jasper.compiler.ELNode$Function.accept(ELNode.java:129)
    org.apache.jasper.compiler.ELNode$Nodes.visit(ELNode.java:200)
    org.apache.jasper.compiler.ELNode$Visitor.visit(ELNode.java:242)
    org.apache.jasper.compiler.ELNode$Root.accept(ELNode.java:56)
    org.apache.jasper.compiler.ELNode$Nodes.visit(ELNode.java:200)
    org.apache.jasper.compiler.Validator$ValidateVisitor.getFunctionMapper(Validator.java:1644)
    org.apache.jasper.compiler.Validator$ValidateVisitor.prepareExpression(Validator.java:1512)
    org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:724)
    org.apache.jasper.compiler.Node$ELExpression.accept(Node.java:940)
    org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2343)
    org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2393)
    org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2399)
    org.apache.jasper.compiler.Node$Root.accept(Node.java:489)
    org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2343)
    org.apache.jasper.compiler.Validator.validate(Validator.java:1737)
    org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:165)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:314)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:294)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:281)
    org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    note The full stack trace of the root cause is available in the Apache Tomcat/6.0.16 logs.

    Thanks!
     

Share This Page