建立一个project,然后创建最简单的jsp页面和servlet,web run发现出现以下错误:
"Jsp1.jsp": java.lang.NoSuchMethodException: com.borland.jbuilder.webserverglue.weblogic.jsp.NadaJavac does not define 'public static void compile(String[])'
请问是什么原因?!!!!
---------------------------------------------------------------
下面是对问题和解决方案的描述:(请按以下操作进行尝试)
Error description :(错误描述)
"TestJsp.jsp": java.lang.NoSuchMethodException:
com.borland.jbuilder.webserverglue.weblogic.jsp.NadaJavac does not
define 'public static void compile(String[])'
"TestJsp.jsp": Error: compilation of jsp file /Jsp1.jsp (java file
C:\Documents and Settings\Sudhansu
Pati\jbproject\untitled11\classes\Temporary_Files\.jsp\testweb\jsp_se
rvlet\__jsp1.java failed):
null
"Jsp1.jsp": java.io.IOException: Compiler failed
executable.exec(java.lang.String[-classpath,])
Exception in thread "main"
Cause:(原因)
Seems like you have installed WebLogic Server 7.0 sp1. WebLogic 7.0 sp1 got released after
JBuilder 7 and because of some changes in the sp1, the JSP/Servlet integration is broken.
Solution:(解决方案)
Download JBWE from the Borland or BEA Web sites and find the file webserverglue.jar
from JBWE. Then save the file to
1<jbuilder7_installed_dir>/patch .
2
3
4解决后别忘了马上结贴。。。~</jbuilder7_installed_dir>