tomcat部署 struts2 File "/struts-tags" not found
来源:互联网 发布:留言板 数据库 编辑:程序博客网 时间:2024/05/20 13:05
- <Context path="" docBase="D:\project\WebRoot" reloadable="false">
<Context path="" docBase="D:\project\WebRoot" reloadable="false">
docBase没有指向项目的WebRoot目录
2.做Struts2配置时,出了这样的错误.
先前按照
<jsp-config>
<taglib>
<taglib-uri>/struts-tags</taglib-uri>
<taglib-location>/WEB-INF/struts-tags.tld</taglib-location>
</taglib>
</jsp-config>
这种方式把配置访导入也没有用.
查了资料原来是和tomcat配置有关.
以下配置配置在</host>后面
我配置在tomcat server.xml是这样的
<Host name="bbb" appBase="D:\workspace\webManageSystem\WebContent"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
<Alias>test.com</Alias>
<Context path="/" docBase="D:\workspace\webManageSystem\WebContent" reloadable="true"
caseSensitive="false" debug="0"></Context>
</Host>
改成以下则成功
<Host name="bbb" appBase="D:\workspace\webManageSystem\"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
<Alias>test.com</Alias>
<Context path="/" docBase="WebContent" reloadable="true"
caseSensitive="false" debug="0"></Context>
</Host>
注:以上配置会让tomcat两次加载web.xml文件.如果配置了数据连接池的话,会出现打开两倍数据连接池的问题.
所以最好还是改成:
<Host name="webGame" appBase=""
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
<Alias>127.0.0.1</Alias>
<Context path="/" docBase="E:\workspace0\webGame\WebRoot"reloadable="true"
caseSensitive="false" debug="0"></Context>
</Host>
转自http://www.rsky.com.cn/Article/java/201012/12075.html
- tomcat部署 struts2 File "/struts-tags" not found
- struts2 jsp File "/struts-tags" not found
- File "/struts-tags" not found
- 项目部署到外网发生File "/struts-tags" not found错误
- 项目部署到外网发生File "/struts-tags" not found错误
- File "/tags/struts-tiles" not found或java.lang.ClassNotFoundException: org.apache.struts.taglib.tile
- org.apache.jasper.JasperException: File "/struts-tags" not found本地没问题但上传上去就报错
- j2ee中,url直接进入jsp页面,提示File "/struts-tags" not found
- 有关struts2日历控件的小问题,struts-dojo-tags not found
- struts2 标签库 /struts-dojo-tags not found&Expression parameters.parseContent is undefined
- eclipse关于"/struts-tags" not found错误的最新解决方法
- Struts2--struts-tags
- Struts2--struts-tags (转)
- Struts2---Struts-Tags
- /WEB-INF/tags" not found
- struts2的struts-tags标签
- struts2 学习总结 ---- Struts-tags
- servelet 2.4 +eclipse3.6+struts2.3.16:Can not find the tag library descriptor for "/struts- tags"
- 按位设计用户权限的一些思路
- HDU 1195 Open the Lock
- java.io.FileNotFoundException: Could not open ServletContext resource [/WEB-INF/action-servlet.xml]
- 传输层的各种模式——ZeroMQ 库的使用 .
- Task的执行过程分析
- tomcat部署 struts2 File "/struts-tags" not found
- GridView控件事件
- 关于XML字符串和XML Document之间的转换
- 软件工程有多名大三同学被海颐软件录取为实习生
- FMC CList 实例,元素是结构体struct
- jquery mobile 拨打电话
- phoneGap结合android原生代码开发Menu
- 浏览器之四大内核简介
- 万维网、互联网、因特网之间的区别