cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Werner Guttmann <werner.guttm...@gmx.net>
Subject Re: problems with castor transformer example
Date Tue, 30 Sep 2003 10:29:36 GMT
Oskar,

it isn't. For historic reasons, the CastorTransformer internally uses the 
SAXAdaptor class to map between SAX1 and SAX2 events. As such, it is a 
requirement to specify the XML parser you are using.

I do not know what web container you are using, but with e.g. Tomcat it would 
be sufficient to specify the environment varaiable JAVA_OPTS as follows: 

JAVA_OPTS=-Dorg.xml.sax.parser=org.apache.xerces.parsers.SAXParser

Please be aware that in my case, I am using Xerces. If you are using another 
parser, please amend the above configuration accordingly.

If you are not using Tomcat (Catalina), please try to include the above 
property with the JVM that's responsible for starting the conatiner.

I hope this hepls
Werner

On Tuesday 30 September 2003 10:51, Oskar Casquero Oiarzabal wrote:
> Hello,
>
>     I'm trying to see the usage of the CastorTransformer with the
>     example included in Cocoon-2.1, but I can't see any result
>   ( <zoo xmlns:castor="http://castor.exolab.org/cocoontransfomer" /> ).
>   I looked log files and in sitemap.log I get the following error
>
> WARN    (2003-09-30) 10:30.59:161   [sitemap] (/cocoon/samples/castor/)
> Thread-18/CastorTransformer: Failed to marshal bean Mouse
> org.xml.sax.SAXException: System property org.xml.sax.parser not specified
> at org.xml.sax.helpers.ParserAdapter.<init>(ParserAdapter.java:104)
>
>         Has anybody tried to solve this? Is this a problem of the
>         castor example, or a cocoon bug in castor configuration?
>
> Best regards,
>  Oskar
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message