Saturday, February 14, 2009

Some XML ant tasks fail

java.lang.NoClassDefFoundError: org/apache/xml/serializer/SerializerTrace

some ant tasks that uses xalan don't work even if required packages are installed, for example ant-trax in OpenSUSE. To fix this problem is enough to go to

/etc/ant.d

and (as root)

echo xalan-j2-serializer.jar > xslt

That's all, the source is this blog.

No comments: