Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: STS 2.6.0 Upgrade Error - Spring IDE

  1. #1
    Join Date
    Apr 2008
    Posts
    151

    Default STS 2.6.0 Upgrade Error - Spring IDE

    Spring IDE error when trying to read a 'resource.xml' file from a Grails project after upgrading from 2.5.2 to 2.6.0. Got the red marker, and it looks like some base components failed to load, no individual errors in the file.

    Code:
    org.apache.xerces.parsers.ObjectFactory$ConfigurationError: Provider org.apache.xerces.parsers.XIncludeAwareParserConfiguration could not be instantiated: org.apache.xerces.impl.dv.DVFactoryException: DTD factory class org.apache.xerces.impl.dv.dtd.DTDDVFactoryImpl does not extend from DTDDVFactory.
    at org.apache.xerces.parsers.ObjectFactory.newInstance(Unknown Source)
    at org.apache.xerces.parsers.ObjectFactory.createObject(Unknown Source)
    at org.apache.xerces.parsers.ObjectFactory.createObject(Unknown Source)
    at org.apache.xerces.parsers.DOMParser.<init>(Unknown Source)
    at org.apache.xerces.parsers.DOMParser.<init>(Unknown Source)
    at org.springframework.ide.eclipse.core.io.xml.LineNumberPreservingDOMParser.<init>(LineNumberPreservingDOMParser.java:40)
    at org.springframework.ide.eclipse.core.io.xml.XercesDocumentLoader.loadDocument(XercesDocumentLoader.java:35)
    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(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:662)

  2. #2
    Join Date
    Apr 2008
    Posts
    151

    Default

    Looks like someone else hit it too:

    https://issuetracker.springsource.co...ream-issue-tab

    Other details from my setup:

    - Batch namespace added (and later removed) from the Spring file, made no difference on the error.

    Also get:
    Plug-in com.springsource.sts.roo.ui was unable to load class com.springsource.sts.roo.ui.internal.maven.RooProj ectConfigurator.

    Plug-in com.springsource.sts.maven was unable to load class com.springsource.sts.maven.internal.core.SpringPro jectConfigurator.

    Plug-in com.springsource.sts.maven was unable to load class com.springsource.sts.maven.internal.core.DataNucle usProjectConfigurator.

    All three of those are no class def error stack traces in the Eclipse Error Log, but are otherwise not visibile to the Markers.

  3. #3
    Join Date
    Aug 2004
    Location
    Duesseldorf, Germany
    Posts
    1,210

    Default

    Hey,

    could you please attach your complete error log to the JIRA issue. This is some sort of hard to debug error.

    How did you install STS? From the distribution or through an update site.

    Christian
    Christian Dupuis
    SpringSource, a division of VMware
    Lead, SpringSource Tools Team
    http://www.springsource.com
    http://twitter.com/cdupuis

  4. #4
    Join Date
    Apr 2008
    Posts
    151

    Default

    Code:
    eclipse.buildId=2.6.0.201103161000-RELEASE
    java.version=1.6.0_24
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
    Framework arguments:  -product com.springsource.sts.ide
    Command-line arguments:  -os linux -ws gtk -arch x86 -product com.springsource.sts.ide
    
    This is a continuation of log file /home/user/ws/.metadata/.bak_0.log
    Created Time: 2011-03-19 00:10:31.871
    
    
    Info
    Sat Mar 19 12:38:52 EDT 2011
    Error occured processing '/MyProject/grails-app/conf/spring/resources.xml'
    
    org.apache.xerces.parsers.ObjectFactory$ConfigurationError: Provider org.apache.xerces.parsers.XIncludeAwareParserConfiguration could not be instantiated: org.apache.xerces.impl.dv.DVFactoryException: DTD factory class org.apache.xerces.impl.dv.dtd.DTDDVFactoryImpl does not extend from DTDDVFactory.
    	at org.apache.xerces.parsers.ObjectFactory.newInstance(Unknown Source)
    	at org.apache.xerces.parsers.ObjectFactory.createObject(Unknown Source)
    	at org.apache.xerces.parsers.ObjectFactory.createObject(Unknown Source)
    	at org.apache.xerces.parsers.DOMParser.<init>(Unknown Source)
    	at org.apache.xerces.parsers.DOMParser.<init>(Unknown Source)
    	at org.springframework.ide.eclipse.core.io.xml.LineNumberPreservingDOMParser.<init>(LineNumberPreservingDOMParser.java:40)
    	at org.springframework.ide.eclipse.core.io.xml.XercesDocumentLoader.loadDocument(XercesDocumentLoader.java:35)
    	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(FutureTask.java:303)
    	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
    	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    	at java.lang.Thread.run(Thread.java:662)

  5. #5
    Join Date
    Apr 2008
    Posts
    151

    Default

    I also only did the update site installation, though I suspect it applies to both from this ticket created:

    https://issuetracker.springsource.co...ream-issue-tab

  6. #6
    Join Date
    Sep 2005
    Location
    Webster Groves, MO
    Posts
    95

    Default

    I'm getting the same error for every one of the Spring configuration files in my web application. I've attached the error log and configuration to this post. Because of size restrictions, I broke the configuration up into two files and zipped those up. If you have any other questions about my configuration, let me know and I'll dig it up!

    BTW, I installed clean from the primary installation exe after deleting my existing 2.5.1 installation.
    Attached Files Attached Files
    Rick Herrick

  7. #7
    Join Date
    Apr 2008
    Posts
    151

    Default

    FYI, I'm running Ubuntu, Helios, JDK 1.6.0.24. STS configuration is standard STS with Trac, Groovy, Grails, Roo, Subclipse, and EGit - all installed from STS Dashboard.

    According to places this error comes from, looks like someone has an old dependency to xercesImpl. Given that this is a break over 2.5, perhaps it is related to a new package/import/dependency that got added.

  8. #8
    Join Date
    Aug 2004
    Location
    Duesseldorf, Germany
    Posts
    1,210

    Default

    Hi,

    I just published a fix for this to the STS Extension install (Open the STS Dashboard -> Extensions tab -> Select 'Patch for issue STS-1672' and click install).

    For those of you with Spring IDE only, the patch can be installed from http://dist.springsource.com/release/TOOLS/patches/e3.6.

    Let me know if you encounter any issues.

    Christian
    Christian Dupuis
    SpringSource, a division of VMware
    Lead, SpringSource Tools Team
    http://www.springsource.com
    http://twitter.com/cdupuis

  9. #9
    Join Date
    Jan 2011
    Location
    Greater Boston, MA
    Posts
    23

    Default

    Christian, Jabberz and rherrick thank you all so much for helping to find and fix this issue. I was getting this error Friday afternoon (and yesterday) and I was filled with anxiety thinking I'd fail to ship my very first web app, at my first "real job", right out of college.

    Thanks for keeping up the quality and reliability that people have come to expect from Spring and the Spring Community Forums.

  10. #10
    Join Date
    Apr 2011
    Posts
    1

    Default broken link

    Hello the link above

    http://dist.springsource.com/release/TOOLS/patches/e3.6

    gives "AccessDenied"

    thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •