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 212067 - NoClassDefFoundError: Could not initialize class org.netbeans.modules.project.ant.AntBasedProjectFactorySingleton
Summary: NoClassDefFoundError: Could not initialize class org.netbeans.modules.project...
Status: NEW
Alias: None
Product: third-party
Classification: Unclassified
Component: xtt (show other bugs)
Version: 7.1
Hardware: All All
: P3 normal (vote)
Assignee: twojenski
Depends on:
Reported: 2012-05-04 09:24 UTC by karianna
Modified: 2013-02-07 13:43 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 144169

stacktrace (1.28 KB, text/plain)
2012-05-04 09:24 UTC, karianna

Note You need to log in before you can comment on or make changes to this bug.
Description karianna 2012-05-04 09:24:21 UTC
Build: NetBeans IDE 7.1.2 (Build 201204101705)
VM: Java HotSpot(TM) 64-Bit Server VM, 20.6-b01-415, Java(TM) SE Runtime Environment, 1.6.0_31-b04-415-11M3635
OS: Mac OS X

java.lang.NoClassDefFoundError: Could not initialize class org.netbeans.modules.project.ant.AntBasedProjectFactorySingleton
   at org.netbeans.modules.project.ant.ProjectLibraryProvider.getOpenAreas(
   at org.netbeans.modules.project.libraries.LibraryAccessor.getOpenAreas(
   at org.netbeans.api.project.libraries.LibraryManager.getOpenManagers(
   at org.netbeans.modules.parsing.impl.indexing.errors.Utilities.getSourceClassPathFor(
Comment 1 karianna 2012-05-04 09:24:26 UTC
Created attachment 119072 [details]
Comment 2 Jaroslav Tulach 2012-05-18 09:57:48 UTC
Looking at
one can find:

INFO [org.netbeans.modules.subversion.client.SvnClientFactory]: setup: using commandline as the client - saved in preferences
WARNING [org.netbeans.ProxyClassLoader]: Will not load class org.apache.xerces.jaxp.SAXParserFactoryImpl arbitrarily from one of ModuleCL@72d006a7[org.netbeans.libs.xerces] and ModuleCL@aede59e[org.apache.xerces_2_11_0] starting from SystemClassLoader[518 modules]; see
WARNING [org.netbeans.modules.netbinox]: Provider org.apache.xerces.jaxp.SAXParserFactoryImpl not found
javax.xml.parsers.FactoryConfigurationError: Provider org.apache.xerces.jaxp.SAXParserFactoryImpl not found
	at javax.xml.parsers.SAXParserFactory.newInstance(
	at org.eclipse.core.runtime.internal.adaptor.EclipseAdaptorHook$ParsingService.createService(
	at org.eclipse.core.runtime.internal.adaptor.EclipseAdaptorHook$ParsingService.getService(
	at org.eclipse.osgi.internal.serviceregistry.ServiceUse$
	at Method)

we should not have two modules providing Xerces in the system:
[org.netbeans.libs.xerces] and ModuleCL@aede59e[org.apache.xerces_2_11_0]
Comment 3 Jaroslav Tulach 2012-05-18 09:59:04 UTC
My guess is that the org.apache.xerces is coming from [1.4.1 1 120331] [1.5.2 2 120331]

as it has the same impl version 120331. Stop using dogmcneil debugger for now.