tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Tolborg" <tho...@tolborg.dk>
Subject xsl taglib and WebSphere Application Server 3.5ptf2 (again)
Date Fri, 02 Feb 2001 17:51:33 GMT
Hi.

I have gotten the jakarta xsl taglib to work with Tomcat 3.2.1 perfectly. 
But when I try with WebSphere AS 3.5 ptf2 it fails. I have used the 
wartowebapp script to generate the correct webapp.

I use the examples from the new JavaServer Pages book from oreilly.

phone_html.jsp
-------------------------
<%@ page language="java" contentType="text/html" %>
<%@ taglib uri="http://jakarta.apache.org/taglibs/xsl-1.0" prefix="xsl" %>

<html>
  <head>
    <title>Phone List</title>
  </head>
  <body bgcolor="white">

    <xsl:apply xsl="htmltable.xsl">
      <?xml version="1.0" encoding="ISO-8859-1"?>
      <employees>
        <employee id="123">
          <first-name>Hans</first-name>
          <last-name>Bergsten</last-name>
          <telephone>310-555-1212</telephone>
        </employee>
        <employee id="456">
          <first-name>Bob</first-name>
          <last-name>Eckstein</last-name>
          <telephone>800-555-5678</telephone>
        </employee>
        <employee id="789">
          <first-name>Paula</first-name>
          <last-name>Ferguson</last-name>
          <telephone>213-555-1234</telephone>
        </employee>
      </employees>
    </xsl:apply>
  </body>
</html>


htmltable.xsl
-----------------------
<?xml version="1.0"?> 
<xsl:stylesheet version="1.0" 
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

  <xsl:template match="employees">
    <table border="1" width="100%">
      <tr>
        <th>ID</th>
        <th>Employee Name</th>
        <th>Phone Number</th>
      </tr>
      <xsl:for-each select="employee">
        <tr>
          <td>
            <xsl:value-of select="@id"/>
          </td>
          <td>
            <xsl:value-of select="last-name"/>, 
            <xsl:value-of select="first-name"/>
          </td>
          <td>
            <xsl:value-of select="telephone"/>
          </td>
        </tr>
      </xsl:for-each>
    </table>
  </xsl:template>

</xsl:stylesheet>


The jsp file and the xsl file are in the same directory. I get the 
following error:
-----------------------------------------------------------------------
Error 500
An error has occured while processing 
request:http://tolborg2.arh.dk.ibm.com/webapp/xsl-examples/phone_html.jsp
Message: Server caught unhandled exception from servlet [JSP 1.1 
Processor]: Missing resource 'htmltable.xsl'

Target Servlet: JSP 1.1 Processor
StackTrace: Root Error-1: Missing resource 'htmltable.xsl'
javax.servlet.jsp.JspException: Missing resource 'htmltable.xsl'
                 at 
javax.servlet.jsp.JspException.<init>(JspException.java:73)
                 at 
org.apache.taglibs.xsl.ApplyTag.getInputSource(ApplyTag.java:320)
                 at 
org.apache.taglibs.xsl.ApplyTag.doEndTag(ApplyTag.java:262)
                 at 
_0002fphone_0005fhtml_0002ejspphone_0005fhtml_jsp_2._jspService(_0002fphone_0005fhtml_0002ejspphone_0005fhtml_jsp_2.java:94)
                 at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126)
                 at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
                 at 
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:222)
                 at 
org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:343)
                 at 
org.apache.jasper.runtime.JspServlet.service(JspServlet.java:452)
                 at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
                 at 
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager.java:580)
                 at 
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycleServlet.java:160)
                 at 
com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServlet.java:287)
                 at 
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycleServlet.java:105)
                 at 
com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:353)
                 at 
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletManager.java:729)
                 at 
com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManager.java:655)
                 at 
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:338)
                 at 
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:175)
                 at 
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:93)
                 at 
com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:77)
                 at 
com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:67)
                 at 
com.ibm.servlet.engine.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:106)
                 at 
com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:160)
                 at 
com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener.java:300)
                 at 
com.ibm.servlet.engine.oselistener.SQEventListenerImp$ServiceRunnable.run(SQEventListenerImp.java:230)
                 at 
com.ibm.servlet.engine.oselistener.SQEventListenerImp.notifySQEvent(SQEventListenerImp.java:104)
                 at 
com.ibm.servlet.engine.oselistener.serverqueue.SQEventSource.notifyEvent(SQEventSource.java:212)
                 at 
com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$SelectRunnable.notifyService(SQWrapperEventSource.java:347)
                 at 
com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$SelectRunnable.run(SQWrapperEventSource.java:216)
                 at 
com.ibm.servlet.engine.oselistener.outofproc.OutOfProcThread$CtlRunnable.run(OutOfProcThread.java:248)
                 at java.lang.Thread.run(Thread.java:481)


Wrapped Error-2: Missing resource 'htmltable.xsl'
javax.servlet.ServletException: Missing resource 'htmltable.xsl'
                 at 
javax.servlet.ServletException.<init>(ServletException.java:161)
                 at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:386)
                 at 
_0002fphone_0005fhtml_0002ejspphone_0005fhtml_jsp_2._jspService(_0002fphone_0005fhtml_0002ejspphone_0005fhtml_jsp_2.java:107)
                 at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126)
                 at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
                 at 
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:222)
                 at 
org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:343)
                 at 
org.apache.jasper.runtime.JspServlet.service(JspServlet.java:452)
                 at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
                 at 
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager.java:580)
                 at 
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycleServlet.java:160)
                 at 
com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServlet.java:287)
                 at 
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycleServlet.java:105)
                 at 
com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:353)
                 at 
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletManager.java:729)
                 at 
com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManager.java:655)
                 at 
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:338)
                 at 
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:175)
                 at 
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:93)
                 at 
com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:77)
                 at 
com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:67)
                 at 
com.ibm.servlet.engine.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:106)
                 at 
com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:160)
                 at 
com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener.java:300)
                 at 
com.ibm.servlet.engine.oselistener.SQEventListenerImp$ServiceRunnable.run(SQEventListenerImp.java:230)
                 at 
com.ibm.servlet.engine.oselistener.SQEventListenerImp.notifySQEvent(SQEventListenerImp.java:104)
                 at 
com.ibm.servlet.engine.oselistener.serverqueue.SQEventSource.notifyEvent(SQEventSource.java:212)
                 at 
com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$SelectRunnable.notifyService(SQWrapperEventSource.java:347)
                 at 
com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$SelectRunnable.run(SQWrapperEventSource.java:216)
                 at 
com.ibm.servlet.engine.oselistener.outofproc.OutOfProcThread$CtlRunnable.run(OutOfProcThread.java:248)
                 at java.lang.Thread.run(Thread.java:481)


Wrapped Error-3: Server caught unhandled exception from servlet [JSP 1.1 Processor]: 
Missing resource 'htmltable.xsl'
com.ibm.servlet.engine.webapp.UncaughtServletException: Server caught 
unhandled exception from servlet [JSP 1.1 Processor]: Missing resource 
'htmltable.xsl'
                 at 
javax.servlet.ServletException.<init>(ServletException.java:132)
                 at 
com.ibm.websphere.servlet.error.ServletErrorReport.<init>(ServletErrorReport.java:43)
                 at 
com.ibm.servlet.engine.webapp.WebAppErrorReport.<init>(WebAppErrorReport.java:32)
                 at 
com.ibm.servlet.engine.webapp.UncaughtServletException.<init>(UncaughtServletException.java:11)
                 at 
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:355)
                 at 
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:175)
                 at 
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:93)
                 at 
com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:77)
                 at 
com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:67)
                 at 
com.ibm.servlet.engine.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:106)
                 at 
com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:160)
                 at 
com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener.java:300)
                 at 
com.ibm.servlet.engine.oselistener.SQEventListenerImp$ServiceRunnable.run(SQEventListenerImp.java:230)
                 at 
com.ibm.servlet.engine.oselistener.SQEventListenerImp.notifySQEvent(SQEventListenerImp.java:104)
                 at 
com.ibm.servlet.engine.oselistener.serverqueue.SQEventSource.notifyEvent(SQEventSource.java:212)
                 at 
com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$SelectRunnable.notifyService(SQWrapperEventSource.java:347)
                 at 
com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$SelectRunnable.run(SQWrapperEventSource.java:216)
                 at 
com.ibm.servlet.engine.oselistener.outofproc.OutOfProcThread$CtlRunnable.run(OutOfProcThread.java:248)
                 at java.lang.Thread.run(Thread.java:481)




Mime
View raw message