This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 37205 - Ant can't find SAXParserFactoryImpl
Summary: Ant can't find SAXParserFactoryImpl
Status: VERIFIED DUPLICATE of bug 35460
Alias: None
Product: projects
Classification: Unclassified
Component: Ant (show other bugs)
Version: 3.x
Hardware: All All
: P1 blocker (vote)
Assignee: issues@projects
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-13 14:52 UTC by John Jullion-ceccarelli
Modified: 2005-07-15 07:42 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
log (36.19 KB, text/plain)
2003-11-13 15:21 UTC, John Jullion-ceccarelli
Details
ant script output with -debug options on (2.15 KB, text/plain)
2003-11-13 15:22 UTC, John Jullion-ceccarelli
Details
log with javahelp switch removed (9.44 KB, text/plain)
2003-11-13 15:34 UTC, John Jullion-ceccarelli
Details
output window exception (2.14 KB, text/plain)
2003-11-13 17:06 UTC, Radko Najman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description John Jullion-ceccarelli 2003-11-13 14:52:14 UTC
In Nov 13th dev builds all attempts to execute ant
scripts fail with the following error:

XML parser factory has not been configured
correctly: Provider
org.apache.crimson.jaxp.SAXParserFactoryImpl not found
Comment 1 Jesse Glick 2003-11-13 15:13:06 UTC
Works for me (and nothing changed in the module recently). What is the
first build in which you can reproduce this?

Also run Ant with -debug (config'd in the GUI) and attach the output.

Also run the module with

-J-Dorg.apache.tools.ant.modules=0

and attach the log file.
Comment 2 John Jullion-ceccarelli 2003-11-13 15:21:56 UTC
Created attachment 12144 [details]
log
Comment 3 John Jullion-ceccarelli 2003-11-13 15:22:53 UTC
Created attachment 12145 [details]
ant script output with -debug options on
Comment 4 Jesse Glick 2003-11-13 15:26:50 UTC
Need

-J-Dorg.apache.tools.ant.modules=0

not

-J-Dorg.netbeans.modules.javahelp=0
Comment 5 John Jullion-ceccarelli 2003-11-13 15:34:46 UTC
Created attachment 12146 [details]
log with javahelp switch removed
Comment 6 John Jullion-ceccarelli 2003-11-13 16:11:28 UTC
Had Patrick test this on his WinXP box and it works fine. I have tried
another continuous build (post-win sys merge) and it doesn't work. 

I tried a build from before the windowing system merge and ant scripts
work fine there. Sorry about the unhelpful log output - I have run
several builds with the ant switch you recommended and none of them
produced different output than what's in new.ide.log.txt.
Comment 7 Jan Becicka 2003-11-13 16:34:28 UTC
I heard Radko talking about similar problems with ant. Radko?
Comment 8 Radko Najman 2003-11-13 17:05:22 UTC
Yes, that's exectly what I got today (build #200311130740, WinXP)

With -J-Dorg.apache.tools.ant.modules=0 there is nothing in log file
but when I set Verbosity Level in options to Debugging I got the
attached exception in the Output window.
Comment 9 Radko Najman 2003-11-13 17:06:23 UTC
Created attachment 12151 [details]
output window exception
Comment 10 Jesse Glick 2003-11-13 17:14:07 UTC
Well, I'll try to put in some debugging code maybe, assuming I can't
reproduce myself.
Comment 11 wstrange 2003-11-14 06:05:26 UTC
Same problem 

(Linux, redhat 9, jdk 1.4.2_02 )
Comment 12 Marek Grummich 2003-11-14 08:20:33 UTC
I can only confirm a described behaviour. I've got the same exception
like Radko at build 200311131900.
Comment 13 Marek Grummich 2003-11-14 08:26:10 UTC
*** Issue 37230 has been marked as a duplicate of this issue. ***
Comment 14 Jesse Glick 2003-11-14 11:38:11 UTC
Oops, mistyped the switch, should be

-J-Dorg.apache.tools.ant.module=0

(no final 's'). Please send me a log.
Comment 15 Jesse Glick 2003-11-14 11:44:06 UTC
Never mind, I can reproduce it with a fresh user dir (not in my normal
user dir). Will look at it.
Comment 16 Jesse Glick 2003-11-14 11:56:19 UTC
I knew this looked familiar. The bug is actually in the web/jspparser
module which illegally uses ant.jar in its classpath, but it can be
worked around in the ant module. I never saw it since I don't run with
web modules enabled normally - only occurs when that module is enabled.

*** This issue has been marked as a duplicate of 35460 ***
Comment 17 Marian Mirilovic 2005-07-15 07:42:12 UTC
closed