Results 1 to 5 of 5

Thread: Upon Roo Removal in STS: Unexpected exception parsing XML error in webmvc-config.xml

Hybrid View

  1. #1
    Join Date
    Oct 2008
    Posts
    286

    Exclamation Upon Roo Removal in STS: Unexpected exception parsing XML error in webmvc-config.xml

    Can't found the JIRA for STS, please allow me to post here thsi issue..

    Steps to Reproduce:
    1) downloaded and successfully extracted the springsource-tool-suite-2.3.0.RELEASE-e3.5.1-win32.zip

    2) successfully executed the sts.exe and use the Roo based on the 1.5. First Steps: Your Own Web App in Under 10 Minutes

    3) confirmed the Selenium Test in my http://localhost:8080/tenminutes..

    from here trying to remove the Roo based on the Chapter 6. Removing Roo

    4) successfully executed the following:
    4.1) 6.3.1. Step 1: Push-In Refactor
    4.2) 6.3.2. Step 2: Annotation Source Code Removal (twice because some Roo Annotations left)

    BUT... when I remove the Roo dependency from pom.xml (6.3.3. Step 3: Annotation JAR Removal)...

    Unexpected exception parsing XML document from file [C:/workspace-sts-2.3.0.RELEASE/ten-minutes/src/main/webapp/WEB-INF/spring/webmvc-config.xml]; nested exception is org.springframework.beans.factory.NoSuchBeanDefini tionException: No bean named 'org.springframework.web.servlet.handler.SimpleUrl HandlerMapping#ten-minutes#src/main/webapp/WEB-INF/spring/webmvc-config.xml#20' is defined

    please refer to the attached screenshot of my STS..

    look at webmvc-config.xml, has no any errors indicated instead 3 warnings on the right side near by horizontal scroll bar..
    STSbug2.jpg

    pom.xml screenshot, svn diff of Roo jar removal...
    STSbug.jpg

    *in markers area, please focus only on the red box and ignore the other errors (its unrelated errors)
    Last edited by eros; Feb 21st, 2010 at 11:44 AM.
    Eros

    Environment:
    JSP 2.0
    Dojo 1.4.1
    Ext JS 3.1 (testing)
    Spring MVC 2.5.6.SEC01 (planning to Spring 3 using STS)
    STS
    SWF 2.0.9.RELEASE
    Tiles 2.0.5
    iBatis: ibatis-sqlmap-2.3.4.726

  2. #2
    Join Date
    Oct 2008
    Posts
    286

    Default

    maybe its webmvc schema problem...??

    ahmm really don't understand why that error appears...

    Please guide me on... thanks a lot
    Eros

    Environment:
    JSP 2.0
    Dojo 1.4.1
    Ext JS 3.1 (testing)
    Spring MVC 2.5.6.SEC01 (planning to Spring 3 using STS)
    STS
    SWF 2.0.9.RELEASE
    Tiles 2.0.5
    iBatis: ibatis-sqlmap-2.3.4.726

  3. #3
    Join Date
    Oct 2008
    Posts
    286

    Default

    ahmm it seems need to add handlermapping upon Roo removal?? but its not written in the Roo's docs... so thinkin' missed somewhere...
    Eros

    Environment:
    JSP 2.0
    Dojo 1.4.1
    Ext JS 3.1 (testing)
    Spring MVC 2.5.6.SEC01 (planning to Spring 3 using STS)
    STS
    SWF 2.0.9.RELEASE
    Tiles 2.0.5
    iBatis: ibatis-sqlmap-2.3.4.726

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

    Default

    eros,

    you are hitting a bug in Spring Framework which only occurs when running Spring inside STS to parse the XML. This error message has no runtime impact and you can safely ignore it.

    This has been fixed in Spring 3.0.1 which will be included in STS 2.3.1. Again, this is not a problem of your project or app but rather an issue with the namespace support inside STS. Your app runs fine even though you see this error in STS.

    STS-810: issue with the <mvc:view-controller /> tag
    https://issuetracker.springsource.com/browse/STS-810

    HTH

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

  5. #5
    Join Date
    Oct 2008
    Posts
    286

    Default

    Quote Originally Posted by Christian Dupuis View Post
    This has been fixed in Spring 3.0.1 which will be included in STS 2.3.1.
    but cannot find the STS2.3.1 even in the STS download site..
    how can I update my STS? except building STS from the svn source..
    Eros

    Environment:
    JSP 2.0
    Dojo 1.4.1
    Ext JS 3.1 (testing)
    Spring MVC 2.5.6.SEC01 (planning to Spring 3 using STS)
    STS
    SWF 2.0.9.RELEASE
    Tiles 2.0.5
    iBatis: ibatis-sqlmap-2.3.4.726

Posting Permissions

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