Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 76687 invoked from network); 20 May 2005 12:15:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 20 May 2005 12:15:14 -0000 Received: (qmail 87148 invoked by uid 500); 20 May 2005 12:15:10 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 87119 invoked by uid 500); 20 May 2005 12:15:10 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@cocoon.apache.org List-Id: Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 87095 invoked by uid 99); 20 May 2005 12:15:09 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from essemtepe.nada.kth.se (HELO smtp.nada.kth.se) (130.237.222.115) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 20 May 2005 05:15:07 -0700 X-Authentication-Info: The sender was authenticated as danielf using PLAIN at smtp.nada.kth.se Received: from [192.168.105.31] ([192.58.197.189]) (authenticated bits=0) by smtp.nada.kth.se (8.12.11/8.12.11) with ESMTP id j4KCDB2w015123 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 20 May 2005 14:13:11 +0200 (MEST) Message-ID: <428DD451.2060006@nada.kth.se> Date: Fri, 20 May 2005 14:13:05 +0200 From: Daniel Fagerstrom User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: JXTemplate initialization in non-flowscript scenarios References: <428DBE4D.2060004@apache.org> In-Reply-To: <428DBE4D.2060004@apache.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Need more info to be able to help. Somwhere in your script you access a value in a jx:set that cannot be evaluated by jxpath, maybe you are calling an extension function, not sure though. Can you isolate the expression it happens for. It seem like commons-beanutils not is found, maybe you could add a to the cocoon-block-template definition in gump.xml. But if that is the case I don't know why it work without it if you use flow. /Daniel Reinhard Poetz wrote: > > It took me hours to track down some weired behaviour of the > jx-template generator (template block). It took me more than 5 hours > to find the cause :-/. If there is no declared in your > sitemap and you want to use jx-template, following exception will be > thrown: > > java.lang.NoClassDefFoundError: org/apache/commons/beanutils/ConvertUtils > at > org.apache.commons.jxpath.util.BasicTypeConverter.canConvert(BasicTyp > eConverter.java:165) > at > org.apache.commons.jxpath.util.BasicTypeConverter.canConvert(BasicTyp > eConverter.java:152) > at > org.apache.commons.jxpath.util.BasicTypeConverter.canConvert(BasicTyp > eConverter.java:160) > at > org.apache.commons.jxpath.util.TypeUtils.canConvert(TypeUtils.java:46 > ) > at > org.apache.commons.jxpath.util.MethodLookupUtils.matchType(MethodLook > upUtils.java:285) > at > org.apache.commons.jxpath.util.MethodLookupUtils.matchParameterTypes( > MethodLookupUtils.java:260) > at > org.apache.commons.jxpath.util.MethodLookupUtils.lookupStaticMethod(M > ethodLookupUtils.java:144) > at > org.apache.commons.jxpath.PackageFunctions.getFunction(PackageFunctio > ns.java:200) > at > org.apache.commons.jxpath.ri.JXPathContextReferenceImpl.getFunction(J > XPathContextReferenceImpl.java:638) > at > org.apache.commons.jxpath.ri.axes.RootContext.getFunction(RootContext > .java:118) > at > org.apache.commons.jxpath.ri.compiler.ExtensionFunction.computeValue( > ExtensionFunction.java:83) > at > org.apache.commons.jxpath.ri.compiler.ExtensionFunction.compute(Exten > sionFunction.java:71) > at > org.apache.commons.jxpath.ri.compiler.Expression.iteratePointers(Expr > ession.java:80) > at > org.apache.commons.jxpath.ri.JXPathContextReferenceImpl.iteratePointe > rs(JXPathContextReferenceImpl.java:533) > at > org.apache.commons.jxpath.ri.JXPathCompiledExpression.iteratePointers > (JXPathCompiledExpression.java:113) > at > org.apache.cocoon.components.expression.jxpath.JXPathExpression.getNo > de(JXPathExpression.java:105) > at > org.apache.cocoon.template.expression.JXTExpression.getNode(JXTExpres > sion.java:170) > at > org.apache.cocoon.template.instruction.Set.execute(Set.java:74) > at > org.apache.cocoon.template.script.Invoker.execute(Invoker.java:72) > at > org.apache.cocoon.template.instruction.Call.execute(Call.java:142) > at > org.apache.cocoon.template.script.Invoker.execute(Invoker.java:69) > at > org.apache.cocoon.template.JXTemplateGenerator.performGeneration(JXTe > mplateGenerator.java:122) > at > org.apache.cocoon.template.JXTemplateGenerator.generate(JXTemplateGen > erator.java:111) > > > Any ideas how to fix it? >