This message was originally submitted by jtang_at_STUDENT-SERVICES.UBC.CA to the
JAXB-INTEREST list at JAVA.SUN.COM. If you simply forward it back to the list,
using a mail command that generates "Resent-" fields (ask your local user
support or consult the documentation of your mail program if in doubt), it will
be distributed and the explanations you are now reading will be removed
automatically. If on the other hand you edit the contributions you receive into
a digest, you will have to remove this paragraph manually. Finally, you should
be able to contact the author of this message by using the normal "reply"
function of your mail program.
----------------- Message requiring your approval (39 lines) ------------------
Thanks Ed, yes you are right.
IntelliJ includes a path to its own XML parser (xerces.jar) that causes it fails.
It works fine after I remove the inclusion.
-----Original Message-----
From: Ed Mooney [mailto:Ed.Mooney_at_Sun.COM]
Sent: Tuesday, December 03, 2002 6:57 PM
To: JAXB-INTEREST_at_JAVA.SUN.COM
Subject: Re: IllegalAccessError when compiling under intelliJ
Hi Jason,
You're picking up an incompatible xercesImpl.jar. Try this from the
shell in which you're running ant:
set CLASSPATH=
set ANT_HOME=%JAXB_HOME%
%JAXB_HOME%\bin\ant
Regards,
--
Ed Mooney |Sun Microsystems, Inc.|Time flies like
Java Web Services |UBUR02-201 |an arrow, but
Ed.Mooney_at_Sun.COM |1 Network Drive |fruit flies like
781-442-0459 |Burlington, MA 01803 |a banana. Groucho
Jason Tang wrote:
> Hi,
>
> when I tried to ant compile the sample 1, I got the following error...
> Compiling file:/C:/jaxb-1.0-beta/examples/users-guide/SampleApp1/po.xsd
> java.lang.IllegalAccessError: tried to access method org.apache.xerces.util.ObjectFactory.findClassLoader()Ljava/lang/ClassLoader; from class org.apache.xerces.parsers.XMLGrammarPreparser
>
> but I have no problem compiling in command prompt.
>
> any idea?
>
> Thanks