tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sciencel...@aol.com
Subject "absolute uri (http://www.wrox.com/taglib/browser)cannot be resolved...
Date Sat, 24 Aug 2002 05:30:10 GMT

"absolute uri (http://www.wrox.com/taglib/browser) cannot be resolved "

>From text (Wrox JSP Site Design Chapt 4): The applic'n
which calls for 6 tag libs. 3 book derived taglibs: "cache,
browser, frames" (in  web.xml & index.jsp below) & 
3,  third party taglibs: "gallery, jx, reponse-1.0" (in 
web.xml below). 

I've compiled book classes for taglibs & downloaded specified
3rd party libs. I've placed classes into respective jars, loaded jars, 
tlds, jsps in "$TOMCAT_HOME/webapps/gallery".

When connecting to "index.jsp" ( shown below) 
tomcat gets error whereby it cannot resolve taglibs from book's
"browser" or "cache" taglibs (seen in "tomcat debug"
logs).  IE also errors with same unresolved tags message (lines 6 
& 7 in tomcat log below):

Required jar file path & contents list assembled from book 
( httputils.jar, frames.jar, gallery.jar ) at base of this file.

------------------- tomcat log error @ line 6-7 -------------------

   1  2002-08-23 13:11:46 Authenticator[/gallery]: Security checking request GET /gallery/version5/index.jsp
   2  2002-08-23 13:11:46 Authenticator[/gallery]:  Not subject to any constraint
   3  2002-08-23 13:11:46 StandardContext[/gallery]: Mapping contextPath='/gallery' with requestURI='/gallery/
version5/index.jsp' and relativeURI='/version5/index.jsp'
   4  2002-08-23 13:11:46 StandardContext[/gallery]: Decoded relativeURI='/version5/index.jsp'
   5  2002-08-23 13:11:46 StandardContext[/gallery]:  Mapped to servlet 'jsp' with servlet
path '/version5/index
.jsp' and path info 'null' and update=true

   6  2002-08-23 13:11:46 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw
exception
   7  org.apache.jasper.JasperException: This absolute uri (http://www.wrox.com/taglib/browser)
cannot be 
resolved in either web.xml or the jar files deployed with this application

   8    at org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:194)
   9    at org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:174)
  10    at org.apache.jasper.compiler.JspParseEventListener.processTaglibDirective(JspParseEventListener.
java:1170)
 -------------------------- end tomcat error ------------------

I found a site which touches on same tld error
for tomcat not resolving taglib tlds.  

from site:
"http://www.opencms.com/opencms/opencms/service/flex.html"

--------------------- quote from site on same issue----------------

"issue, occurs in some installations, Tomcat not able to 
find JSP Taglib TLDs included in *.jar files. This leads to exception [when file /flexdemo/index.html
is opened]:  
"org.apache.jasper. compiler.CompileException [...] This absolute uri (http://java.sun.com/jstl/core)
cannot be 
resolved in either web.xml or jar files deployed with this application." This is Tomcat configu
issue ... to fix,
download file flex_taglib_fix.zip. Unpack file in /WEB-INF directory to overwrite web.xml,
  fix will place TLDs 
in /WEB-INF directory and replace web.xml to contain explicit <TAGLIB> entry for TLDs.
Tomcat will be able to find
Taglibs"
------------------- end site quote regarding similar issue -------------

 
-------------- my installation path/files as book specifies ------------

 C:\jakarta-tomcat-4.0.4\webapps\gallery:
   /admin/   
   /admin/reload.jsp                        
   /images/   
   /images/code.gif                        
   /images/execute.gif                       
   /images/return.gif                       
   /index.html                        
   /jsp   
   /servlets   
   /version5/   
   /version5/chooseHighlightPhoto.jsp                        
   /version5/choosePhoto.jsp                        
   /version5/chooseSection.jsp                        
   /version5/index.jsp                       
   /version5/initialize.jsp                        
   /version5/main.jsp                       
   /version5/photo.jsp                       
   /version5/section.jsp                       
   /version5/sectionList.jsp                       
   /version5/spotlight.jsp                       
   /version5/switchSections.jsp                        
   /WEB-INF/   
   /WEB-INF/browscap.ini                   
   /WEB-INF/browser.tld                       
   /WEB-INF/cache.tld                        
   /WEB-INF/debug-taglib.tld                       
   /WEB-INF/example-taglib.tld                       
   /WEB-INF/frames.tld                      
   /WEB-INF/gallery.tld                       
   /WEB-INF/jx.tld  
   /WEB-INF/photos.xml
   /WEB-INF/lib/   
   /WEB-INF/lib/browser/   
   /WEB-INF/lib/browser/BrowserDatabase.class                      
   /WEB-INF/lib/browser/BrowserDatabase.java                      
   /WEB-INF/lib/browser/BrowserException.class                        
   /WEB-INF/lib/browser/BrowserException.java                        
   /WEB-INF/lib/browser/BrowserFilter.class                      
   /WEB-INF/lib/browser/BrowserFilter.java                      
   /WEB-INF/lib/browser/BrowserInfo.class                      
   /WEB-INF/lib/browser/BrowserInfo.java                      
   /WEB-INF/lib/browser/BrowserPattern.class                      
   /WEB-INF/lib/browser/BrowserPattern.java                      
   /WEB-INF/lib/browser/Constants.class                        
   /WEB-INF/lib/browser/Constants.java                        
   /WEB-INF/lib/browser/doit.bat                           
   /WEB-INF/lib/browser/IsNotTag.class                       
   /WEB-INF/lib/browser/IsNotTag.java                       
   /WEB-INF/lib/browser/IsTag.class                      
   /WEB-INF/lib/browser/IsTag.java                      
   /WEB-INF/lib/browser/NoSupportForTag.class                        
   /WEB-INF/lib/browser/NoSupportForTag.java                       
   /WEB-INF/lib/browser/SupportForTag.class                       
   /WEB-INF/lib/browser/SupportForTag.java                       
   /WEB-INF/lib/browser.jar                    
   /WEB-INF/lib/cache.jar                      
   /WEB-INF/lib/com/   
   /WEB-INF/lib/com/wrox/   
   /WEB-INF/lib/com/wrox/browser/   
   /WEB-INF/lib/com/wrox/http/   
   /WEB-INF/lib/com/wrox/http/NoCachingFilter.class                    
   /WEB-INF/lib/com/wrox/http/NoCachingFilter.java                     
   /WEB-INF/lib/com/wrox/http/NoCachingTag.class                       
   /WEB-INF/lib/com/wrox/http/NoCachingTag.java                        
   /WEB-INF/lib/crimson.jar                  
   /WEB-INF/lib/frames.jar                    
   /WEB-INF/lib/gallery.jar                    
   /WEB-INF/lib/http/   
   /WEB-INF/lib/http/NoCachingFilter.class                       
   /WEB-INF/lib/http/NoCachingFilter.java                       
   /WEB-INF/lib/http/NoCachingTag.class                        
   /WEB-INF/lib/http/NoCachingTag.java                        
   /WEB-INF/lib/httputils.jar                    
   /WEB-INF/lib/jakarta-oro-2.0.4.jar                    
   /WEB-INF/lib/jaxp.jar   
   /WEB-INF/lib/jsptl.jar                  
   /WEB-INF/lib/META-INF/                          
   /WEB-INF/lib/oscache.properties                       
   /WEB-INF/lib/response.jar                    
   /WEB-INF/response.tld                       
   /WEB-INF/web.xml  

------------------ end installation path --------------                     
 
 Here is my CLASSPATH:

----------------------- classpath ----------------------  
 %classpath%
 .;d:\ora3\jdbc\lib\classes12.zip;d:\ora3\jdbc\lib\classes111.zip;c:\j2sdk14\src.zip;c:\j2sdk14\lib\htmlconverter.jar;c:\
 j2sdk14\jre\lib\rt.jar;c:\j2sdk14\jre\lib\sunrsasign.jar;c:\j2sdk14\jre\lib\jaws.jar;c:\j2sdk14\jre\lib\jsse.jar;c:\j2sd
 k14\lib\tools.jar;c:\j2sdk14\dt.jar; c:\j2sdk14\bin;d:\jdbc-3_0-pfd2-classes.zip;d:\jpm.zip;d:\sjm.jar;d:\xerces.jar;d:\
 GifEncoder.class;d:\acme.jar;d:\zips\swing.zip;C:\jakarta-tomcat-4.0.4\webapps\examples\Applet\Applet_Heirarchy.class;c:
 \jakarta-tomcat-4.0.4\common\lib\servlet.jar;C:\prjssitdsgnwx\lib\jakarta-oro-2.0.4.jar;C:\jakarta-tomcat-4.0.4\webapps\
 examples\jsp\path\jakarta-taglibs-standard-1.0.1.zip;c:\jakarta-tomcat-4.0.4\server\lib\tomcat\http11.jar;D:\x\crimson.jar;
D:\x\jstl.jar;C:\x\javaws.jar;c:\x\jsptl.jar;c:\x\response.jar;c:\x\jaxp.jar;c:\jakarta-regexp-1.2.jar;c:x\httputils.
jar;c:\x\jakarta-taglibs-response-1.0.zip;c:\x\gallery.jar;c
 :\x\frames.jar;c:\x\xtags.jar;
--------------------- end classpath -----------------------------------

Here is relevent upper half of web.xml file(unchanged from book) 
as placed in $TOMCAT_HOME/webapps/gallery/WEB-INF

---------------------- web.xml identify 6 tablibs----------------------
<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE web-app
   PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
   "http://java.sun.com/dtd/web-app_2_3.dtd">

<web-app>

 <!-- Store our Gallery bean in the ServletContext under the name
      "gallery" -->
 <context-param>
   <param-name>gallery.name</param-name>
   <param-value>gallery</param-value>
 </context-param>

 <!-- Specify the location of the photos.xml file -->
 <context-param>
   <param-name>gallery.config</param-name>
   <param-value>/WEB-INF/photos.xml</param-value>
 </context-param>

 <!-- For JSPTL Early Access tag library, specify the expression
      language to use. -->
 <context-param>
   <param-name>
     javax.servlet.jsptl.ExpressionEvaluatorClass
   </param-name>
   <param-value>
     org.apache.taglibs.jsptl.lang.spel.Evaluator
   </param-value>
 </context-param>


 <!-- Configure our browser detection filter -->
 <filter>
   <filter-name>Browser Detection Filter</filter-name>
   <filter-class>com.wrox.browser.BrowserFilter</filter-class>
   <init-param>
     <param-name>scope</param-name>
     <param-value>session</param-value>
   </init-param>
   <init-param>
     <param-name>browscap</param-name>
     <param-value>/WEB-INF/browscap.ini</param-value>
   </init-param>
 </filter>

 <!-- Browser detection filter applies to everything in this
      application -->
 <filter-mapping>
   <filter-name>Browser Detection Filter</filter-name>
   <url-pattern>/*</url-pattern>
 </filter-mapping>

 <taglib>
   <taglib-uri> TITLE="http://www.wrox.com/taglib/cache" TARGET="_blank">http://www.wrox.com/taglib/cache</taglib-uri>
   <taglib-location>/WEB-INF/cache.tld</taglib-location>
 </taglib>

 <taglib>
   <taglib-uri> TITLE="http://www.wrox.org/taglib/browser" TARGET="_blank">http://www.wrox.org/taglib/browser</taglib-uri>
   <taglib-location>/WEB-INF/browser.tld</taglib-location>
 </taglib>

 <taglib>
   <taglib-uri> TITLE="http://www.wrox.com/taglib/frames" TARGET="_blank">http://www.wrox.com/taglib/frames</taglib-uri>
   <taglib-location>/WEB-INF/frames.tld</taglib-location>
 </taglib>

 <taglib>
   <taglib-uri> TITLE="http://www.talyllyn.co.uk/tags/gallery" TARGET="_blank">http://www.talyllyn.co.uk/tags/gallery</taglib-uri>
   <taglib-location>/WEB-INF/gallery.tld</taglib-location>
 </taglib>


 <taglib>
   <taglib-uri> TITLE="http://java.sun.com/jsptl/ea/jx" TARGET="_blank">http://java.sun.com/jsptl/ea/jx</taglib-uri>
   <taglib-location>/WEB-INF/jx.tld</taglib-location>
 </taglib>

 <taglib>
   <taglib-uri> TITLE="http://jakarta.apache.org/taglibs/response-1.0" TARGET="_blank">http://jakarta.apache.org/taglibs/response-1.0</taglib-uri>
   <taglib-location>/WEB-INF/response.tld</taglib-location>
 </taglib>

 <security-constraint>
   <web-resource-collection>
     <web-resource-name>
       Admin Pages
     </web-resource-name>
     <url-pattern>
       /admin/*
     </url-pattern>
   </web-resource-collection>
   <auth-constraint>
     <role-name>
       manager
     </role-name>
   </auth-constraint>
 </security-constraint>

 <login-config>
   <auth-method>
     BASIC
   </auth-method>
   <realm-name>
     Talyllyn Railway Photo Gallery Administration
   </realm-name>
 </login-config>

</web-app>

---------------------- end web.xml------------------------



---------------------- index.jsp ---------------------------

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<%@ taglib uri="http://jakarta.apache.org/taglibs/response-1.0" prefix="response" %>
<%@ taglib uri="http://www.wrox.com/taglib/browser" prefix="browser" %>
<%@ taglib uri="http://www.wrox.com/taglib/cache" prefix="cache" %>

<cache:noCaching/>

<%-- If frames aren't supported, redirect to the static HTML version
    of the gallery --%>
<browser:noSupportFor feature="frames">
 <response:sendRedirect>
   http://www.talyllyn.co.uk/gallery/index.html
 </response:sendRedirect>
</browser:noSupportFor>

<%-- Otherwise, build the outer frameset; upper frame is the overall
    page header, lower frame will contain the "main" frameset for
    the application --%>
<browser:supportFor feature="frames">
 <html>
   <head>
     <title>Talyllyn Railway - Photo Gallery</title>
   </head>

   <frameset rows="232,*">
     <frame src="header.html" name="headerFrame" scrolling="no"
            marginheight="2" marginwidth="2">
     <%-- First time round, use initialize.jsp to set the session
          variables used to track where we've got to --%>
     <frame src="initialize.jsp" name="mainFrame" scrolling="no"
            marginheight="2" marginwidth="2">
   </frameset>
------------------- end index.jsp ------------------------


----------------- browser.jar path & contents -------------- 
com/
com/wrox/
com/wrox/browser/
com/wrox/browser/BrowserDatabase.class
com/wrox/browser/BrowserDatabase.java
com/wrox/browser/BrowserException.class
com/wrox/browser/BrowserException.java
com/wrox/browser/BrowserFilter.class
com/wrox/browser/BrowserFilter.java
com/wrox/browser/BrowserInfo.class
com/wrox/browser/BrowserInfo.java
com/wrox/browser/BrowserPattern.class
com/wrox/browser/BrowserPattern.java
com/wrox/browser/Constants.class
com/wrox/browser/Constants.java
com/wrox/browser/doit.bat
com/wrox/browser/IsNotTag.class
com/wrox/browser/IsNotTag.java
com/wrox/browser/IsTag.class
com/wrox/browser/IsTag.java
com/wrox/browser/NoSupportForTag.class
com/wrox/browser/NoSupportForTag.java
com/wrox/browser/SupportForTag.class
com/wrox/browser/SupportForTag.java
--------------------------- end browser.jar ----------------------------

--------------------------- cache.jar ----------------------------------
 com/
 com/wrox/
 com/wrox/http/
 com/wrox/http/NoCachingFilter.class
 com/wrox/http/NoCachingFilter.java
 com/wrox/http/NoCachingTag.class
 com/wrox/http/NoCachingTag.java
----------------------------- end cache.jar ---------------------------


---------------------------- frames.jar ------------------------------

 com/
 com/wrox/
 com/wrox/frames/
com/wrox/frames/LinkContentTag.class
com/wrox/frames/LinkContentTag.java
com/wrox/frames/LinkInfo.class
com/wrox/frames/LinkInfo.java
com/wrox/frames/LinkTag.class
com/wrox/frames/LinkTag.java
com/wrox/frames/MainLinkTag.class
com/wrox/frames/MainLinkTag.java
com/wrox/frames/MultiLinkTag.class
com/wrox/frames/MultiLinkTag.java
com/wrox/frames/OpenWindowTag.class
com/wrox/frames/OpenWindowTag.java
------------------------------- end frames.jar contents -----------------

--------------------------------- httputils.jar contents ---------------

 com/
 com/wrox/
com/wrox/browser/
com/wrox/browser/BrowserDatabase.class
com/wrox/browser/BrowserDatabase.java
com/wrox/browser/BrowserException.class
com/wrox/browser/BrowserException.java
com/wrox/browser/BrowserFilter.class
com/wrox/browser/BrowserFilter.java
com/wrox/browser/BrowserInfo.class
com/wrox/browser/BrowserInfo.java
com/wrox/browser/BrowserPattern.class
com/wrox/browser/BrowserPattern.java
com/wrox/browser/Constants.class
com/wrox/browser/Constants.java
com/wrox/browser/doit.bat
com/wrox/browser/IsNotTag.class
com/wrox/browser/IsNotTag.java
com/wrox/browser/IsTag.class
com/wrox/browser/IsTag.java
com/wrox/browser/NoSupportForTag.class
com/wrox/browser/NoSupportForTag.java
com/wrox/browser/SupportForTag.class
com/wrox/browser/SupportForTag.java
com/wrox/http/
com/wrox/http/NoCachingFilter.class
com/wrox/http/NoCachingFilter.java
com/wrox/http/NoCachingTag.class
com/wrox/http/NoCachingTag.java
oscache.properties

----------------------- end httputils.jar --------------------


-------------------------- gallery.jar -----------------------

 uk/
 uk/co/
 uk/co/talyllyn/
 uk/co/talyllyn/gallery/
uk/co/talyllyn/gallery/Constants.class
uk/co/talyllyn/gallery/Constants.java
uk/co/talyllyn/gallery/doit.bat
uk/co/talyllyn/gallery/Gallery.class
uk/co/talyllyn/gallery/gallery.jar
uk/co/talyllyn/gallery/Gallery.java
uk/co/talyllyn/gallery/GalleryException.class
uk/co/talyllyn/gallery/GalleryException.java
uk/co/talyllyn/gallery/GalleryListener.class
uk/co/talyllyn/gallery/GalleryListener.java
uk/co/talyllyn/gallery/LookupPhotoTag.bad.out
uk/co/talyllyn/gallery/LookupPhotoTag.class
uk/co/talyllyn/gallery/LookupPhotoTag.java
uk/co/talyllyn/gallery/LookupSectionTag.class
uk/co/talyllyn/gallery/LookupSectionTag.java
uk/co/talyllyn/gallery/Photo.class
uk/co/talyllyn/gallery/Photo.java
uk/co/talyllyn/gallery/Section.class
uk/co/talyllyn/gallery/Section.java

----------------------------end gallery.jar ---------------




--
To unsubscribe, e-mail:   <mailto:taglibs-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:taglibs-user-help@jakarta.apache.org>


Mime
View raw message