Hi,

I am trying to run Cocoon application locally on my PC.
Everything else seem to match application on the server.

I am getting (when running locally):
java.lang.RuntimeException: Errors in XSLT transformation:
Error: File
file:/C:/.../jboss-3.0.7/server/default/deploy/reports.war/reporting/stylesheets/data-transform.xsl;
Line 169; Column 109; javax.xml.transform.TransformerException: 
java.lang.ClassNotFoundException:
java/java/text/SimpleDateFormat
Fatal: java.lang.NullPointerException
 ERROR [STDERR]     at
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3231)
....

Here is a code snippet from data-transform.xsl:
<xsl:when test="$column/date-format">
  <xsl:variable name="date-formatter"
select="java:java.text.SimpleDateFormat.new( $column/date-format
)"/>
  <xsl:choose>
          <xsl:when test="normalize-space( $celldata ) and
$celldata/@sql:date">
                <xsl:variable name="date" select="java:java.util.Date.new(
number( $celldata/@sql:date ) )"/>
                <xsl:value-of select="java:format( $date-formatter, $date )"/>
          </xsl:when>
        <xsl:otherwise>
                <xsl:value-of select='$celldata'/>
        </xsl:otherwise>
  </xsl:choose>
</xsl:when>

java.text.SimpleDateFormat is a standard Java class,
How could it not be able to find it ?
And why it reports it missing like:
java/java/text/SimpleDateFormat ?

Any ideas ?

Cocoon 2.0.4 on JBoss 3.0.7

Thank you,
Oleg.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to