Are you sure that you reference the Xalan jar on the endorsed class path as
opposed to the class path in all scenarios?

Gary

On Thu, Oct 2, 2014 at 11:30 AM, acheung <ache...@royallepage.ca> wrote:

> Hi. I'm using xalan version 2.7.0 with JDK 1.6.0_21 in a project  (let's
> call
> this project SSOConfigMgr). I also have a test harness (another java
> project
> called SSOTest) that references the SSOConfigMgr project. I encountered the
> following problem:
>
> In eclipse, if the test harness (SSOTest) references the "SSOConfigMgr"
> project (note: NOT the compiled jar file), then the code
> "XPathAPI.selectSingleNode(...)" runs fine and return the appropriate
> nodes.
> However, if I compile the "SSOConfigMgr" project into SSOConfigMgr.jar and
> have the test harness reference the jar file, the
> "XPathAPI.selectSingleNode(...)" doesn't work (it doesn't return the
> appropriate node).
>
> Any idea why and how to fix it? FYI, I have referenced the same libraries
> in
> eclipse as well as in the build.xml file that I use to compile the code.
>
> Your help is appreciated.
>
>   -Andrew
>
>
>
> --
> View this message in context:
> http://apache-xml-project.6118.n7.nabble.com/Xalan-behavioural-difference-in-referenced-jar-vs-project-in-Eclipse-tp41505.html
> Sent from the Xalan - J - Users mailing list archive at Nabble.com.
>



-- 
E-Mail: garydgreg...@gmail.com | ggreg...@apache.org
Java Persistence with Hibernate, Second Edition
<http://www.manning.com/bauer3/>
JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
Spring Batch in Action <http://www.manning.com/templier/>
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory

Reply via email to