You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Jan Obdrzalek <J....@sms.ed.ac.uk> on 2003/03/07 12:28:28 UTC

Re: ANT crashes - IllegalAccessError

On Fri, 7 Mar 2003, Conor MacNeill wrote:

> On Fri, 7 Mar 2003 10:14 pm, Jan Obdrzalek wrote:
> > Hi there,
> >
> > when I want to run Ant 1.5.1 on my box (Linux - Debian/testing) it crashes
> > with a wierd exception:
> >
> > ----
> >
> > Buildfile: build.xml
> >
> > BUILD FAILED
> > java.lang.IllegalAccessError: tried to access method
> > java.lang.Object.clone()Lja
> > va/lang/Object; from class org.apache.xerces.impl.XMLEntityManager
> >         at
> > org.apache.xerces.impl.XMLEntityManager.getRecognizedFeatures(XMLEnti
> > tyManager.java:1291)
> >         at
> > org.apache.xerces.parsers.BasicParserConfiguration.addComponent(Basic
> > ParserConfiguration.java:300)
> >
>
> What version of java are you running? Can you run ant with -debug and see what

Sorry, forgotten to add this:

j2sdk 1.4.1 (so should be fairly standard :-( )

		Regards,
			Jan

-------------------------------------------------------------------------
  Jan Obdrzalek                                J.Obdrzalek@sms.ed.ac.uk
  PhD student at LFCS, University of Edinburgh
  http://www.dcs.ed.ac.uk/home/s0128832         phone: +44-131-650 6015
-------------------------------------------------------------------------


Re: ANT crashes - IllegalAccessError

Posted by Jan Obdrzalek <J....@sms.ed.ac.uk>.
> Ok, I was able to reproduce your problem, and now I remember my
> solution. Use Blackdown's 1.4.1

It works! Thanks a lot. :))
Does anybody know what's wrong with Sun's j2sdk 1.4.1?

				Jan

-------------------------------------------------------------------------
  Jan Obdrzalek                                J.Obdrzalek@sms.ed.ac.uk
  PhD student at LFCS, University of Edinburgh
  http://www.dcs.ed.ac.uk/home/s0128832         phone: +44-131-650 6015
-------------------------------------------------------------------------


Re: ANT crashes - IllegalAccessError

Posted by Jesse Stockall <je...@cryptocard.com>.
On Friday, March 7, 2003, at 07:39  AM, Jan Obdrzalek wrote:
> This does not solve the problwm. Anyway, there is no link to
> /usr/share/java/xerces.jar in /usr/share/ant/lib. It is xerces2 who 
> crashes

Ok, I was able to reproduce your problem, and now I remember my 
solution. Use Blackdown's 1.4.1

Jesse Stockall - jesse@cryptocard.com
CRYPTOCard Corp.


Re: ANT crashes - IllegalAccessError

Posted by Jan Obdrzalek <J....@sms.ed.ac.uk>.
> >> I've had this problem as well, do you have both xerces 1 and xerces 2
> >> in your classpath? Are you using the debs of Ant and libxerces-java?
> >
> > Yes, both xerces 1 (version 1.4.4) and xerces 2 (2.3.0) are in my
> > classpath.
> > Except for j2adk, which is from Sun's own package, all the
> > programs/files come
> > from the most recent debian/testing DEBs.
>
> Remove libxerces-java or at least remove the simlink in /usr/share/ant
> that points to /usr/share/java/xerces.jar

This does not solve the problwm. Anyway, there is no link to
/usr/share/java/xerces.jar in /usr/share/ant/lib. It is xerces2 who crashes
...

			Jan

-------------------------------------------------------------------------
  Jan Obdrzalek                                J.Obdrzalek@sms.ed.ac.uk
  PhD student at LFCS, University of Edinburgh
  http://www.dcs.ed.ac.uk/home/s0128832         phone: +44-131-650 6015
-------------------------------------------------------------------------


Re: ANT crashes - IllegalAccessError

Posted by Jesse Stockall <je...@cryptocard.com>.
On Friday, March 7, 2003, at 07:08  AM, Jan Obdrzalek wrote:

> On Fri, 7 Mar 2003, Jesse Stockall wrote:
>
>> On Friday, March 7, 2003, at 06:28  AM, Jan Obdrzalek wrote:
>>> Sorry, forgotten to add this:
>>>
>>> j2sdk 1.4.1 (so should be fairly standard :-( )
>>>
>>
>> I've had this problem as well, do you have both xerces 1 and xerces 2
>> in your classpath? Are you using the debs of Ant and libxerces-java?
>
> Yes, both xerces 1 (version 1.4.4) and xerces 2 (2.3.0) are in my 
> classpath.
> Except for j2adk, which is from Sun's own package, all the 
> programs/files come
> from the most recent debian/testing DEBs.

Remove libxerces-java or at least remove the simlink in /usr/share/ant 
that points to /usr/share/java/xerces.jar

Jesse Stockall - jesse@cryptocard.com
CRYPTOCard Corp.


Re: ANT crashes - IllegalAccessError

Posted by Jan Obdrzalek <J....@sms.ed.ac.uk>.
On Fri, 7 Mar 2003, Jesse Stockall wrote:

> On Friday, March 7, 2003, at 06:28  AM, Jan Obdrzalek wrote:
> > Sorry, forgotten to add this:
> >
> > j2sdk 1.4.1 (so should be fairly standard :-( )
> >
>
> I've had this problem as well, do you have both xerces 1 and xerces 2
> in your classpath? Are you using the debs of Ant and libxerces-java?

Yes, both xerces 1 (version 1.4.4) and xerces 2 (2.3.0) are in my classpath.
Except for j2adk, which is from Sun's own package, all the programs/files come
from the most recent debian/testing DEBs.

			Best regards,
					Jan

-------------------------------------------------------------------------
  Jan Obdrzalek                                J.Obdrzalek@sms.ed.ac.uk
  PhD student at LFCS, University of Edinburgh
  http://www.dcs.ed.ac.uk/home/s0128832         phone: +44-131-650 6015
-------------------------------------------------------------------------


Re: ANT crashes - IllegalAccessError

Posted by Jesse Stockall <je...@cryptocard.com>.
On Friday, March 7, 2003, at 06:28  AM, Jan Obdrzalek wrote:
> Sorry, forgotten to add this:
>
> j2sdk 1.4.1 (so should be fairly standard :-( )
>

I've had this problem as well, do you have both xerces 1 and xerces 2 
in your classpath? Are you using the debs of Ant and libxerces-java?

Jesse Stockall - jesse@cryptocard.com
CRYPTOCard Corp.