Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

how to use Xalan with Weblogic as a web server

 
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).]
 
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
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!