You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Heather Buch <hb...@MIT.EDU> on 2003/01/06 12:12:18 UTC
No such tag notPresent in the tag library imported with prefix logic
Hi all,
It's good to be here. I've been searching in vain for a solution to an
error that suddenly appeared at work today, though not at home last
night. I just switched from struts 1.0.2 to 1.1-b3. I'm pretty sure I
did a clean switch. I removed all my old .tld files and my old
struts.jar. I added the 1.1 .tlds, commons-*, and struts.jar. But now I
get an error about a missing tag in struts-logic.tld (though the tag
does appear to be in it when I view the struts-logic.tld from my tomcat
webapps dir)
Here's the error:
"No such tag notPresent in the tag library imported with prefix logic"
And here is the code which generates it:
<%@ page language="java" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-nested.tld" prefix="nested" %>
<html:html locale="true">
<head>
<title><bean:message key="application.title"/></title>
<link rel="stylesheet" href="./main.css" type="text/css">
<html:base/>
</head>
<body bgcolor="white">
the interesting part:
<logic:notPresent name="org.apache.struts.action.MESSAGE">
<font color="red">
ERROR: Application resources not loaded -- check servlet container
logs for error messages.
</font>
</logic:notPresent>
<html:errors/>
<div align="center">
....
Any help would be greatly appreciated!
--
Heather M. Buch
Studentermedhjælper,
Institut for Økonomi
Århus Universitet
Bygning 323, 421
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: No such tag notPresent in the tag library imported with prefix
logic
Posted by Heather Buch <hb...@MIT.EDU>.
Hi all,
Thanks for the answer, that one was definitely my own dumb fault. In my
hasty cutting and pasting during the
upgrade, I did this in my web.xml:
<!-- Struts Tag Library Descriptors -->
<taglib>
<taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-html.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-nested.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-tiles.tld</taglib-location>
</taglib>
Uh-oh!
:-)
Heather
David M. Karr wrote:
>>>>>>"Heather" == Heather Buch <hb...@MIT.EDU> writes:
>>>>>>
>>>>>>
>
> Heather> Hi all,
> Heather> It's good to be here. I've been searching in vain for a solution to an error
> Heather> that suddenly appeared at work today, though not at home last night. I just
> Heather> switched from struts 1.0.2 to 1.1-b3. I'm pretty sure I did a clean switch. I
> Heather> removed all my old .tld files and my old struts.jar. I added the 1.1 .tlds,
> Heather> commons-*, and struts.jar. But now I get an error about a missing tag in
> Heather> struts-logic.tld (though the tag does appear to be in it when I view the
> Heather> struts-logic.tld from my tomcat webapps dir)
>
> Heather> Here's the error:
>
> Heather> "No such tag notPresent in the tag library imported with prefix logic"
>
>At this point, I'd have to assume there is still some old copy of "struts.jar"
>or "struts-bean.tld" in the classpath of one of your classloaders. Do a
>complete search for those files. If you don't find anything obvious, set up a
>file I/O monitor to see if it loads those files from somewhere else. If you
>don't have a file I/O monitor, you can either use "FileMon" for Windows, or
>"truss" for Solaris. I don't know what your platform is. You can get FileMon
>from <http://www.sysinternals.com/ntw2k/utilities.shtml>.
>
>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: No such tag notPresent in the tag library imported with prefix logic
Posted by "David M. Karr" <dm...@earthlink.net>.
>>>>> "Heather" == Heather Buch <hb...@MIT.EDU> writes:
Heather> Hi all,
Heather> It's good to be here. I've been searching in vain for a solution to an error
Heather> that suddenly appeared at work today, though not at home last night. I just
Heather> switched from struts 1.0.2 to 1.1-b3. I'm pretty sure I did a clean switch. I
Heather> removed all my old .tld files and my old struts.jar. I added the 1.1 .tlds,
Heather> commons-*, and struts.jar. But now I get an error about a missing tag in
Heather> struts-logic.tld (though the tag does appear to be in it when I view the
Heather> struts-logic.tld from my tomcat webapps dir)
Heather> Here's the error:
Heather> "No such tag notPresent in the tag library imported with prefix logic"
At this point, I'd have to assume there is still some old copy of "struts.jar"
or "struts-bean.tld" in the classpath of one of your classloaders. Do a
complete search for those files. If you don't find anything obvious, set up a
file I/O monitor to see if it loads those files from somewhere else. If you
don't have a file I/O monitor, you can either use "FileMon" for Windows, or
"truss" for Solaris. I don't know what your platform is. You can get FileMon
from <http://www.sysinternals.com/ntw2k/utilities.shtml>.
--
===================================================================
David M. Karr ; Java/J2EE/XML/Unix/C++
dmkarr@earthlink.net ; SCJP; SCWCD
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>