Win a copy of Micro Frontends in Action this week in the Server-Side JavaScript and NodeJS forum!
  • 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
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Urgent - classloader troubles

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Trying to access a web services, I got in turn the following :
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.RemoteException: ; nested exception is:
java.lang.NoSuchMethodError: org.w3c.dom.Document: method createElementNS(Ljava/lang/String;Ljava/lang/String Lorg/w3c/dom/Element; not found
java.rmi.RemoteException: ; nested exception is:
java.lang.NoSuchMethodError: org.w3c.dom.Document: method createElementNS(Ljava/lang/String;Ljava/lang/String Lorg/w3c/dom/Element; not found
java.lang.NoSuchMethodError: org.w3c.dom.Document: method createElementNS(Ljava/lang/String;Ljava/lang/String Lorg/w3c/dom/Element; not found

looks like the correct parser is not found on the server classpath, please help me to resolve this compelling problem (my boss is firing me).
thanks a lot in advance.
Franz
 
Ranch Hand
Posts: 906
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Francesco,
Sounds like this is not a classloader problem

The methode createElementNS(String, Element) you are trying to invoke does not exist, that's why WebSphere is unable to find it, and why the error message is : java.lang.NoSuchMethodError

The correct method's signature is :
public Element createElementNS(java.lang.String namespaceURI,java.lang.String qualifiedName)

hth, and your boss will not read this thread.
[ December 18, 2004: Message edited by: Jean-Louis Marechaux ]
 
Francesco Pezzino
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for the reply,

by the way I copied and pasted the exception there's been an emotiocon popping up in between the text.
The throwed exception states that the method unrecognized have the correct two parameters and the correct return class.
I do not use direcly this method, but is called from the application when a web services is called whithin a method.
The problem that probably arises is that WSAD somewhere in the classpath load the core DOM level 1 APIs
instead of these DOM level 2.

java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.RemoteException: nested exception is:
java.lang.NoSuchMethodError: org.w3c.dom.Document: method createElementNS(String, String) Element not found
java.rmi.RemoteException: ; nested exception is:
java.lang.NoSuchMethodError: org.w3c.dom.Document: method createElementNS(String, String Element not found
java.lang.NoSuchMethodError: org.w3c.dom.Document: method createElementNS(String, String) Element not found

I need some suggestion thanks.
 
JeanLouis Marechaux
Ranch Hand
Posts: 906
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok sorry,

I've been by emoticons. Sory. btw, you can disable smiley in each post. There a special checkbox for that at the end of the JavaRanch page.

About your problem, which version of WSAD are you using ?
You WSAD project has a configurable classpath (Java Jar dependencies). How did you configure it ?? What kind of WSAD project is it ? (Jar, EJb, War ??)

How could you explain you've got a DOM level 1 jar somewhere while you should have a DOM level 2. Have you imported a COTS which could include DOM 1 instead of DOM 2 ??

Please explain a bit further your problem.
you are talking about WSAD. Have you tried to deploy it on a "real" websphere to see what happens ??
 
What could go wrong in a swell place like "The Evil Eye"? Or with this tiny ad?
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic