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 <map:flow/> 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?
-- Reinhard P�tz Independent Consultant, Trainer & (IT)-Coach
{Software Engineering, Open Source, Web Applications, Apache Cocoon}web(log): http://www.poetz.cc --------------------------------------------------------------------
