Am I to assume with the lack of feedback on this that most people aren't
using Resin but Xerces/Xalan driven appservers?
----- Original Message -----
From: "Simen Brekken" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 25, 2003 11:49 AM
Subject: Re: [Mav-user] ClassCastException
> Sorry for the repost, here is the source+data (note that this works as
> expected using Tomcat and Orion I suppose this is due to their common
> parsers):
>
> Using a null transform should just dump the generated XML document to the
> browser (it does this on Tomcat/Orion), instead I get this. Trying
> transforming the example with test.xsl I only get a single word in the
> browser "null" (see below).
>
> getResinTest.m
> ----------------
> 500 Servlet Exception
> java.lang.ClassCastException
> at com.caucho.xsl.XslWriter.pushCopy(XslWriter.java:671)
> at
com.caucho.xsl.IdentityStylesheet.applyNode(IdentityStylesheet.java:109)
> at
com.caucho.xsl.IdentityStylesheet.applyNode(IdentityStylesheet.java:104)
> at
com.caucho.xsl.IdentityStylesheet.transform(IdentityStylesheet.java:87)
> at com.caucho.xsl.TransformerImpl.transform(TransformerImpl.java:421)
> at com.caucho.xsl.TransformerImpl.transform(TransformerImpl.java:305)
> at org.infohazard.maverick.flow.LastStep.go(LastStep.java:110)
> at
>
org.infohazard.maverick.opt.view.DomifyViewFactory$DomifyView.go(DomifyViewF
> actory.java:109)
> at org.infohazard.maverick.flow.CommandBase.go(CommandBase.java:57)
> at org.infohazard.maverick.Dispatcher.service(Dispatcher.java:198)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:103)
> at
>
com.caucho.server.http.FilterChainServlet.doFilter(FilterChainServlet.java:9
> 6)
> at com.caucho.server.http.Invocation.service(Invocation.java:315)
> at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:246)
> at
> com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:164)
> at com.caucho.server.TcpConnection.run(TcpConnection.java:139)
> at java.lang.Thread.run(Thread.java:536)
>
> TestController.java
> -------------------
> package no.bleed.rokin.resintest;
>
> import org.infohazard.maverick.ctl.ThrowawayBean2;
>
> public class TestController extends ThrowawayBean2
> {
> protected String data;
>
> protected String perform() throws Exception
> {
> this.setData("foo");
>
> return "success";
> }
>
> public String getData()
> {
> return this.data;
> }
>
> public void setData(String data)
> {
> this.data = data;
> }
> }
>
>
> maverick.xml
> --------------
> <?xml version="1.0"?>
> <maverick version="2.0" default-view-type="domify"
> default-transform-type="xslt">
> <modules>
> <view-factory type="domify"
> provider="org.infohazard.maverick.opt.view.DomifyViewFactory" />
> <transform-factory type="xslt"
> provider="org.infohazard.maverick.transform.XSLTransformFactory">
> <default-output-type value="text/xml"/>
> <!-- preload|lazy|disabled -->
> <template-caching value="disabled" />
> </transform-factory>
> </modules>
>
> <commands>
> <command name="getResinTest">
> <controller class="no.bleed.rokin.resintest.TestController" />
> <view />
> </command>
> </commands>
> </maverick>
>
> test.xsl
> -------
> <?xml version="1.0" encoding="iso-8859-1"?>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> version="1.0">
> <xsl:output method="xml" omit-xml-declaration="yes" indent="yes"
> encoding="iso-8859-1" />
>
> <xsl:template match="/">
> <xsl:copy-of select="*" />
> </xsl:template>
>
> </xsl:stylesheet>
>
> ___
> SIMEN BREKKEN / in his prime.
>
> ----- Original Message -----
> From: "Schnitzer, Jeff" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, March 25, 2003 1:03 AM
> Subject: RE: [Mav-user] ClassCastException
>
>
> Can you post the stack trace?
>
> Jeff Schnitzer
> [EMAIL PROTECTED]
>
> > -----Original Message-----
> > From: Simen Brekken [mailto:[EMAIL PROTECTED]
> > Sent: Monday, March 24, 2003 3:21 PM
> > To: Mav-user
> > Subject: Re: [Mav-user] ClassCastException
> >
> > I'm also having the exact same problem, even with a simple template
> like
> > this Resin just crashes brutally:
> >
> > <xsl:template match="/">
> > <xsl:copy-of select="*" />
> > </xsl:template>
> >
> > ___
> > SIMEN BREKKEN / in his prime.
> >
> >
> > -------------------------------------------------------
> > This sf.net email is sponsored by:ThinkGeek
> > Welcome to geek heaven.
> > http://thinkgeek.com/sf
> > [INVALID FOOTER]
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by:
> The Definitive IT and Networking Event. Be There!
> NetWorld+Interop Las Vegas 2003 -- Register today!
> http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
> [INVALID FOOTER]
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by:
> The Definitive IT and Networking Event. Be There!
> NetWorld+Interop Las Vegas 2003 -- Register today!
> http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
> [INVALID FOOTER]
>
-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
[INVALID FOOTER]