Hi,
我在建一个 Weblogic Workshop 的项目,在用 ant 的 build.xml 编绎 jsp 时,发现错误,
请帮忙看下下面是什么问题?
是找不到 javax.servlet.jsp.tagext.BodyTagSupport 吗?还是 referenced in .class file but not on classpath 是没有将 javax.servlet.jsp.tagext.BodyTagSupport 所在的 jar 包 (weblogic.jar) 放在 classpath 下吗?
[java] [Build] Compiling webapp example...
[java] [Build] example: Compiling webapp resource files...
[java] [Build] example: Compiled webapp resource files in 5799 milliseconds
[java] [Build] example: Compiling 6 JSP files...
[java] [Build] Warning: referenced in .class file but not on classpath: javax.servlet.jsp.tagext.BodyTagSupport
[java] [Build] Warning: referenced in .class file but not on classpath: javax.servlet.jsp.PageContext
[java] [Build] Warning: referenced in .class file but not on classpath: javax.servlet.jsp.JspException
[java] [Build] Warning: referenced in .class file but not on classpath: weblogic.utils.UnsyncStringBuffer
[java] [Build] Warning: language 'class' does not have locator
[java] [Build] Warning: language 'class' does not have locator
[java] [Build] Warning: referenced in .class file but not on classpath: javax.servlet.jsp.tagext.TagSupport
[java] [Build] Warning: referenced in .class file but not on classpath: weblogic.debugging.comm.ConnectInfo
[java] [Build] Warning: referenced in .class file but not on classpath: weblogic.servlet.internal.WebAppServletContext
[java] [Build] Warning: referenced in .class file but not on classpath: weblogic.management.DeploymentException
[java] [Build] Warning: referenced in .class file but not on classpath: com.bea.compiler.enterprise.IEntProject
[java] [Build] Warning: referenced in .class file but not on classpath: com.bea.compiler.enterprise.IEntProject.IWebAppProject
[java] [Build] Errors found in example\error.jsp:
[java] [Build] Error at line 1 column 1:
[java] [Build] Description: Package weblogic.servlet.jsp contains no member type of this name.
[java] [Build] Error at line 1 column 1:
[java] [Build] Description: Package weblogic.servlet.jsp contains no member type of this name.
[java] [Build] Error at line 1 column 1:
[java] [Build] Description: Package javax.servlet contains no member package or type of this name.
[java] [Build] Error at line 1 column 1:
[java] [Build] Description: Package weblogic.servlet.jsp contains no member type of this name.
[java] [Build] Error at line 1 column 1:
[java] [Build] Description: Package javax.servlet contains no member package or type of this name.
------解决方案--------------------
servlet-api.jar
------解决方案--------------------
servlet-api.jar