On Mon, 24 Jan 2000, Paolo Sommaruga wrote:
> I have installed iWS 4.1 on linux. I have tried one application
> with uses some custom tags, with Server Error.
>
> The same application runs fine with tomcat 3.0/3.1 I have build
> the three structure in iWS (as reported in Servlet 2.2
> specification) like
>
> /index.html
> /jsome.jsp
> /WEB-INF/web.xml
> /WEB-INF/taglib.tld
> /WEB-INF/classes/MyTag.class
>
> The some.jsp file begin with (default location of TLD as JSP 1.1
> spec)
>
> <%@ taglib uri="taglib.tld" prefix="sql" %>
>
> The errors file report:
>
> JSP1x compiler threw exception
> org.apache.jasper.JasperException: Unable to open taglibrary
> taglib.tld : null
>
> It's possible to have some guideline to set iWS working with jsp
> 1.1 and custom tag ?
Here are the guidelines which would help you with running JSPs on
iWS.
iWS4.1 uses Tomcat's JSP compiler (called Jasper) to compile JSP
pages into servlets. The servlet is then loaded and run by a servlet
engine in iWS. Servlet engine and JSP compiler are still not very
closely integrated and this necessitates some manual changes to
classpath settings in iWS4.1.
To get your JSP with tags working place your taglib.tld under
META-INF directory and make a jar file containing both the classes
for your tags and this taglib.tld file. Now in the JSP page use
relative url to this jar file as shown below.
<%@ taglib uri="/test/newtags.jar" prefix="mt" %>
i.e. http://<server>:<port>/test/mytags.jar is the location of the
jar file.
Add this jar file to jvm.classpath (as defined in file jvm12.conf)
so that servlet engine can find the necessary classes to execute the
servlet generated from this JSP page.
Hope this helps.
--
-Suresh
Developer
iPlanet Enterprise Server
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html