Bug 72409 - Classpath issues with aspectjtools.jar
Summary: Classpath issues with aspectjtools.jar
Status: RESOLVED FIXED
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: 1.2   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 1.2.1   Edit
Assignee: Adrian Colyer CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-22 22:17 EDT by Ivan Gyurdiev CLA
Modified: 2004-10-21 04:32 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Gyurdiev CLA 2004-08-22 22:17:54 EDT
I don't know what the right component is - I'm sorry if compiler is wrong.

For some reason I get this error every time I include
/opt/aspectj1.2/lib/aspectjtools.jar 
in the classpath for the java runtime. The some code
executes fine when I don't include the jar. 
aspectjrt.jar is not giving me any problems.

Any clues? Perhaps some type of conflict?
The java runtime is from Sun's JDK 1.4. 
Xerces-j is installed, and this is Fedora Core Rawhide.

Exception in thread "main" javax.xml.parsers.FactoryConfigurationError: Provider
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not found
        at
javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:99)
        at java.util.prefs.XmlSupport.load(XmlSupport.java:210)
        at java.util.prefs.XmlSupport.importMap(XmlSupport.java:318)
        at
java.util.prefs.FileSystemPreferences$8.run(FileSystemPreferences.java:561)
        at java.security.AccessController.doPrivileged(Native Method)
        at
java.util.prefs.FileSystemPreferences.loadCache(FileSystemPreferences.java:554)
        at
java.util.prefs.FileSystemPreferences.initCacheIfNecessary(FileSystemPreferences.java:537)
        at
java.util.prefs.FileSystemPreferences.getSpi(FileSystemPreferences.java:514)
        at java.util.prefs.AbstractPreferences.get(AbstractPreferences.java:270)
        at
java.util.prefs.AbstractPreferences.getBoolean(AbstractPreferences.java:481)
        at edu.cornell.cs.sam.ui.SamGUI.reorderComponents(SamGUI.java:214)
        at edu.cornell.cs.sam.ui.SamGUI.createComponents(SamGUI.java:206)
        at edu.cornell.cs.sam.ui.SamGUI.<init>(SamGUI.java:162)
        at edu.cornell.cs.sam.ui.SamGUI.startUI(SamGUI.java:1326)
        at edu.cornell.cs.sam.ui.SamUI.startSaM(SamUI.java:112)
        at edu.cornell.cs.sam.ui.SamUI.startSaM(SamUI.java:147)
        at edu.cornell.cs.sam.ui.SamGUI.main(SamGUI.java:1351)
Comment 1 Adrian Colyer CLA 2004-08-25 03:14:19 EDT
aspectjtools.jar seems to have picked up some unwanted classes during the build 
and packaging process - there are one or two javax.xml..* classes in there that 
shouldn't be. Suspect these are incompatible with the versions you have 
elsewhere on your classpath. 

This needs to be fixed in 1.2.1. I'll post to this bug report as soon as a fix 
is available from the aspectj download page.
Comment 2 Andrew Clement CLA 2004-09-07 06:51:59 EDT
I believe this bug has already been fixed in the 1.2.1 stream.  With the rebuild
of the jdt dependencies for the compiler move we have lost the rogue javax.xml
stuff that shouldn't be in there.  When the next build succeeds (which includes
a whole bunch of package renames) I'll verify that...
Comment 3 Andrew Clement CLA 2004-09-07 12:04:39 EDT
I checked and we aren't including javax.xml classes but after some further
investigation I have also removed:

org/eclipse/jface/*  
org/eclipse/text/* 
org/eclipse/osgi/* 

I have left in:

org/osgi/*
org/eclipse/core/*

fix checked in, waiting for build.
Comment 4 Andrew Clement CLA 2004-09-08 03:49:45 EDT
Fix available:

BUILD COMPLETE -  build.373
Date of build: 09/07/2004 19:06:28
Time to build: 99 minutes 10 seconds
Last changed: 09/07/2004 16:35:51
Latest good AspectJ jar available at:
download.eclipse.org/technology/ajdt/dev/aspectj-DEVELOPMENT.jar
Comment 5 Adrian Colyer CLA 2004-10-21 04:32:06 EDT
Fix released as part of AspectJ 1.2.1