I am using Java to dynamically generate XML on-the-fly from a database. I have been trying to create my XML using the W3C DOM API but have run into problems. My application seems to work fine when run from the desktop, but when I try to run it from the server I get the following error message:

javax.xml.transform.TransformerException: java.lang.UnsupportedOperationException
at com.sun.org.apache.xalan.internal.xsltc.trax.Trans formerImpl.transform(TransformerImpl.java:718)
at com.sun.org.apache.xalan.internal.xsltc.trax.Trans formerImpl.transform(TransformerImpl.java:313)
at CV2.writeXML(CV2.java:74)
at XMLApp2.main(XMLApp2.java:22)
at XMLServer4.doGet(XMLServer4.java:40)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:115)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:92)
at com.caucho.server.dispatch.ServletFilterChain.doFi lter(ServletFilterChain.java:106)
at com.caucho.server.webapp.WebAppFilterChain.doFilte r(WebAppFilterChain.java:173)
at com.caucho.server.dispatch.ServletInvocation.servi ce(ServletInvocation.java:229)
at com.caucho.server.http.HttpRequest.handleRequest(H ttpRequest.java:274)
at com.caucho.server.port.TcpConnection.run(TcpConnec tion.java:511)
at com.caucho.util.ThreadPool.runTasks(ThreadPool.jav a:516)
at com.caucho.util.ThreadPool.run(ThreadPool.java:442 )
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.UnsupportedOperationException
at com.caucho.xml.QDocument.getXmlVersion(QDocument.j ava:848)
at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2T O.setDocumentInfo(DOM2TO.java:375)
at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2T O.parse(DOM2TO.java:127)
at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2T O.parse(DOM2TO.java:94)
at com.sun.org.apache.xalan.internal.xsltc.trax.Trans formerImpl.transformIdentity(TransformerImpl.java: 663)
at com.sun.org.apache.xalan.internal.xsltc.trax.Trans formerImpl.transform(TransformerImpl.java:709)
... 14 more
---------
java.lang.UnsupportedOperationException
at com.caucho.xml.QDocument.getXmlVersion(QDocument.j ava:848)
at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2T O.setDocumentInfo(DOM2TO.java:375)
at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2T O.parse(DOM2TO.java:127)
at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2T O.parse(DOM2TO.java:94)
at com.sun.org.apache.xalan.internal.xsltc.trax.Trans formerImpl.transformIdentity(TransformerImpl.java: 663)
at com.sun.org.apache.xalan.internal.xsltc.trax.Trans formerImpl.transform(TransformerImpl.java:709)
at com.sun.org.apache.xalan.internal.xsltc.trax.Trans formerImpl.transform(TransformerImpl.java:313)
at CV2.writeXML(CV2.java:74)
at XMLApp2.main(XMLApp2.java:22)
at XMLServer4.doGet(XMLServer4.java:40)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:115)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:92)
at com.caucho.server.dispatch.ServletFilterChain.doFi lter(ServletFilterChain.java:106)
at com.caucho.server.webapp.WebAppFilterChain.doFilte r(WebAppFilterChain.java:173)
at com.caucho.server.dispatch.ServletInvocation.servi ce(ServletInvocation.java:229)
at com.caucho.server.http.HttpRequest.handleRequest(H ttpRequest.java:274)
at com.caucho.server.port.TcpConnection.run(TcpConnec tion.java:511)
at com.caucho.util.ThreadPool.runTasks(ThreadPool.jav a:516)
at com.caucho.util.ThreadPool.run(ThreadPool.java:442 )
at java.lang.Thread.run(Thread.java:619)

I am using Resin 3.0.21 to develop my application on. Does anybody have any ideas what maybe wrong?