Hey there! We're currently in the process of upgrading to Tomcat 3.2.1 from 3.1.1 and have run into an interesting problem. We're using the Struts tag library in our JSP files. These are the lines we're using to call the .tld files from the jsp:
<%@ taglib uri="/homedir/WEB-INF/struts.tld" prefix="struts" %>
<%@ taglib uri="/homedir/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/homedir/WEB-INF/struts-bean.tld" prefix="bean" %>
When we try to load these pages, however, we receive this error in the browser:
Error: 500
Location: /store/categories/business/marketing/index.jsp
Internal Servlet Error:
org.apache.jasper.compiler.CompileException: /export/home/user/jakarta/tomcat/webapps/homedir/store/categories/business/marketing/index.jsp(4,0) Unable to open taglibrary /homedir/WEB-INF/struts.tld : /export/home/user/jakarta/tomcat/webapps/homedir/homedir/WEB-INF/struts.tld (No such file or directory)
If you look at the location where it's trying to get the struts.tld file, you'll see that it's actually trying to get into homedir twice (/export/home/user/jakarta/tomcat/webapps/homedir/homedir/WEB-INF/struts.tld) though that's not the structure of the directory. The directory structure and this code worked just fine in 3.1.1.
It's clear to me that this part of the path -- /homedir/WEB-INF/struts.tld -- is being called from the taglib tag in the JSP file. What about that first part of the path? Where does that get set? Is it just the docpath variable? How do I fix this duplication problem?
Thanks!
Rob Z.
