日期:2014-05-18  浏览次数:20735 次

不好意思~最后的20分了!
我一个MyEclipse+JSP+JavaBean的程序在tomcat下的webapps中毫无问题,在虚拟目录下却总是报错:
The   value   for   the   useBean   class   attribute   com.Count   is   invalid.
是我MyEclipse的问题,还是其它的问题??
Tomcat下的server.xml建立虚拟目录的语句是:
<Context   path= "/allen "   docBase= "E:\Java "   debug= "0 "   crosscontext= "true "   reloadable= "true ">
</Context>


------解决方案--------------------
<Host name= "192.168.0.224 " appBase= "webapps "
unpackWARs= "true " autoDeploy= "true "
xmlValidation= "false " xmlNamespaceAware= "false ">
<Context path= " " reloadable= "true " docBase= "D:\Tomcat 5.5\webapps\newroot " workDir= "D:\zefeng\work " />
</Host>
------解决方案--------------------
其中
docBase= "D:\Tomcat 5.5\webapps\newroot " 是放Web文件的目录
workDir= "D:\zefeng\work " 是工作目录
Context path= " " 指的是请求路径

我想是 你的 <Context path= "/allen "这里的问题,改一下看看