I don't know exactly what you are doing with the drivers, but you could try
using a URL classloader that contains urls for xerces 1 and the drivers to
load the driver classes and then load the other classes that require xerces
2 in a separate URL classloader.  I know this will cause a load of hassle,
but I think it is the only way to do it properly.

Hope this helps.

-----Original Message-----
From: Mark Causer [mailto:[EMAIL PROTECTED]
Sent: 14 May 2003 15:04
To: [EMAIL PROTECTED]
Subject: Running Xerces1 and 2


Hi

We have an existing application that uses JPOS drivers. These drivers
instantiate a DOMParser to parse the config files.
This code needs xerces.jar (version 1) to run. If I try using the xerces2
jars , I get a java.lang.NoClassDefFoundError:
org/apache/xerces/framework/XMLParser thrown as the DOMParser's class
heirachy has changed in xerces2
These drivers can not be changed.
As a mod for our own app I need to use the Grammar caching in Xerces2 using
DOMParser...

Anyone got any suggestions how I can use Both versions of the DOMParser in
the same application.......

thanks

Mark Causer
PCMS Group PLC

________________________________________________________________________
The information contained in this e-mail is intended only for the person
or entity to which it is addressed and may contain confidential and/or
privileged material. If you are not the intended recipient of this
e-mail, the use of this information or any disclosure, copying or
distribution is prohibited and may be unlawful.

If you received this in error, please contact the sender and delete the
material from any computer.

The views expressed in this e-mail may not necessarily be the views of
The PCMS Group plc and should not be taken as authority to carry out any
instruction contained.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


************************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom
they are addressed. Any views or opinions are solely those of
the author and do not necessarily represent those of Exel
Computer Systems plc. If you have received this email in error
please notify Customer Services on 0115 946 0101.
************************************************************************


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to