javax.xml.transform.TransformerFactoryConfigurationError: Provider org.apache.xalan.processor.TransformerFactoryImpl not found

SpringSource Issue Tracker | Andreas Nyberg | 6 years ago
  1. 0

    h3. What steps will reproduce the problem? # Copy from sts-2.6.1.RELEASE/plugins (or any original location) to JRE/lib/ext: #* org.apache.xerces*.jar #* org.apache.xalan*.jar #* org.apache.xml.serializer*.jar #* org.apache.xml.resolver.jar (probably not involved) # Preferences/Spring/Bean Support/Namespaces: Disable both options for loading from classpath # Build some big project with Spring natures (even without any Spring validation) h3. Initial analysis I believe that STS should either be affected by this at all, since it should provide and configure any JAXP implementations itself by declaring the appropriate dependencies in the plugins. As pointed out in another case, *STS does not pick up JAXP implementations consistently from the right place.* This results in the poor performance as the implementations bundled with JRE (com.sun.org.apache.*) are picked up instead those that play well with the rest of the IDE, and these very naively load schemas repeatedly over the web or the classpath without caching them. The result below is exceptional in that it show that JAXP {code}javax.xml.transform.TransformerFactory{code} (in the original JRE) actually determines the implementation {code}org.apache.xalan.processor.TransformerFactoryImpl{code} (from looking at META-INF/services of the xalan jar), but the component that in the end tried to instantiate it doesn't see it on the classpath. *The obvious conclusion is that the dependency to at least xalan is missing for this plugin*, and on top of that, it doesn't see it on the platform classpath either. At the same time, all other JAXP factories are correctly redirected to use the added implementation, so there is also significant inconsistency. h3. Error details Date: Fri May 27 10:02:46 BST 2011 Message: Error occured processing '/JobSpacePU/src/META-INF/spring/pu.xml' Severity: Info Product: SpringSource Tool Suite 2.6.1.201105091000-RELEASE (com.springsource.sts.ide) Plugin: org.springframework.ide.eclipse.beans.core Session Data: eclipse.buildId=2.6.1.201105041000-RELEASE java.version=1.6.0_23 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_GB Framework arguments: -product com.springsource.sts.ide Command-line arguments: -os win32 -ws win32 -arch x86 -product com.springsource.sts.ide Exception Stack Trace: {noformat} javax.xml.transform.TransformerFactoryConfigurationError: Provider org.apache.xalan.processor.TransformerFactoryImpl not found at javax.xml.transform.TransformerFactory.newInstance(Unknown Source) at org.eclipse.wst.xml.core.internal.catalog.CatalogWriter.serialize(CatalogWriter.java:321) at org.eclipse.wst.xml.core.internal.catalog.CatalogWriter.write(CatalogWriter.java:55) at org.eclipse.wst.xml.core.internal.catalog.Catalog$CatalogLS.save(Catalog.java:54) at org.eclipse.wst.xml.core.internal.catalog.Catalog$DefaultCatalogLS.load(Catalog.java:81) at org.eclipse.wst.xml.core.internal.catalog.Catalog.load(Catalog.java:648) at org.eclipse.wst.xml.core.internal.catalog.CatalogSet.lookupOrCreateCatalog(CatalogSet.java:41) at org.eclipse.wst.xml.core.internal.XMLCorePlugin.getDefaultXMLCatalog(XMLCorePlugin.java:77) at org.springframework.ide.eclipse.beans.core.internal.model.namespaces.XmlCatalogDelegatingEntityResolver.resolveEntityViaXmlCatalog(XmlCatalogDelegatingEntityResolver.java:90) at org.springframework.ide.eclipse.beans.core.internal.model.namespaces.XmlCatalogDelegatingEntityResolver.resolveEntity(XmlCatalogDelegatingEntityResolver.java:62) at org.apache.xerces.util.EntityResolverWrapper.resolveEntity(Unknown Source) at org.apache.xerces.impl.XMLEntityManager.resolveEntity(Unknown Source) at org.apache.xerces.impl.xs.XMLSchemaLoader.resolveDocument(Unknown Source) at org.apache.xerces.impl.xs.XMLSchemaValidator.findSchemaGrammar(Unknown Source) at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown Source) at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.DOMParser.parse(Unknown Source) at org.springframework.ide.eclipse.core.io.xml.XercesDocumentLoader.loadDocument(XercesDocumentLoader.java:48) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:388) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334) at org.springframework.ide.eclipse.beans.core.internal.model.BeansConfig$2.loadBeanDefinitions(BeansConfig.java:375) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302) at org.springframework.ide.eclipse.beans.core.internal.model.BeansConfig$3.call(BeansConfig.java:421) at org.springframework.ide.eclipse.beans.core.internal.model.BeansConfig$3.call(BeansConfig.java:1) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) {noformat}

    SpringSource Issue Tracker | 6 years ago | Andreas Nyberg
    javax.xml.transform.TransformerFactoryConfigurationError: Provider org.apache.xalan.processor.TransformerFactoryImpl not found
  2. 0

    h3. What steps will reproduce the problem? # Copy from sts-2.6.1.RELEASE/plugins (or any original location) to JRE/lib/ext: #* org.apache.xerces*.jar #* org.apache.xalan*.jar #* org.apache.xml.serializer*.jar #* org.apache.xml.resolver.jar (probably not involved) # Preferences/Spring/Bean Support/Namespaces: Disable both options for loading from classpath # Build some big project with Spring natures (even without any Spring validation) h3. Initial analysis I believe that STS should either be affected by this at all, since it should provide and configure any JAXP implementations itself by declaring the appropriate dependencies in the plugins. As pointed out in another case, *STS does not pick up JAXP implementations consistently from the right place.* This results in the poor performance as the implementations bundled with JRE (com.sun.org.apache.*) are picked up instead those that play well with the rest of the IDE, and these very naively load schemas repeatedly over the web or the classpath without caching them. The result below is exceptional in that it show that JAXP {code}javax.xml.transform.TransformerFactory{code} (in the original JRE) actually determines the implementation {code}org.apache.xalan.processor.TransformerFactoryImpl{code} (from looking at META-INF/services of the xalan jar), but the component that in the end tried to instantiate it doesn't see it on the classpath. *The obvious conclusion is that the dependency to at least xalan is missing for this plugin*, and on top of that, it doesn't see it on the platform classpath either. At the same time, all other JAXP factories are correctly redirected to use the added implementation, so there is also significant inconsistency. h3. Error details Date: Fri May 27 10:02:46 BST 2011 Message: Error occured processing '/JobSpacePU/src/META-INF/spring/pu.xml' Severity: Info Product: SpringSource Tool Suite 2.6.1.201105091000-RELEASE (com.springsource.sts.ide) Plugin: org.springframework.ide.eclipse.beans.core Session Data: eclipse.buildId=2.6.1.201105041000-RELEASE java.version=1.6.0_23 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_GB Framework arguments: -product com.springsource.sts.ide Command-line arguments: -os win32 -ws win32 -arch x86 -product com.springsource.sts.ide Exception Stack Trace: {noformat} javax.xml.transform.TransformerFactoryConfigurationError: Provider org.apache.xalan.processor.TransformerFactoryImpl not found at javax.xml.transform.TransformerFactory.newInstance(Unknown Source) at org.eclipse.wst.xml.core.internal.catalog.CatalogWriter.serialize(CatalogWriter.java:321) at org.eclipse.wst.xml.core.internal.catalog.CatalogWriter.write(CatalogWriter.java:55) at org.eclipse.wst.xml.core.internal.catalog.Catalog$CatalogLS.save(Catalog.java:54) at org.eclipse.wst.xml.core.internal.catalog.Catalog$DefaultCatalogLS.load(Catalog.java:81) at org.eclipse.wst.xml.core.internal.catalog.Catalog.load(Catalog.java:648) at org.eclipse.wst.xml.core.internal.catalog.CatalogSet.lookupOrCreateCatalog(CatalogSet.java:41) at org.eclipse.wst.xml.core.internal.XMLCorePlugin.getDefaultXMLCatalog(XMLCorePlugin.java:77) at org.springframework.ide.eclipse.beans.core.internal.model.namespaces.XmlCatalogDelegatingEntityResolver.resolveEntityViaXmlCatalog(XmlCatalogDelegatingEntityResolver.java:90) at org.springframework.ide.eclipse.beans.core.internal.model.namespaces.XmlCatalogDelegatingEntityResolver.resolveEntity(XmlCatalogDelegatingEntityResolver.java:62) at org.apache.xerces.util.EntityResolverWrapper.resolveEntity(Unknown Source) at org.apache.xerces.impl.XMLEntityManager.resolveEntity(Unknown Source) at org.apache.xerces.impl.xs.XMLSchemaLoader.resolveDocument(Unknown Source) at org.apache.xerces.impl.xs.XMLSchemaValidator.findSchemaGrammar(Unknown Source) at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown Source) at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.DOMParser.parse(Unknown Source) at org.springframework.ide.eclipse.core.io.xml.XercesDocumentLoader.loadDocument(XercesDocumentLoader.java:48) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:388) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334) at org.springframework.ide.eclipse.beans.core.internal.model.BeansConfig$2.loadBeanDefinitions(BeansConfig.java:375) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302) at org.springframework.ide.eclipse.beans.core.internal.model.BeansConfig$3.call(BeansConfig.java:421) at org.springframework.ide.eclipse.beans.core.internal.model.BeansConfig$3.call(BeansConfig.java:1) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) {noformat}

    SpringSource Issue Tracker | 6 years ago | Andreas Nyberg
    javax.xml.transform.TransformerFactoryConfigurationError: Provider org.apache.xalan.processor.TransformerFactoryImpl not found
  3. 0

    JAXP XSLT transformer using wrong implementation by default

    Stack Overflow | 4 years ago | Jonathan
    javax.xml.transform.TransformerFactoryConfigurationError: Provider org.apache.xalan.processor.TransformerFactoryImpl not found
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Google App Engine + SOAPConnection error

    Stack Overflow | 4 years ago | Jimmy
    javax.xml.transform.TransformerFactoryConfigurationError: Provider org.apache.xalan.processor.TransformerFactoryImpl not found
  6. 0

    javax.xml.transform.TransformerFactoryConfigurationError: Provider org.apache.xalan.processor.Transf

    verydemo.com | 1 year ago
    java.lang.IllegalStateException: Failed to load ApplicationContext

    2 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. javax.xml.transform.TransformerFactoryConfigurationError

      Provider org.apache.xalan.processor.TransformerFactoryImpl not found

      at javax.xml.transform.TransformerFactory.newInstance()
    2. Java RT
      TransformerFactory.newInstance
      1. javax.xml.transform.TransformerFactory.newInstance(Unknown Source)
      1 frame
    3. Structured Source XML Model
      XMLCorePlugin.getDefaultXMLCatalog
      1. org.eclipse.wst.xml.core.internal.catalog.CatalogWriter.serialize(CatalogWriter.java:321)
      2. org.eclipse.wst.xml.core.internal.catalog.CatalogWriter.write(CatalogWriter.java:55)
      3. org.eclipse.wst.xml.core.internal.catalog.Catalog$CatalogLS.save(Catalog.java:54)
      4. org.eclipse.wst.xml.core.internal.catalog.Catalog$DefaultCatalogLS.load(Catalog.java:81)
      5. org.eclipse.wst.xml.core.internal.catalog.Catalog.load(Catalog.java:648)
      6. org.eclipse.wst.xml.core.internal.catalog.CatalogSet.lookupOrCreateCatalog(CatalogSet.java:41)
      7. org.eclipse.wst.xml.core.internal.XMLCorePlugin.getDefaultXMLCatalog(XMLCorePlugin.java:77)
      7 frames
    4. org.springframework.ide
      XmlCatalogDelegatingEntityResolver.resolveEntity
      1. org.springframework.ide.eclipse.beans.core.internal.model.namespaces.XmlCatalogDelegatingEntityResolver.resolveEntityViaXmlCatalog(XmlCatalogDelegatingEntityResolver.java:90)
      2. org.springframework.ide.eclipse.beans.core.internal.model.namespaces.XmlCatalogDelegatingEntityResolver.resolveEntity(XmlCatalogDelegatingEntityResolver.java:62)
      2 frames
    5. Xerces2-j
      DOMParser.parse
      1. org.apache.xerces.util.EntityResolverWrapper.resolveEntity(Unknown Source)
      2. org.apache.xerces.impl.XMLEntityManager.resolveEntity(Unknown Source)
      3. org.apache.xerces.impl.xs.XMLSchemaLoader.resolveDocument(Unknown Source)
      4. org.apache.xerces.impl.xs.XMLSchemaValidator.findSchemaGrammar(Unknown Source)
      5. org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown Source)
      6. org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown Source)
      7. org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
      8. org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown Source)
      9. org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
      10. org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
      11. org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
      12. org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
      13. org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
      14. org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
      14 frames
    6. org.springframework.ide
      XercesDocumentLoader.loadDocument
      1. org.springframework.ide.eclipse.core.io.xml.XercesDocumentLoader.loadDocument(XercesDocumentLoader.java:48)
      1 frame
    7. Spring Beans
      XmlBeanDefinitionReader.loadBeanDefinitions
      1. org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:388)
      2. org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)
      2 frames
    8. org.springframework.ide
      BeansConfig$2.loadBeanDefinitions
      1. org.springframework.ide.eclipse.beans.core.internal.model.BeansConfig$2.loadBeanDefinitions(BeansConfig.java:375)
      1 frame
    9. Spring Beans
      XmlBeanDefinitionReader.loadBeanDefinitions
      1. org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)
      1 frame
    10. org.springframework.ide
      BeansConfig$3.call
      1. org.springframework.ide.eclipse.beans.core.internal.model.BeansConfig$3.call(BeansConfig.java:421)
      2. org.springframework.ide.eclipse.beans.core.internal.model.BeansConfig$3.call(BeansConfig.java:1)
      2 frames
    11. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
      2. java.util.concurrent.FutureTask.run(Unknown Source)
      3. java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
      4. java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
      5. java.util.concurrent.FutureTask.run(Unknown Source)
      6. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
      7. java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      8. java.lang.Thread.run(Unknown Source)
      8 frames