Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Xalan and JavaScript Extension

Reply
Thread Tools

Xalan and JavaScript Extension

 
 
Olo
Guest
Posts: n/a
 
      01-06-2005
Hello,

I trying to configure xalan-j_2_6_0 extension. Simple transformation works
ok, but when I trying run xslt with javascript extension(e.g.
2-basicJscript.xsl example) I get following error :

file:///d:/project/2-basicJscript.xsl; Line 36; Column -1;
javax.xml.transform.TransformerException: java.lang.ClassNotFoundException:
ext1
javax.xml.transform.TransformerException: java.lang.NoSuchMethodException:
For extension function, could not find method
java.lang.String.getdate([ExpressionContext,] ).
at
org.apache.xalan.extensions.ExtensionHandlerJavaPa ckage.callFunction(ExtensionHandlerJavaPackage.jav a:395)
at
org.apache.xalan.extensions.ExtensionsTable.extFun ction(ExtensionsTable.java:257)
at
org.apache.xpath.functions.FuncExtFunction.execute (FuncExtFunction.java:181)
at
org.apache.xpath.Expression.executeCharsToContentH andler(Expression.java:301)
at org.apache.xalan.templates.ElemValueOf.execute(Ele mValueOf.java:319)
at
org.apache.xalan.transformer.TransformerImpl.execu teChildTemplates(TransformerImpl.java:2182)
at
org.apache.xalan.templates.ElemLiteralResult.execu te(ElemLiteralResult.java:67
at
org.apache.xalan.templates.ElemApplyTemplates.tran sformSelectedNodes(ElemApplyTemplates.java:423)
at
org.apache.xalan.templates.ElemApplyTemplates.exec ute(ElemApplyTemplates.java:226)
at
org.apache.xalan.templates.ElemApplyTemplates.tran sformSelectedNodes(ElemApplyTemplates.java:423)
at
org.apache.xalan.templates.ElemApplyTemplates.exec ute(ElemApplyTemplates.java:226)
at
org.apache.xalan.transformer.TransformerImpl.execu teChildTemplates(TransformerImpl.java:2182)
at
org.apache.xalan.transformer.TransformerImpl.apply TemplateToNode(TransformerImpl.java:200
at
org.apache.xalan.transformer.TransformerImpl.trans formNode(TransformerImpl.java:1171)
at
org.apache.xalan.transformer.TransformerImpl.trans form(TransformerImpl.java:63
at
org.apache.xalan.transformer.TransformerImpl.trans form(TransformerImpl.java:108
at
org.apache.xalan.transformer.TransformerImpl.trans form(TransformerImpl.java:1066)
at net.jaguar.runner.MyJasperRunner.test9(MyJasperRun ner.java:400)
at net.jaguar.runner.MyJasperRunner.main(MyJasperRunn er.java:467)
Caused by: java.lang.NoSuchMethodException: For extension function, could
not find method java.lang.String.getdate([ExpressionContext,] ).
at
org.apache.xalan.extensions.MethodResolver.getMeth od(MethodResolver.java:314)
at
org.apache.xalan.extensions.ExtensionHandlerJavaPa ckage.callFunction(ExtensionHandlerJavaPackage.jav a:374)
... 18 more


I corectly set classpath to bsf.jar and js.jar. I have jdk 1.5.0. I tried
both javascript libraries - rhino1_5R2 and rhino1_5R3

Regards,
Olo.


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Xalan and JavaScript Extension Olo Java 0 01-06-2005 10:04 PM
Upgrade of Xalan 1.2.2 and Xerces 1.4.4 to Xalan 2.6 and Xerces 2.6.2 cvissy XML 0 11-16-2004 07:06 AM
how to create a DocumentFragment in Xalan java extension function? Arjen Haayman XML 0 03-01-2004 03:46 PM
can i create a xalan java extension function where the function name has dashes (-) in it ? _clb_ Chris Bedford Java 0 08-17-2003 12:57 AM
can i create a xalan java extension function where the function name has dashes (-) in it ? _clb_ Chris Bedford XML 0 08-17-2003 12:57 AM



Advertisments