This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 45723 - JSTL 1.1 Library - <x:transform tag doesn't works on the JDK 1.5.0
Summary: JSTL 1.1 Library - <x:transform tag doesn't works on the JDK 1.5.0
Alias: None
Product: javaee
Classification: Unclassified
Component: Code (show other bugs)
Version: 4.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Petr Pisl
Depends on:
Reported: 2004-06-30 11:40 UTC by Martin Schovanek
Modified: 2006-10-23 16:41 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description Martin Schovanek 2004-06-30 11:40:17 UTC
[200406281800, jdk 1.5.0]

try e.g. ../JSTLExample/xml/Transform.jsp from the
JSTL 1.1 examples.

ERROR: Tomcat throws:
not found
Comment 1 Martin Schovanek 2004-06-30 16:20:35 UTC
The problem is caused by Tomcat. It has own
javax.xml.transform.TransformerFactory class in endorsed

The factory using the
org.apache.xalan.processor.TransformerFactoryImpl which was in the JDK
1.4.X but not in the 1.5.0 as a fallback-class, implementation class
if nothing else was found.
Comment 2 Martin Schovanek 2004-06-30 16:48:23 UTC
Tomcat know about it. See:
Comment 3 Martin Schovanek 2004-07-13 10:13:52 UTC
Samples to reproduce:
- sample1.jsp:


- sample2.jsp:

<%@ taglib prefix="c" uri="" %>
<%@ taglib prefix="x" uri="" %>

<c:set var="xml">

<c:set var="xsl">
  <?xml version="1.0"?>
    xmlns:xsl="" version="1.0">

  <xsl:template match="text()">
    <h1><xsl:value-of select="."/></h1>


<x:transform doc="${xml}" xslt="${xsl}"/>

Comment 4 Petr Jiricka 2004-07-23 12:21:59 UTC
This issue really means that Tomcat does not work with JDK 1.5, so
this is quite severe. Upgrading priority to P2.
Comment 5 Martin Grebac 2004-08-31 16:22:57 UTC
Fixed in trunk by Tomcat 5.0.28 integration
Comment 6 Martin Schovanek 2006-03-27 14:54:31 UTC
the ../JSTLExample/xml/Transform.jsp from "Samples > Web > JSTL Example" project
 throws now [#200603270300, Tomcat 5.5.9]:

java.lang.NoClassDefFoundError: org/apache/xpath/VariableStack
	org.apache.taglibs.standard.tag.common.xml.ExprSupport.doStartTag(Unknown Source)

Looks like xalan.jars is missing, at least adding xalan.jar from JSTL
distribution on class-path solves this problem. So we should consider adding
.jar files from JSTL distribution form standart/lib/old-depndecies into Nb JSTL

The sample works fine with Glassfish but does not work with latest 'Tomcat -
5.5.16' server.

Comment 7 Petr Jiricka 2006-06-21 15:45:04 UTC
Updating link to Apache issuezilla:

How do we move forward on this? There has been no activity on the Tomcat issue
for almost two years, so how can this be resolved? Is there a chance we can make
any progress, or will this need to be waived? I don't think there was any user
report on this issue, so is it even a P2?
Comment 8 Martin Schovanek 2006-06-22 16:01:42 UTC
I agree with pjiricka, lowering priority back to P3.
Comment 9 Petr Jiricka 2006-06-22 19:48:07 UTC
-> P3 now.
Comment 10 Petr Pisl 2006-08-25 12:21:04 UTC
The issue on Tomcat site is marked as invalid. I would like to close this isseu
as WONTFIX. Do you agree?
Comment 11 Martin Schovanek 2006-09-05 11:58:11 UTC
Agree, it is Tomcat side problem, closing as WONTFIX.