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?
 
http://www.findjar.com/class/javax/xml/rpc/ServiceException.html
 
Michael Kay
http://www.saxonica.com/
 
 


From: Hoke, Phil [mailto:Phil.Hoke@radian.biz]
Sent: 12 March 2009 19:36
To: saxon-help@lists.sourceforge.net
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)

   {

   

    try

        {

 

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

            exp.bindDocument( XQConstants.CONTEXT_ITEM,

                             InputXML,

                              null,

                              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]>

 

 

 

Thanx

Phil Hoke