Migrating cocoon 2.1 project to 2.2
"Thangavel, Senthil Kumar (LNG-CON)" <[email protected]> Thu, 4 Oct 2018 12:03:14 +0000
| Newsgroups | gmane.text.xml.cocoon.user |
|---|---|
| Message-ID | <SN6SPR01MB13EDE267B1E30ACDC421EDF2EA0@SN6SPR01MB13.namprd08.prod.outlook.com> |
--_000_SN6SPR01MB13EDE267B1E30ACDC421EDF2EA0SN6SPR01MB13namprd_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
HI,
I am currently migrating the cocoon 2.1 based project to 2.2, while I tried=
to set it up with cocoon 2.2 I am running in to following issue while exec=
uting a transform pipeline.
Could some on help me to fix this issue and provide your expert advice. Tha=
nks in advance.
I have tried with the below xslt configuration (placed in META-INF/cocoon/a=
valon/cocoon-core-saxon-xslt.xconf) but still the issue persists.
<?xml version=3D"1.0" encoding=3D"UTF-8"?> <components> <component role=3D"=
org.apache.excalibur.xml.xslt.XSLTProcessor/saxon" class=3D"org.apache.coco=
on.components.xslt.TraxProcessor"> <parameter name=3D"use-store" value=3D"t=
rue"/> <parameter name=3D"transformer-factory" value=3D"net.sf.saxon.Transf=
ormerFactoryImpl"/> </component> </components>
Unable to get transformer handler for file:///C:/Users/thandakx/AppData/Loc=
al/Temp/Jetty_0_0_0_0_8323_webapp____i45n8s/blocks/custom-block/tabula-rasa=
/structure/transforms/tabula-rasa-index.xsl
at <map:serialize type=3D"xhtml"> - file:///C:/Users/thandakx/AppDa=
ta/Local/Temp/Jetty_0_0_0_0_8323_webapp____i45n8s/blocks/custom-block/sitem=
ap.xmap:255:36
at <map:transform> - file:///C:/Users/thandakx/AppData/Local/Temp/J=
etty_0_0_0_0_8323_webapp____i45n8s/blocks/custom-block/sitemap.xmap:241:72
at <map:transform> - file:///C:/Users/thandakx/AppData/Local/Temp/J=
etty_0_0_0_0_8323_webapp____i45n8s/blocks/custom-block/sitemap.xmap:218:81
at <map:serialize type=3D"xml"> - file:///C:/Users/thandakx/AppData=
/Local/Temp/Jetty_0_0_0_0_8323_webapp____i45n8s/blocks/custom-block/sitemap=
.xmap:195:32
at <map:transform type=3D"index"> - file:///C:/Users/thandakx/AppDa=
ta/Local/Temp/Jetty_0_0_0_0_8323_webapp____i45n8s/blocks/custom-block/sitem=
ap.xmap:194:34
at <map:generate> - file:///C:/Users/thandakx/AppData/Local/Temp/Je=
tty_0_0_0_0_8323_webapp____i45n8s/blocks/custom-block/sitemap.xmap:193:112
at <map:match> - file:///C:/Users/thandakx/AppData/Local/Temp/Jetty=
_0_0_0_0_8323_webapp____i45n8s/blocks/custom-block/sitemap.xmap:191:46
RequestURI=3D/custom-block/build-search/newadminportal/US/en_US/all
Caused by: javax.xml.transform.TransformerException: Could not find functio=
n: tokenize
at org.apache.xpath.compiler.XPathParser.error(XPathParser.java:610=
)
at org.apache.xpath.compiler.XPathParser.FunctionCall(XPathParser.j=
ava:1507)
at org.apache.xpath.compiler.XPathParser.PrimaryExpr(XPathParser.ja=
va:1446)
at org.apache.xpath.compiler.XPathParser.FilterExpr(XPathParser.jav=
a:1345)
at org.apache.xpath.compiler.XPathParser.PathExpr(XPathParser.java:=
1278)
at org.apache.xpath.compiler.XPathParser.UnionExpr(XPathParser.java=
:1236)
at org.apache.xpath.compiler.XPathParser.UnaryExpr(XPathParser.java=
:1142)
at org.apache.xpath.compiler.XPathParser.MultiplicativeExpr(XPathPa=
rser.java:1063)
at org.apache.xpath.compiler.XPathParser.AdditiveExpr(XPathParser.j=
ava:1005)
at org.apache.xpath.compiler.XPathParser.RelationalExpr(XPathParser=
.java:930)
at org.apache.xpath.compiler.XPathParser.EqualityExpr(XPathParser.j=
ava:870)
at org.apache.xpath.compiler.XPathParser.AndExpr(XPathParser.java:8=
34)
at org.apache.xpath.compiler.XPathParser.OrExpr(XPathParser.java:80=
7)
at org.apache.xpath.compiler.XPathParser.Expr(XPathParser.java:790)
at org.apache.xpath.compiler.XPathParser.initXPath(XPathParser.java=
:129)
at org.apache.xpath.XPath.(XPath.java:227)
at org.apache.xalan.processor.StylesheetHandler.createXPath(Stylesh=
eetHandler.java:152)
at org.apache.xalan.processor.XSLTAttributeDef.processEXPR(XSLTAttr=
ibuteDef.java:763)
at org.apache.xalan.processor.XSLTAttributeDef.processValue(XSLTAtt=
ributeDef.java:1405)
at org.apache.xalan.processor.XSLTAttributeDef.setAttrValue(XSLTAtt=
ributeDef.java:1601)
at org.apache.xalan.processor.XSLTElementProcessor.setPropertiesFro=
mAttributes(XSLTElementProcessor.java:355)
at org.apache.xalan.processor.XSLTElementProcessor.setPropertiesFro=
mAttributes(XSLTElementProcessor.java:267)
at org.apache.xalan.processor.ProcessorTemplateElem.startElement(Pr=
ocessorTemplateElem.java:78)
at org.apache.xalan.processor.StylesheetHandler.startElement(Styles=
heetHandler.java:623)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown=
Source)
at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement=
(Unknown Source)
Regards,
Senthilkumar.T
--_000_SN6SPR01MB13EDE267B1E30ACDC421EDF2EA0SN6SPR01MB13namprd_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<meta name=3D"Generator" content=3D"Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:"Courier New";}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3D"EN-US" link=3D"#0563C1" vlink=3D"#954F72">
<div class=3D"WordSection1">
<p class=3D"MsoNormal">HI,<o:p></o:p></p>
<p class=3D"MsoNormal">I am currently migrating the cocoon 2.1 based projec=
t to 2.2, while I tried to set it up with cocoon 2.2 I am running in to fol=
lowing issue while executing a transform pipeline.<o:p></o:p></p>
<p class=3D"MsoNormal">Could some on help me to fix this issue and provide =
your expert advice. Thanks in advance.<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal">I have tried with the below xslt configuration (plac=
ed in <span style=3D"font-size:10.0pt;font-family:Consolas;color:#242729;ba=
ckground:#EFF0F1">
META-INF/cocoon/avalon/cocoon-core-saxon-xslt.xconf) but still the issue pe=
rsists.</span><o:p></o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:Consolas=
;color:#242729;background:#EFF0F1"><?xml version=3D"1.0" encod=
ing=3D"UTF-8"?> <components> <component role=3D"=
org.apache.excalibur.xml.xslt.XSLTProcessor/saxon" class=3D"org.a=
pache.cocoon.components.xslt.TraxProcessor">
<parameter name=3D"use-store" value=3D"true"/> &=
lt;parameter name=3D"transformer-factory" value=3D"net.sf.sa=
xon.TransformerFactoryImpl"/> </component> </components>=
;</span><o:p></o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:"Co=
urier New";color:black">Unable to get transformer handler for
<a href=3D"file:///C:/Users/thandakx/AppData/Local/Temp/Jetty_0_0_0_0_8323_=
webapp____i45n8s/blocks/custom-block/tabula-rasa/structure/transforms/tabul=
a-rasa-index.xsl">
file:///C:/Users/thandakx/AppData/Local/Temp/Jetty_0_0_0_0_8323_webapp____i=
45n8s/blocks/custom-block/tabula-rasa/structure/transforms/tabula-rasa-inde=
x.xsl</a><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:"Co=
urier New";color:black"> at =
<map:serialize type=3D"xhtml"> -
<a href=3D"file:///C:/Users/thandakx/AppData/Local/Temp/Jetty_0_0_0_0_8323_=
webapp____i45n8s/blocks/custom-block/sitemap.xmap:255:36">
file:///C:/Users/thandakx/AppData/Local/Temp/Jetty_0_0_0_0_8323_webapp____i=
45n8s/blocks/custom-block/sitemap.xmap:255:36</a><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:"Co=
urier New";color:black"> at =
<map:transform> -
<a href=3D"file:///C:/Users/thandakx/AppData/Local/Temp/Jetty_0_0_0_0_8323_=
webapp____i45n8s/blocks/custom-block/sitemap.xmap:241:72">
file:///C:/Users/thandakx/AppData/Local/Temp/Jetty_0_0_0_0_8323_webapp____i=
45n8s/blocks/custom-block/sitemap.xmap:241:72</a><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:"Co=
urier New";color:black"> at =
<map:transform> -
<a href=3D"file:///C:/Users/thandakx/AppData/Local/Temp/Jetty_0_0_0_0_8323_=
webapp____i45n8s/blocks/custom-block/sitemap.xmap:218:81">
file:///C:/Users/thandakx/AppData/Local/Temp/Jetty_0_0_0_0_8323_webapp____i=
45n8s/blocks/custom-block/sitemap.xmap:218:81</a><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:"Co=
urier New";color:black"> at =
<map:serialize type=3D"xml"> -
<a href=3D"file:///C:/Users/thandakx/AppData/Local/Temp/Jetty_0_0_0_0_8323_=
webapp____i45n8s/blocks/custom-block/sitemap.xmap:195:32">
file:///C:/Users/thandakx/AppData/Local/Temp/Jetty_0_0_0_0_8323_webapp____i=
45n8s/blocks/custom-block/sitemap.xmap:195:32</a><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:"Co=
urier New";color:black"> at =
<map:transform type=3D"index"> -
<a href=3D"file:///C:/Users/thandakx/AppData/Local/Temp/Jetty_0_0_0_0_8323_=
webapp____i45n8s/blocks/custom-block/sitemap.xmap:194:34">
file:///C:/Users/thandakx/AppData/Local/Temp/Jetty_0_0_0_0_8323_webapp____i=
45n8s/blocks/custom-block/sitemap.xmap:194:34</a><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:"Co=
urier New";color:black"> at =
<map:generate> -
<a href=3D"file:///C:/Users/thandakx/AppData/Local/Temp/Jetty_0_0_0_0_8323_=
webapp____i45n8s/blocks/custom-block/sitemap.xmap:193:112">
file:///C:/Users/thandakx/AppData/Local/Temp/Jetty_0_0_0_0_8323_webapp____i=
45n8s/blocks/custom-block/sitemap.xmap:193:112</a><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:"Co=
urier New";color:black"> at =
<map:match> -
<a href=3D"file:///C:/Users/thandakx/AppData/Local/Temp/Jetty_0_0_0_0_8323_=
webapp____i45n8s/blocks/custom-block/sitemap.xmap:191:46">
file:///C:/Users/thandakx/AppData/Local/Temp/Jetty_0_0_0_0_8323_webapp____i=
45n8s/blocks/custom-block/sitemap.xmap:191:46</a><o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-a=
lt:auto"><span style=3D"font-size:13.5pt;font-family:"Times New Roman&=
quot;,serif;color:black">RequestURI=3D/custom-block/build-search/newadminpo=
rtal/US/en_US/all<o:p></o:p></span></p>
<pre><b><span style=3D"color:black;background:yellow;mso-highlight:yellow">=
Caused by: javax.xml.transform.TransformerException: Could not find functio=
n: tokenize</span><span style=3D"color:black"><o:p></o:p></span></b></pre>
<pre><span style=3D"color:black"> =
at org.apache.xpath.compiler.XPathParser.error(XPathParser.java:610)<o:p><=
/o:p></span></pre>
<pre><span style=3D"color:black"> =
at org.apache.xpath.compiler.XPathParser.FunctionCall(XPathParser.java:150=
7)<o:p></o:p></span></pre>
<pre><span style=3D"color:black"> =
at org.apache.xpath.compiler.XPathParser.PrimaryExpr(XPathParser.java:1446=
)<o:p></o:p></span></pre>
<pre><span style=3D"color:black"> =
at org.apache.xpath.compiler.XPathParser.FilterExpr(XPathParser.java:1345)=
<o:p></o:p></span></pre>
<pre><span style=3D"color:black"> =
at org.apache.xpath.compiler.XPathParser.PathExpr(XPathParser.java:1278)<o=
:p></o:p></span></pre>
<pre><span style=3D"color:black"> =
at org.apache.xpath.compiler.XPathParser.UnionExpr(XPathParser.java:1236)<=
o:p></o:p></span></pre>
<pre><span style=3D"color:black"> =
at org.apache.xpath.compiler.XPathParser.UnaryExpr(XPathParser.java:1142)<=
o:p></o:p></span></pre>
<pre><span style=3D"color:black"> =
at org.apache.xpath.compiler.XPathParser.MultiplicativeExpr(XPathParser.ja=
va:1063)<o:p></o:p></span></pre>
<pre><span style=3D"color:black"> =
at org.apache.xpath.compiler.XPathParser.AdditiveExpr(XPathParser.java:100=
5)<o:p></o:p></span></pre>
<pre><span style=3D"color:black"> =
at org.apache.xpath.compiler.XPathParser.RelationalExpr(XPathParser.java:9=
30)<o:p></o:p></span></pre>
<pre><span style=3D"color:black"> =
at org.apache.xpath.compiler.XPathParser.EqualityExpr(XPathParser.java:870=
)<o:p></o:p></span></pre>
<pre><span style=3D"color:black"> =
at org.apache.xpath.compiler.XPathParser.AndExpr(XPathParser.java:834)<o:p=
></o:p></span></pre>
<pre><span style=3D"color:black"> =
at org.apache.xpath.compiler.XPathParser.OrExpr(XPathParser.java:807)<o:p>=
</o:p></span></pre>
<pre><span style=3D"color:black"> =
at org.apache.xpath.compiler.XPathParser.Expr(XPathParser.java:790)<o:p></=
o:p></span></pre>
<pre><span style=3D"color:black"> =
at org.apache.xpath.compiler.XPathParser.initXPath(XPathParser.java:129)<o=
:p></o:p></span></pre>
<pre><span style=3D"color:black"> =
at org.apache.xpath.XPath.(XPath.java:227)<o:p></o:p></span></pre>
<pre><span style=3D"color:black"> =
at org.apache.xalan.processor.StylesheetHandler.createXPath(StylesheetHand=
ler.java:152)<o:p></o:p></span></pre>
<pre><span style=3D"color:black"> =
at org.apache.xalan.processor.XSLTAttributeDef.processEXPR(XSLTAttributeDe=
f.java:763)<o:p></o:p></span></pre>
<pre><span style=3D"color:black"> =
at org.apache.xalan.processor.XSLTAttributeDef.processValue(XSLTAttributeD=
ef.java:1405)<o:p></o:p></span></pre>
<pre><span style=3D"color:black"> =
at org.apache.xalan.processor.XSLTAttributeDef.setAttrValue(XSLTAttributeD=
ef.java:1601)<o:p></o:p></span></pre>
<pre><span style=3D"color:black"> =
at org.apache.xalan.processor.XSLTElementProcessor.setPropertiesFromAttrib=
utes(XSLTElementProcessor.java:355)<o:p></o:p></span></pre>
<pre><span style=3D"color:black"> =
at org.apache.xalan.processor.XSLTElementProcessor.setPropertiesFromAttrib=
utes(XSLTElementProcessor.java:267)<o:p></o:p></span></pre>
<pre><span style=3D"color:black"> =
at org.apache.xalan.processor.ProcessorTemplateElem.startElement(Processor=
TemplateElem.java:78)<o:p></o:p></span></pre>
<pre><span style=3D"color:black"> =
at org.apache.xalan.processor.StylesheetHandler.startElement(StylesheetHan=
dler.java:623)<o:p></o:p></span></pre>
<pre><span style=3D"color:black"> =
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source=
)<o:p></o:p></span></pre>
<p class=3D"MsoNormal"><span style=3D"color:black"> =
at org.apache.xerces.parsers.AbstractXMLDocumentParser.e=
mptyElement(Unknown Source)<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:black"><o:p> </o:p></span>=
</p>
<p class=3D"MsoNormal"><span style=3D"color:black">Regards,<o:p></o:p></spa=
n></p>
<p class=3D"MsoNormal"><span style=3D"color:black">Senthilkumar.T</span><o:=
p></o:p></p>
</div>
</body>
</html>
--_000_SN6SPR01MB13EDE267B1E30ACDC421EDF2EA0SN6SPR01MB13namprd_--