"test.jsp ": java.lang.NoClassDefFoundError: org/apache/jasper/JspC
Exception in thread "main "
D:\实用工具\JBuilder2006\jdk1.5\bin\java -classpath "D:\实用工具\JBuilder2006\lib\ant.jar;D:\实例\JSP\电器服务\电器服务\classes;D:\实用工具\JBuilder2006\thirdparty\jakarta-struts-1.2-lib\antlr.jar;D:\实用工具\JBuilder2006\thirdparty\jakarta-struts-1.2-lib\commons-beanutils.jar;D:\实用工具\JBuilder2006\thirdparty\jakarta-struts-1.2-lib\commons-collections.jar;D:\实用工具\JBuilder2006\thirdparty\jakarta-struts-1.2-lib\commons-digester.jar;D:\实用工具\JBuilder2006\thirdparty\jakarta-struts-1.2-lib\commons-fileupload.jar;D:\实用工具\JBuilder2006\thirdparty\jakarta-struts-1.2-lib\commons-logging.jar;D:\实用工具\JBuilder2006\thirdparty\jakarta-struts-1.2-lib\commons-validator.jar;D:\实用工具\JBuilder2006\thirdparty\jakarta-struts-1.2-lib\jakarta-oro.jar;D:\实用工具\JBuilder2006\thirdparty\jakarta-struts-1.2-lib\struts.jar;D:\实用工具\JBuilder2006\jdk1.5\jre\lib\rt.jar;D:\实用工具\JBuilder2006\jdk1.5\jre\lib\ext\localedata.jar;D:\实用工具\JBuilder2006\jdk1.5\jre\lib\ext\sunjce_provider.jar;D:\实用工具\JBuilder2006\jdk1.5\jre\lib\ext\sunpkcs11.jar;D:\实用工具\JBuilder2006\jdk1.5\jre\lib\ext\dnsns.jar;D:\实用工具\JBuilder2006\jdk1.5\jre\lib\javaws.jar;D:\实用工具\JBuilder2006\jdk1.5\jre\lib\jce.jar;D:\实用工具\JBuilder2006\jdk1.5\jre\lib\jsse.jar;D:\实用工具\JBuilder2006\jdk1.5\jre\lib\deploy.jar;D:\实用工具\JBuilder2006\jdk1.5\jre\lib\im\thaiim.jar;D:\实用工具\JBuilder2006\jdk1.5\jre\lib\im\indicim.jar;D:\实用工具\JBuilder2006\jdk1.5\jre\lib\charsets.jar;D:\实用工具\JBuilder2006\jdk1.5\jre\lib\plugin.jar;D:\实用工具\JBuilder2006\jdk1.5\lib\dt.jar;D:\实用工具\JBuilder2006\jdk1.5\lib\tools.jar;D:\实用工具\JBuilder2006\jdk1.5\lib\htmlconverter.jar;D:\实用工具\JBuilder2006\jdk1.5\lib\jconsole.jar " org.apache.jasper.JspC -d "D:/实例/JSP/电器服务/电器服务/classes/Temporary_Files/.jsp/WebModule1 " -p org.apache.jsp -c test_jsp -uriroot "D:/实例/JSP/电器服务/电器服务/WebModule1 " "D:/实例/JSP/电器服务/电器服务/WebModule1/test.jsp "
"test.jsp ": Invocation Error
"WebModule1 ": action servlet class: org.apache.struts.action.ActionServlet must implement either javax.servlet.Servlet or java.rmi.Remote.
这是什么原因啊?
------解决方法--------------------------------------------------------
java.lang.NoClassDefFoundError
分析后的集中情况导致类的不识别:
1.所需要的包为导入工程.
2.文件名和类名不同导致不识别.
WebModule1 ": action servlet class: org.apache.struts.action.ActionServlet must implement either javax.servlet.Servlet or java.rmi.Remote.
好像好在你的方法内下面的两个方法中的一个 呵呵 猜的 见笑了