On Tue, 11 Dec 2001 16:02:03 +0000
Michael Hearn <[EMAIL PROTECTED]> wrote:

> (original didn't appear to get through, so resending)
> 
> Well, I did that and got this:
> 
> Starting updates...
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/xalan/xpath/xml/PrefixResolver
>          at
> org.infozone.tools.xml.queries.xalan.XPathQueryFactoryImpl.newXPathQuery(XPathQueryFactoryImpl.java:30)
>          at
> org.infozone.lexus.commands.CommandObject.<init>(CommandObject.java:45)
>          at
> org.infozone.lexus.commands.DefaultCommand.<init>(DefaultCommand.java:23)
>          at
> org.infozone.lexus.XUpdateQueryImpl.execute(XUpdateQueryImpl.java:112)
>          at
> org.infozone.lexus.XUpdateQueryImpl.main(XUpdateQueryImpl.java:179)
> 
> I don't understand how I had this working before when Lexus is
> apparently trying to access a class that has moved ... well, it's moved
> in my copy of xalan-2.2.D11.jar
> 
> The actual class it wants seems to have moved to here:
> 
> org.apache.xml.utils.PrefixResolver
> 
> Have I got a version mismatch here? Should I download a new copy of XIndice?

Well, XIndice doesn't cause the failure. So a new copy wouldn't solve
this problem. Lexus is using the common XPath factories provided by the
Infozone-Tools package. By default Xalan1 is used, but one can change
this to use any XPath implementation. Because you're using Xalan2 you
have to set the proper environment variable to use this XPath impl.

Simply use the following line of code in your sample application to
switch over to Xalan2:

...
System.setProperty ("org.infozone.tools.xml.queries.XPathQueryFactory",
                    
"org.infozone.tools.xml.queries.xalan2.XPathQueryFactoryImpl");
...

For more information about available XPath implementations and usage
see:

http://cvs.smb-tec.com/cgi-bin/cvsweb.cgi/infozone/tools/src/org/infozone/tools/xml/queries/

Hope this helps,
Lars


> thanks -mike
> 
> Lars Martin wrote:
> 
>  >On Sun, 09 Dec 2001 19:54:09 +0000
>  >Michael Hearn <[EMAIL PROTECTED]> wrote:
>  >
>  >>Hiya, I'm still struggling to figure out what's wrong with the XUpdate
>  >>service. Here's a stack trace:
>  >>
>  >>Got DB objects...
>  >>Doing an XUpdate...
>  >>org.xmldb.api.base.XMLDBException:
>  >>        at
>  >>org.dbxml.core.FaultCodes.createXMLDBException(FaultCodes.java:238)
>  >>        at
>  
> >>org.dbxml.client.xmldb.services.XUpdateQueryServiceImpl.updateResult(XUpdateQueryServiceImpl.java:100)
>  >>        at
>  
> >>org.dbxml.client.xmldb.services.XUpdateQueryServiceImpl.update(XUpdateQueryServiceImpl.java:115)
>  >>        at org.genio.tests.dbTest.main(dbTest.java:62)
>  >>Exception in thread "main"
>  >>
>  >>Notice anything odd? The Exception appears to originate -in-
>  >>createXMLDBException(), whereas other exceptions i've seen don't. Does
>  >>anyone know what could be causing this messageless exception with an
>  >>error code that isn't listed anywhere in the source? I'm at my wits end,
>  >>even unzipping a new copy doesn't seem to have any effect. For some
>  >>reason the standard batch files don't work either, the lcp.bat file
>  >>isn't called for the jar files, so I have to set the CLASSPATH manually.
>  >>Maybe this is it, but on the other hand, i'm not getting NoClassDefFound
>  >>errors, and the rest of the database seems to work.
>  >>
>  >
>  >Please try to run the XUpdate implementation stand alone. Simply run
>  >org.infozone.lexus.XUpdateImpl with the appropriated command line
>  >arguments. Either your query will run without any problems, then the
>  >integration of XUpdate into dbXML (Xindice) is buggy (for example, the
>  >error handling) or you will get a more detailed error message, then
>  >either your XUpdate query is wrong or the XUpdate implementation is
>  >buggy.
>  >Regards, Lars
--
______________________________________________________________________
Lars Martin                             mailto:[EMAIL PROTECTED]
SMB GmbH                                        http://www.smb-tec.com

Reply via email to