Return-Path: Delivered-To: apmail-xml-cocoon-users-archive@xml.apache.org Received: (qmail 69507 invoked by uid 500); 23 Oct 2002 16:10:39 -0000 Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-users@xml.apache.org Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 69483 invoked from network); 23 Oct 2002 16:10:37 -0000 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: xsltc w/ 2.0.3 X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 Date: Wed, 23 Oct 2002 12:10:23 -0400 Message-ID: <06F21F6856B6BF4FADEBF2C3BC2D99233C744F@genoa.lumigent.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: xsltc w/ 2.0.3 Thread-Index: AcJ6AXVpM3yxgdbtQGmb9W7Mq9jwWwArJShA From: "Stephen Ng" To: X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I (religiously) use the stock 2.0.3 jars. I definitely had to make some changes in my xslt, because of bugs in my code that xsltc uncovered, but also (I think) because of bugs in xsltc. (Actually, even though I got my app to run under xsltc, I'm considering switching to Saxon because of the quirks in xsltc--for example I can't get xsltc variables to hold a temporary tree). I think it is important to clear out your tomcat work directory, and to start with simple transforms and work your way up. Expect to do some debugging. Steve > -----Original Message----- > From: Jeremy Green [mailto:jeremy@glowbead.com]=20 > Sent: Tuesday, October 22, 2002 1:45 PM > To: cocoon-users@xml.apache.org > Subject: xsltc w/ 2.0.3 >=20 >=20 > Hello, >=20 > From browsing the list it looks like it is possible to get=20 > xsltc working with Cocoon 2.0.3, and I was hoping someone=20 > could provide me with just a bit more information. >=20 > I've followed the instructions given here:=20 > http://outerthought.net/wiki/Wiki.jsp?page=3DXSLTC >=20 > My question really boils down to this: Which jars do I need=20 > to have in my WEB-INF/lib directory to make this work=20 > correctly? Do I need to upgrade to new versions of some of=20 > the other jars? (Xalan, xerces, > etc...) >=20 > I'm using Cocoon 2.0.3 with the JBoss-2.4.4_Tomcat-4.0.1-beta bundle. >=20 > I've tried a variety of things and nothing seems to work. =20 > Currently I have xsltc-20020723.jar in there, and I get the=20 > following Exception back in my browser. >=20 > An error occurred org.apache.cocoon.ProcessingException=20 > Exception in creating Transform Handler=20 > org.apache.cocoon.ProcessingException: > Exception in creating Transform Handler:=20 > java.lang.NullPointerException Original exception :=20 > java.lang.NullPointerException at > org.apache.xalan.xsltc.trax.TransformerFactoryImpl.newTransfor > merHandler(TransformerFactoryImpl.java:640) at=20 > org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTransfo > rmerHandler(XSLTProcessorImpl.java:282) at=20 > org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTransfo > rmerHandler(XSLTProcessorImpl.java:239) at=20 > org.apache.cocoon.transformation.TraxTransformer.setup(TraxTra > nsformer.java:298) at=20 > org.apache.cocoon.components.pipeline.AbstractEventPipeline.se > tupPipeline(AbstractEventPipeline.java:215) at >=20 >=20 >=20 >=20 > The jboss log contains this error: > [13:22:34,925,Default] java.lang.ClassCastException:=20 > org.apache.xalan.xsltc.compiler.Param > [13:22:34,925,Default] at > org.apache.xalan.xsltc.compiler.SymbolTable.addVariable(Symbol > Table.java:120) > [13:22:34,926,Default]=20 > [13:22:34,926,Default] at > org.apache.xalan.xsltc.compiler.Variable.parseContents(Variabl > e.java:141) > [13:22:34,926,Default]=20 > [13:22:34,926,Default] at > org.apache.xalan.xsltc.compiler.Stylesheet.parseOwnChildren(St > ylesheet.java:412) > [13:22:34,926,Default]=20 > [13:22:34,926,Default] at > org.apache.xalan.xsltc.compiler.Stylesheet.parseContents(Style > sheet.java:394) > [13:22:34,926,Default]=20 > [13:22:34,926,Default] at > org.apache.xalan.xsltc.compiler.Import.parseContents(Import.java:143) > [13:22:34,926,Default]=20 >=20 >=20 > Any help would be appreciated. >=20 > Thanks, > Jeremy >=20 >=20 > --------------------------------------------------------------------- > Please check that your question has not already been answered in the > FAQ before posting. >=20 > To unsubscribe, e-mail: > For additional commands, e-mail: >=20 >=20 --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: For additional commands, e-mail: