Discussion:
[jboss-user] [JBoss Tools] - javax.xml.parsers.FactoryConfigurationError: Provider __redirected.__DocumentBuilderFactory not found
Juergen Zimmermann
2013-05-30 15:43:36 UTC
Permalink
Juergen Zimmermann [https://community.jboss.org/people/Juergen.Zimmermann] created the discussion

"javax.xml.parsers.FactoryConfigurationError: Provider __redirected.__DocumentBuilderFactory not found"

To view the discussion, visit: https://community.jboss.org/message/820446#820446

--------------------------------------------------------------
I just tried Eclipse Kepler RC1 and JBoss Tools from http://download.jboss.org/jbosstools/builds/development/4.1.0.Beta1b.core/2013-05-29_02-05-21-B272/all/jbosstools-build-sites.aggregate.site_41-Update-2013-05-29_02-05-21-B272.zip http://download.jboss.org/jbosstools/builds/development/4.1.0.Beta1b.core/2013-05-29_02-05-21-B272/all/jbosstools-build-sites.aggregate.site_41-Update-2013-05-29_02-05-21-B272.zip . However, after doing a "Maven > Update Project", then I'm getting this stacktrace followed by a broken workspace. Broken means that when I restart Eclipse to use this workspace, then it crashes.

!ENTRY org.eclipse.core.jobs 4 2 2013-05-30 17:33:24.997
!MESSAGE An internal error occurred during: "Updating Maven Project".
!STACK 0
javax.xml.parsers.FactoryConfigurationError: Provider __redirected.__DocumentBuilderFactory not found
at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:127)
at org.eclipse.jdt.internal.core.JavaProject.decodeClasspath(JavaProject.java:912)
at org.eclipse.jdt.internal.core.JavaProject.readFileEntriesWithException(JavaProject.java:2497)
at org.eclipse.jdt.internal.core.JavaModelManager$PerProjectInfo.readAndCacheClasspath(JavaModelManager.java:1256)
at org.eclipse.jdt.internal.core.DeltaProcessor.readRawClasspath(DeltaProcessor.java:556)
at org.eclipse.jdt.internal.core.DeltaProcessor.checkProjectsAndClasspathChanges(DeltaProcessor.java:522)
at org.eclipse.jdt.internal.core.DeltaProcessor.checkProjectsAndClasspathChanges(DeltaProcessor.java:536)
at org.eclipse.jdt.internal.core.DeltaProcessor.checkProjectsAndClasspathChanges(DeltaProcessor.java:536)
at org.eclipse.jdt.internal.core.DeltaProcessor.resourceChanged(DeltaProcessor.java:2037)
at org.eclipse.jdt.internal.core.DeltaProcessingState.resourceChanged(DeltaProcessingState.java:470)
at org.eclipse.core.internal.events.NotificationManager$1.run(NotificationManager.java:291)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager.java:285)
at org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:149)
at org.eclipse.core.internal.resources.Workspace.broadcastPostChange(Workspace.java:396)
at org.eclipse.core.internal.resources.Workspace.endOperation(Workspace.java:1531)
at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:45)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
Caused by: java.lang.ClassNotFoundException: __redirected/__DocumentBuilderFactory
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:266)
at javax.xml.parsers.FactoryFinder.getProviderClass(FactoryFinder.java:123)
at javax.xml.parsers.FactoryFinder.newInstance(FactoryFinder.java:178)
at javax.xml.parsers.FactoryFinder.newInstance(FactoryFinder.java:147)
at javax.xml.parsers.FactoryFinder.find(FactoryFinder.java:219)
at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:121)
... 17 more
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/820446#820446]

Start a new discussion in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2128]
Max Rydahl Andersen
2013-05-30 21:15:38 UTC
Permalink
Max Rydahl Andersen [https://community.jboss.org/people/maxandersen] created the discussion

"Re: javax.xml.parsers.FactoryConfigurationError: Provider __redirected.__DocumentBuilderFactory not found"

To view the discussion, visit: https://community.jboss.org/message/820516#820516

--------------------------------------------------------------
Yikes - better if you open a jira with details.

When you do please provide zip from Help > Report a problem - then we can get answers to what plugins you got installed.

Any chance you have Forge 2 plugins installed for example ? I could imagine this error happening if there was a bug in that.

In any case jira with as much info as possible that would be great!
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/820516#820516]

Start a new discussion in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2128]
George Gastaldi
2013-05-30 22:52:44 UTC
Permalink
George Gastaldi [https://community.jboss.org/people/gastaldi] created the discussion

"Re: javax.xml.parsers.FactoryConfigurationError: Provider __redirected.__DocumentBuilderFactory not found"

To view the discussion, visit: https://community.jboss.org/message/820538#820538

--------------------------------------------------------------
Probably https://issues.jboss.org/browse/MODULES-136 https://issues.jboss.org/browse/MODULES-136 describes better what's going on.
We have fixed this by forking JBM.
It should not happen in the latest available Forge version 2.0.0.Alpha4
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/820538#820538]

Start a new discussion in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2128]
Lincoln Baxter III
2013-05-30 23:57:04 UTC
Permalink
Lincoln Baxter III [https://community.jboss.org/people/lincolnthree] created the discussion

"Re: javax.xml.parsers.FactoryConfigurationError: Provider __redirected.__DocumentBuilderFactory not found"

To view the discussion, visit: https://community.jboss.org/message/820543#820543

--------------------------------------------------------------
Which version of Forge 2 is included in the version of JBoss Tools exhibiting the problem?
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/820543#820543]

Start a new discussion in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2128]
Max Rydahl Andersen
2013-05-31 12:05:03 UTC
Permalink
Max Rydahl Andersen [https://community.jboss.org/people/maxandersen] created the discussion

"Re: javax.xml.parsers.FactoryConfigurationError: Provider __redirected.__DocumentBuilderFactory not found"

To view the discussion, visit: https://community.jboss.org/message/820660#820660

--------------------------------------------------------------
it is Forge 2.0.0.Alpha4 that is included in beta1

Juergen - any chance you got annotation processors enabled in your pom that uses jboss modules/logging ? (looking for possible external issues)
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/820660#820660]

Start a new discussion in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2128]
Juergen Zimmermann
2013-06-01 16:34:04 UTC
Permalink
Juergen Zimmermann [https://community.jboss.org/people/Juergen.Zimmermann] created the discussion

"Re: javax.xml.parsers.FactoryConfigurationError: Provider __redirected.__DocumentBuilderFactory not found"

To view the discussion, visit: https://community.jboss.org/message/820817#820817

--------------------------------------------------------------
I opened https://issues.jboss.org/browse/JBIDE-14720 https://issues.jboss.org/browse/JBIDE-14720

Simple setup: Kepler RC2 package for Java EE, JBoss Tools from http://download.jboss.org/jbosstools/builds/development/4.1.0.Beta1b.core/2013-05-29_02-05-21-B272/all/jbosstools-build-sites.aggregate.site_41-Update-2013-05-29_02-05-21-B272.zip http://download.jboss.org/jbosstools/builds/development/4.1.0.Beta1b.core/2013-05-29_02-05-21-B272/all/jbosstools-build-sites.aggregate.site_41-Update-2013-05-29_02-05-21-B272.zip, wizard for "Java EE web project" for JBossAS 7.1, and finally NOT ANY PROJECT FACET is set.

I guess this is the cause of all the trouble, and should be fixed. When I try to set project facets manually, edit the pom.xml, insert DDs (web.xml, beans.xml, ...) then I'm running in the problem mentioned above.

--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/820817#820817]

Start a new discussion in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2128]
George Gastaldi
2013-06-01 23:56:58 UTC
Permalink
George Gastaldi [https://community.jboss.org/people/gastaldi] created the discussion

"Re: javax.xml.parsers.FactoryConfigurationError: Provider __redirected.__DocumentBuilderFactory not found"

To view the discussion, visit: https://community.jboss.org/message/820825#820825

--------------------------------------------------------------
For the record, this ZIP file already contains Forge 2.0.0.Alpha4. 
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/820825#820825]

Start a new discussion in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2128]
Max Rydahl Andersen
2013-06-04 06:52:59 UTC
Permalink
Max Rydahl Andersen [https://community.jboss.org/people/maxandersen] created the discussion

"Re: javax.xml.parsers.FactoryConfigurationError: Provider __redirected.__DocumentBuilderFactory not found"

To view the discussion, visit: https://community.jboss.org/message/821154#821154

--------------------------------------------------------------
Juergen, JBIDE-14720 does not seem to be releated to this issue of xmldocumentfactory - that seem to be a very different bug.

would love the steps you do after this... ?
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/821154#821154]

Start a new discussion in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2128]
Juergen Zimmermann
2013-06-04 15:21:24 UTC
Permalink
Juergen Zimmermann [https://community.jboss.org/people/Juergen.Zimmermann] created the discussion

"Re: javax.xml.parsers.FactoryConfigurationError: Provider __redirected.__DocumentBuilderFactory not found"

To view the discussion, visit: https://community.jboss.org/message/821319#821319

--------------------------------------------------------------
Upgrading to the latest m2e-wtp definitely was the solution, also for this thread:

* I had a project without any project facets (due to m2e-wtp which didn't have the latest version)
* Then I tried to activate several project facets (Java, Web, JAX-RS, JPA, JSF, ...) manually -- this was obviously not a good idea...
* Afterwards the Eclipse workspace was unusable and caused a crash when I wanted to restart Eclipse.

Looks like m2e-wtp (or m2e ?) is a pretty sensitive plugin.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/821319#821319]

Start a new discussion in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2128]
Max Rydahl Andersen
2013-06-04 22:07:12 UTC
Permalink
Max Rydahl Andersen [https://community.jboss.org/people/maxandersen] created the discussion

"Re: javax.xml.parsers.FactoryConfigurationError: Provider __redirected.__DocumentBuilderFactory not found"

To view the discussion, visit: https://community.jboss.org/message/821397#821397

--------------------------------------------------------------
m2e-wtp got caught in a last minute API change Kepler M7 introduced - that caused the ORM facet error. Thats kinda expected to happen using Milestone builds - things can go bad.

What worries me though is how any of these errors should cause the __redirected.__DocumentBuilderFactory noy found error.

*THAT*'s just wrong and something if you see again do let us know ASAP since that is just not supposed to happen...at all :)
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/821397#821397]

Start a new discussion in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2128]
Loading...