jsp页面调后台java类,报
java.lang.NoSuchMethodError错误
07:59:43,251 ERROR [jsp]:253 -
Servlet.service() for servlet jsp threw exceptionjava.lang.
NoSuchMethodError: org.apache.axis.description.ElementDesc.setNillable(Z)V
at cn.com.ispp.ispp_npi.Method.<clinit>(Method.java:6360)
at com.asiainfo.isppNpi.busi.OTA.creatMo(OTA.java:31)
at org.apache.jsp.isppNpi_jsp._jspService(isppNpi_jsp.java:50)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:873)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Thread.java:595)
------解决方案--------------------
写完方法要重新发布项目,并且注意方法名
还是是否引入包
------解决方案--------------------
问题我也样遇到,大多原因是编制在tomcat端得class文件和工作空间端得class文件不一致,建议从新build项目,确保class文件在工作空间和tomcat的class文件保持一致。擅长tomcat中的class文件重新部署吧!