• 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

XPath functions and WebSphere

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am having trouble getting XPath functions to work properly in WS 4.0.5. We are using JDom and Jaxen as our Java and XPath APIs. We are loading the Xalan, JDom, Jaxen and Xerces with our ear file in the top lib ( because they are being used in both the EJB and the Web layer).
In this first set of code without a XPath function we can get the element and then the text to get the result:

This second one will return a null;

jdoc is our JDom Document.
I suspect that WS is calling an older version of Xalan that does not have the functions. Any suggestions on what to look for?
thanks
 
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try changing your classloader policy to PARENT_LAST.
Kyle
 
Jon Bricker
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
that would work if we were using WS 5.0. How can we do the same thing with WS 4?
 
Kyle Brown
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check section 6.4.1 of the WAS 4.0 infocenter. I think you want to change your ejbDelegationMode to false to make this work within your EJB's. I'm guessing that it should be working correctly already within your JAR's.
Kyle
 
And then the entire population worshiped me like unto a god. Well, me and this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic