Help coderanch get a
new server
by contributing to the fundraiser
  • 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

how to use Xalan with Weblogic as a web server

 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Oh sure, it's a tiny ad, but under the right circumstances, it gets bigger.
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic