This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes how to use Xalan with Weblogic as a web server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "how to use Xalan with Weblogic as a web server" Watch "how to use Xalan with Weblogic as a web server" New topic
Author

how to use Xalan with Weblogic as a web server

Waldle Cai
Ranch Hand

Joined: Aug 16, 2000
Posts: 34
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

Joined: May 21, 2001
Posts: 3
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

Joined: Aug 16, 2000
Posts: 34
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to use Xalan with Weblogic as a web server