---
title: "org.apache.jasper.JasperException: File \"/struts-tags\" not found"
author: "adm889486"
date: "2011-01-14T10:24:53Z"
tags: ["Apache", "JSP", "Struts", "Tomcat", "Web"]
categories: ["企业架构"]
slug: "org-apache-jasper-jasperexception-file-struts-tags-not-found"
draft: false
lastmod: "2011-01-14T10:24:53Z"
id: 870971
url: "https://adm889486.iteye.com/blog/870971"
---

org.apache.jasper.JasperException: File "/struts-tags" not found struts2 子目录jsp File "/struts-tags" not found，根目录就没错 今天在做Struts2配置时,出了这样的错误. 先前按照 /struts-tags /WEB-INF/struts-tags.tld 这种方式把配置访导入也没有用. 查了资料原来是和tomcat配置有关. 以下配置配置在后面 我配置在tomcat server.xml是这样的 test.com 改成以下则成功 test.com 注:以上配置会让tomcat两次加载web.xml文件.如果配置了数据连接池的话,会出现打开两倍数据连接池的问题. 所以最好还是改成: 127.0.0.1