一个 tomcat 中包的配置的问题
在 server.xml 中,有这么一段:
<Context path="/source"
docBase="source/jsp"
crossContext="true"
debug="0"
reloadable="true"
trusted="false" >
</Context>
在 webapps/source/jsp/SysConfig/UserManage.jsp 用到 pub 包的一个 bean
bean 放置的目录为:webapps\source\WEB-INF\classes\pub\
却出现下面的错误,请问是哪里配置错了?谢谢。
An error occurred at line: 47 in the jsp file: /SysConfig/UserManage.jsp
Generated servlet error:
[javac] Compiling 1 source file
D:\jakarta-tomcat-4.1.18\work\Standalone\localhost\source\SysConfig\UserManage_jsp.java:109: package pub does not exist
pub.dbBean mybean = null;
^
An error occurred at line: 47 in the jsp file: /SysConfig/UserManage.jsp
Generated servlet error:
D:\jakarta-tomcat-4.1.18\work\Standalone\localhost\source\SysConfig\UserManage_jsp.java:111: package pub does not exist
mybean = (pub.dbBean) pageContext.getAttribute("mybean", PageContext.PAGE_SCOPE);
^
An error occurred at line: 47 in the jsp file: /SysConfig/UserManage.jsp
Generated servlet error:
D:\jakarta-tomcat-4.1.18\work\Standalone\localhost\source\SysConfig\UserManage_jsp.java:114: package pub does not exist
mybean = (pub.dbBean) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "pub.dbBean");
^
3 errors