tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <mr...@win.tue.nl>
Subject RE: JSTL + XSLT
Date Fri, 12 Jul 2002 22:27:26 GMT
Hi Shawn,

The following stacktrace is occuring when I try it.

Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error

------------------------------------------------------------------------
--------

type Exception report

message Internal Server Error

description The server encountered an internal error (Internal Server
Error) that prevented it from fulfilling this request.

exception 

java.lang.NullPointerException
	at
org.apache.taglibs.standard.tag.common.xml.TransformSupport.getSource(Tr
ansformSupport.java:284)
	at
org.apache.taglibs.standard.tag.common.xml.TransformSupport.getSource(Tr
ansformSupport.java:260)
	at
org.apache.taglibs.standard.tag.common.xml.TransformSupport.doStartTag(T
ransformSupport.java:146)
	at
org.apache.taglibs.standard.tag.el.xml.TransformTag.doStartTag(Transform
Tag.java:104)
	at
org.apache.jsp.view_0005fchapter_0005fcontent$jsp._jspService(view_0005f
chapter_0005fcontent$jsp.java:212)
	at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServle
t.java:202)
	at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
	at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:247)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:193)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:243)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:190)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566)
	at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.ja
va:246)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:564)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:234
3)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:180)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566)
	at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
lve.java:170)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:564)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:170)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:564)
	at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468
)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:564)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:174)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.j
ava:1012)
	at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:
1107)
	at java.lang.Thread.run(Thread.java:536)


The source of the document is the following:

<%@page
import="java.io.*,java.net.*,javax.xml.transform.*,javax.xml.transform.s
tream.*"%>

<%@ taglib uri='http://java.sun.com/jstl/core' prefix='c' %>
<%@ taglib uri='http://java.sun.com/jstl/xml'  prefix='x' %>


<c:set var="xsl"><c:import
url="style/default/chapter_content.xsl"/></c:set>
<c:set var="xml"><c:import url="source/${param.id}/index.xml"/></c:set>

<x:transform xml="${xml}" xslt="${xsl}"
xsltSystemId="style/default/chapter_content.xsl"/>


And the XSL-stylesheet contains the following beginning:

<?xml version="1.0"?>

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

  <xsl:import href="omobj-mathml.xsl"/> 
  
  <xsl:output 
    method="xml" 
    omit-xml-declaration="yes"
    encoding="iso-8859-1"
    indent="no"/>

  .... Rest of XSL file ....


Any hints greatly appreciated ;)

Manfred.


> -----Original Message-----
> From: Shawn Bayern [mailto:bayern@essentially.net] 
> Sent: Friday, July 12, 2002 7:16 AM
> To: Manfred Riem
> Cc: 'Tag Libraries Users List'
> Subject: RE: JSTL + XSLT
> 
> 
> On Fri, 12 Jul 2002, Manfred Riem wrote:
> 
> > I've tried a couple of times and I don't seem to get it 
> working with 
> > the x:transform tag. Should it be url="...S..." or 
> > xsltSystemId="....S..." ?
> 
> Oops - sorry!  (Jeez, you really get used to copy editors.)  
> Yes, it's 'url' in <c:import> and 'xsltSystemId' in <x:transform>.
> 
> > I've been trying with the xslSystemId thing and it doesn't seem to 
> > work. Duhhhh. Will try once more.
> 
> What errors do you get?  It's sometimes hard to debug a 
> problem remotely, but getting a stack trace or other 
> particular error might help us help you.
> 
> -- 
> Shawn Bayern
> "JSTL in Action"   http://www.jstlbook.com
> (coming in July 2002 from Manning Publications)
> 
> 



--
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