Very hard to tell from these diagnostics. What kind of URI is "InputXML"? As a test, see if this URI can be dereferenced directly (without involving Saxon), for example by doing
new URL(InputXML).openStream()
and then reading the resulting InputStream.
My suspicion is that this will fail the same way, which would simplify the problem by taking Saxon out of the mix.
The other possible area of failure is in locating a SAX parser, but that seems a little unlikely.
Alternatively, work back from the error message. It's complaining that it can't find class ServiceException. That's presumably javax.xml.rpc.ServiceException. I've no idea why it needs this class (why is there no stack trace?). But here's a list of JAR files that contain this class. Is any of them on your class path?
Michael Kay

From: Hoke, Phil []
Sent: 12 March 2009 19:36
Subject: [saxon] NoClassDefFound on

I am trying to execute the following code in Weblogic 8.1 using j2sdk 1.4.2_16. 


   public String XMLXQExecuteQuery(String InputXML)






            System.out.println("******  Bind   ******");

            exp.bindDocument( XQConstants.CONTEXT_ITEM,



                              null );


            System.out.println("******  Ex   ******");                            

            xqResult = exp.executeQuery();



    catch(Exception e)


        System.out.println("Error: " + e);


    return xqResult.toString();




It appears to dye on the exp.bindDocument statement.  I get the error listed below.  Any idea why?




<Mar 12, 2009 3:21:50 PM EDT> <Warning> <WLW> <000000> <Id=top-level; Method=Tra

nsformationService.transformToCanonicalModel(); Failure=java.lang.NoClassDefFoun

dError [ServiceException]>





Phil Hoke