Got javax.xml.transform.TransformerConfigurationException when deploy it in server
<p>I have RMI desktop application. My problem with xsl template for generating report. Here i included the XSL and java method for your reference</p>

<p>It works fine when tested in my local machine and happens only when i connect it into server remote machine.</p>

<p>I tried answer which already posted in this site, but it cannot resolve my problem.</p>

<pre><code>&lt;?xml version="1.0" encoding="UTF-8" ?&gt;
&lt;xsl:stylesheet version="1.0" 
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:xalan="http://xml.apache.org/xalan"  
    xmlns:nds="http://com.test"
    xmlns:dconv="xalan://com.test.server.BaseConverter"
    xmlns:java="http://xml.apache.org/xalan/java"
    xmlns:model="xalan://com.test.server.AbstractModel"
    extension-element-prefixes="dconv java model"
    exclude-result-prefixes="nds dconv java model" &gt;

    &lt;xsl:output method="html" indent="yes" encoding="UTF-8"/&gt;
    &lt;xsl:strip-space elements="*"/&gt;
    &lt;nds:Result     ResultDir="ModDir" ResultName="Report_Import"/&gt;
    &lt;nds:PreReq Name=".import0.xml"/&gt;

    &lt;xsl:param name="converter" select="'instanceof com.test.server.BaseConverter'"/&gt;
    &lt;xsl:param name="sourceModel" select="'instanceof com.test.server.AbstractModel'"/&gt;               
    &lt;xsl:param name="resultModel" select="'instanceof com.test.server.AbstractModel'"/&gt;

    &lt;xsl:variable name="title" select="'DMS-100 Data Import Report'" /&gt;
    &lt;xsl:variable name="log" select="'.import0.xml'" /&gt;

    &lt;xsl:template match="/OfficeData"&gt;
    &lt;HTML&gt;
        &lt;xsl:call-template name="header"&gt;
            &lt;xsl:with-param name="title" select="$title"/&gt;
        &lt;/xsl:call-template&gt;

    &lt;BODY&gt;
        &lt;xsl:call-template name="office-meta"&gt;
            &lt;xsl:with-param name="title" select="$title"/&gt;
        &lt;/xsl:call-template&gt;

        &lt;xsl:apply-templates select="document(model:getURL($sourceModel, $log))"/&gt;

    &lt;/BODY&gt;
    &lt;/HTML&gt;
    &lt;/xsl:template&gt;

&lt;/xsl:stylesheet&gt; 
</code></pre>

<p>And my java code </p>

<pre><code>AbstractModel.java

public String getURL(String filename) {
    // some code
    return urlstr;
}
</code></pre>

<p>Exception</p>

<pre><code>javax.xml.transform.TransformerConfigurationException: The first argument to the non-static Java function 'getURL' is not a valid object reference.
    at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:1017)
    at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:789)
    at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTransformerHandler(TransformerFactoryImpl.java:1093)
</code></pre>

<p>Any help will be appreciated. Thanks in advance and please let me know if any info you need.</p>