I tried importing the Xerces 1.3.1 jar into
a project in VA 3.5, and it fails without importing anything
reporting the following error:
An exception occurred in a system program.
Terminating Default (System) (2001-05-09 09:13:26)
The culprits seem to be the two classes "ParserForXMLSchema"
and "Token", both in the ...utils.regexp package. VA simply
refuses to import those classes, even if I unpack the jar
and import the class files one by one manually.
Importing from the source java files works better. However
there is a compilation error in the class ...schema.identify.XPath.
In this case, the following code snippet causes the problem:
=====
public static class XPath
extends org.apache.xerces.validators.schema.identity.XPath {
<snip>
/** Constructs a selector XPath expression. */
public XPath(String xpath, StringPool stringPool,
<snip>
// verify that an attribute is not selected
XPath.Axis axis =
fLocationPath.steps[fLocationPath.steps.length-1].axis;
...
=====
VA complains that the "type XPath.Axis is not defined", even though it
has
been imported and seems to compile fine.
My guess is that VA has problems handling nested classes that are
not inner, and that that is causing our problems. Can anyone verify?
/Henrik St�hl
Aaron Wadley wrote:
>
> You didn't specify what errors you are having, but here's what I ran into
> when doing the same thing. VA comes with the IBM XML project that has some
> of the classes that you're trying to import. You can't have both projects
> in your Workspace at the same time, or VA complains about it.
> Something about some packages not being open versions. It has been a while.
>
> We are using the multiuser repository, and I am not an administrator on it,
> so maybe that's why it wouldn't let me do it. Anyway, I removed the IBM XML
> project from my workspace and then Xerces imported properly.
>
> --
> Aaron Wadley [EMAIL PROTECTED]
> Programmer/Analyst (407) 240-3863 x7787
> The Fund, Inc. http://www.thefund.com
> =====================================================
>
> > -----Original Message-----
> > From: Henrik St�hl [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, May 17, 2001 9:32 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: Visualage 3.5.2 + Xerces ERROR
> >
> >
> >
> > I have that problem with 1.3.0 and VA 3.5p2 Enterprise. It works
> > better when importing the source code instead of the jar containing
> > only compiled classes, but there are still errors. Anyone have
> > a solution?
> >
> > /Henrik
> >
> >
> > [EMAIL PROTECTED] wrote:
> > >
> > > I have problem whe i try to import Xerces1.3.0 in Visualage 3.5.2
> > >
> > > Can you help me please ?
> > >
> > > Thanks a lot
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]