- This topic has 3 replies, 2 voices, and was last updated 19 years, 4 months ago by
Riyad Kalla.
-
AuthorPosts
-
DavidMemberMy application was chugging along nicely, then I noticed that files were not being redeployed when I saved them. I went into the deployer and it no longer showed my configuration. When I added it again, it warned me it was already there, so had it do a backup and redeploy. However, now when I try to run it I get this error:
org.apache.jasper.JasperException: This absolute uri (http://jakarta.apache.org/struts/tags-tiles) cannot be resolved in either web.xml or the jar files deployed with this application
with console messages:
INFO: Jk running ID=0 time=27/567 config=/usr/local/jakarta-tomcat-4.1.31/conf/jk2.properties
Exception initializing TldLocationsCache: XML parsing error on file /WEB-INF/lib/standard.jar: (line 3, col 8): Document is invalid: no grammar found.
Exception initializing TldLocationsCache: zip file closed
Exception initializing TldLocationsCache: zip file closed
Jan 5, 2006 10:32:42 PM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config=’org.apache.struts.taglib.logic.LocalStrings’, returnNull=true
Jan 5, 2006 10:32:43 PM org.apache.struts.tiles.TilesRequestProcessor initDefinitionsMapping
INFO: Tiles definition factory found for request processor ”.
Exception initializing TldLocationsCache: zip file closed
Exception initializing TldLocationsCache: zip file closed
Exception initializing TldLocationsCache: zip file closed
Exception initializing TldLocationsCache: zip file closedI have all my jar and tld files under /WEB-INF/lib and referenced like this:
<%@ taglib uri=”struts-bean.tld” prefix=”bean” %>
<%@ taglib uri=”struts-html.tld” prefix=”html” %>
<%@ taglib uri=”struts-logic.tld” prefix=”logic” %>with my web.xml such as:
<taglib>
<taglib-uri>struts-html.tld</taglib-uri>
<taglib-location>/WEB-INF/lib/struts-html.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>struts-logic.tld</taglib-uri>
<taglib-location>/WEB-INF/lib/struts-logic.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>struts-bean.tld</taglib-uri>
<taglib-location>/WEB-INF/lib/struts-bean.tld</taglib-location>
</taglib><taglib>
<taglib-uri>struts-tiles.tld</taglib-uri>
<taglib-location>/WEB-INF/lib/struts-tiles.tld</taglib-location>
</taglib>I don’t know what just happened and why suddenly everything is so messed up. Does this mean Tomcat can’t parse the standard.jar file? It is under the /WEB-INF/lib directory.
Thank you for your help.
Riyad KallaMemberIt looks like standard.jar has become corrupted, the actual JAR. Do you have a copy of it somewhere? Try and replace it.
Also if you are using source control, what might have happened is you accidentally checked it in as a text file.
DavidMemberOk, this is gonna sound silly, but what and where does that standard.jar come from? It’s not struts or Servlets is it? For the life of me I can’t recall where I got that thing!
Riyad KallaMemberIt’s JSTL IIRC.
-
AuthorPosts