[
http://issues.apache.org/jira/browse/XALANJ-2073?page=comments#action_60159 ]
Brian Minchau commented on XALANJ-2073:
---------------------------------------
Earl,
the traceback you give is indeed for Xalan 2.4. It looks like with Xalan 2.5
and newer that equivalent method in TransformerImpl is now named
createSerializationHandler(...)
The new serializer code is now in org.apache.xml.serializer too.
That doesn't matter much because on looking at the code I think that your
problem would be the same with the latest code. The various property files,
output_xml.properties, output_text.properties, etc. are in the serializer
package. For example if you look in output_xml.properties you will find this
line:
{http\u003a//xml.apache.org/xalan}content-handler=org.apache.xml.serializer.ToXMLStream
which is the name of the class to use when serializing output XML to a stream.
This is a class within the serializer. If the serializer can't load the
property file then it doesn't associate the class to use to serialize the
output, and it doesn't have other default values, like whether to indent, etc.
so it will be quite lost.
My question to you is, why can you load the other classes, but not load
output_xml.properties (or one of its sibling property files) which is in the
same package? I'm trying to understand this. Thanks.
> The output format must have a '{http://xml.apache.org/xslt}content-handler'
> property!
> -------------------------------------------------------------------------------------
>
> Key: XALANJ-2073
> URL: http://issues.apache.org/jira/browse/XALANJ-2073
> Project: XalanJ2
> Type: Bug
> Components: Xalan
> Versions: 2.4Dx, 2.6
> Environment: Windows XP Professional, JBoss 3.2.3
> Reporter: Earl Bennett
>
> I am running a service (.SAR) under JBoss 3.2.3. My service is deployed
> "scoped" using <loader-repository> tag in jboss-service.xml. When attempting
> to run an XSL transformation I get
> org.apache.xml.utils.WrappedRuntimeException: The output format must have a
> '{http://xml.apache.org/xslt}content-handler' property!
> at
> org.apache.xalan.serialize.SerializerFactory.getSerializer(SerializerFactory.java:142)
> at
> org.apache.xalan.transformer.TransformerImpl.createResultContentHandler(TransformerImpl.java:1038)
> ...
> It appears SerializerFactory can not find the output-*.properties files when
> run under this configuration.
> Workaround is to add the xsl:content-handler attribute to all XSL files.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]