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
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: Code (show other bugs)
Version: 4.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Petr Pisl
URL: http://issues.apache.org/bugzilla/sho...
Keywords: RELNOTE, TOMCAT
Depends on:
Blocks:
 
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:


Attachments

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:
javax.xml.transform.TransformerFactoryConfigurationError:
Provider
org.apache.xalan.processor.TransformerFactoryImpl
not found
javax.xml.transform.TransformerFactory.newInstance(Unknown
Source)
org.apache.taglibs.standard.tag.common.xml.TransformSupport.doStartTag(Unknown
Source)
....
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
.../common/endorsed/xmlParserAPIs.jar.

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:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=29579
Comment 3 Martin Schovanek 2004-07-13 10:13:52 UTC
Samples to reproduce:
---------------------
- sample1.jsp:

<%
    javax.xml.transform.TransformerFactory.newInstance();
%>

- sample2.jsp:

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

<c:set var="xml">
  <a><b>header!</b></a>
</c:set>

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

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

  </xsl:stylesheet>
</c:set>

<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)
	org.apache.jsp.xml.Transform_jsp._jspx_meth_x_out_0(Transform_jsp.java:258)
....

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

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:
http://issues.apache.org/bugzilla/show_bug.cgi?id=29579

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.