0 Replies Latest reply on Jul 8, 2008 3:32 PM by G. Richolson

    struts 1.0 app on jboss 4.2.2 Unable to find setter method f

    G. Richolson Newbie

      I am trying to port a sturts 1.0 app from weblogic to jboss 4.2.2. when loading the first page of the app I get the following error:

      org.apache.jasper.JasperException: /CGP/customer.jsp(541,6) Unable to find setter method for attribute: onClick
      org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
      org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
      org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:148)
      org.apache.jasper.compiler.Generator$GenerateVisitor.evaluateAttribute(Generator.java:2736)
      org.apache.jasper.compiler.Generator$GenerateVisitor.generateSetters(Generator.java:2965)
      org.apache.jasper.compiler.Generator$GenerateVisitor.generateCustomStart(Generator.java:2169)
      org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1689)
      org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1507)
      org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2338)
      org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2388)
      org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1705)
      org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1507)
      org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2338)
      org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2388)
      org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1705)
      org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1507)
      org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2338)
      org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2388)
      org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1705)
      org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1507)
      org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2338)
      org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2388)
      org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2394)
      org.apache.jasper.compiler.Node$Root.accept(Node.java:489)
      org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2338)
      org.apache.jasper.compiler.Generator.generate(Generator.java:3374)
      org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:210)
      org.apache.jasper.compiler.Compiler.compile(Compiler.java:306)
      org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
      org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
      org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
      org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:316)
      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1014)
      org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:417)
      org.apache.struts.action.RequestProcessor.processActionForward(RequestProcessor.java:390)
      org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:271)
      org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292)
      org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

      The line causing the problem looks like this:
      <html:submit styleClass="normalButton" styleId="save" property="action" value="Save" onClick="return validateAllForCust(document.customerForm)"/>

      Thanks for any help.