This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to use Xalan with Weblogic as a web server

 
Waldle Cai
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I've done a little program, which can translate XML to WML using Xalan API. But when tried to port the code to a servlet. It can't work. Weblogic gives me some runtime error. Looks like Weblogic can't work properly with Xalan XSLT.
The error message is as following:java.lang.NoSuchMethodError: org.w3c.dom.Node: method isSupported(Ljava/lang/Str
ing;Ljava/lang/String Z not found
at org.apache.xpath.axes.ChildWalkerMultiStep.getNextNode(ChildWalkerMul
tiStep.java, Compiled Code)
at org.apache.xpath.axes.ChildWalkerMultiStep.nextNode(ChildWalkerMultiS
tep.java, Compiled Code)
at org.apache.xpath.axes.LocPathIterator.nextNode(LocPathIterator.java:6
89)
at org.apache.xalan.templates.ElemValueOf.execute(ElemValueOf.java:255)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Tr
ansformerImpl.java, Compiled Code)
at org.apache.xalan.transformer.TransformerImpl.transformToString(Transf
ormerImpl.java:1925)
at org.apache.xalan.templates.ElemAttribute.constructNode(ElemAttribute.
java:232)
at org.apache.xalan.templates.ElemElement.execute(ElemElement.java:354)
at org.apache.xalan.templates.ElemAttribute.execute(ElemAttribute.java:1
45)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Tr
ansformerImpl.java, Compiled Code)
at org.apache.xalan.templates.ElemElement.constructNode(ElemElement.java
:400)
at org.apache.xalan.templates.ElemElement.execute(ElemElement.java:354)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Tr
ansformerImpl.java, Compiled Code)
at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResul
t.java, Compiled Code)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Tr
ansformerImpl.java, Compiled Code)
at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResul
t.java, Compiled Code)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Tr
ansformerImpl.java, Compiled Code)
at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResul
t.java, Compiled Code)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Tr
ansformerImpl.java, Compiled Code)
at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResul
t.java, Compiled Code)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Tr
ansformerImpl.java, Compiled Code)
at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(Tran
sformerImpl.java:2085)
at org.apache.xalan.transformer.TransformerImpl.transformNode(Transforme
rImpl.java, Compiled Code)
at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java
:2942)
at java.lang.Thread.run(Thread.java:479)
Has anyone done similar program, which can work under Weblogic. Is there any setting I've missed out, ie classpath or system property..
Thanks and Regards
Waldle
[This message has been edited by Waldle Cai (edited May 20, 2001).]
 
Laurent Kempeneers
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In fact "isSupported(String feature,String version)" is a method of the DOM interface "Node" only since the level 2 recommendation (http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/java-binding.html). The classpath you are using with Weblogic probably contains a references to a DOM level 1 interface.
 
Waldle Cai
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yup, you're right.after i changed the classpath so that Xalan jar files are before the Weblogicaux.jar. it works!!!
Thanks a lot
Waldle
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic