Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9018323
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T04:29:48+00:00 2026-06-16T04:29:48+00:00

I am new to xml and spring. Following is spring-servlet file. I have copied

  • 0

I am new to xml and spring. Following is spring-servlet file. I have copied it from following link : spring-servlet.xml

File code is as follows :

    <?xml version="1.0" encoding="UTF-8"?>
<bean id="viewResolver" class="org.springframework.web.servlet.view.UrlBasedViewResolver">     
    <property name="viewClass">         
        <value>org.springframework.web.servlet.view.tiles2.TilesView</value>     
    </property> 
</bean>
<bean id="tilesConfigurer" class="org.springframework.web.servlet.view.tiles2.TilesConfigurer">     
    <property name="definitions">         
        <list>             
            <value>/WEB-INF/tiles.xml</value>         
        </list>     
    </property> 
</bean>

Can some one guide me what Iam doing wrong and how it can be rectified.

Thanks in advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T04:29:51+00:00Added an answer on June 16, 2026 at 4:29 am

    You don’t have a root element. Your XML looks like

    <bean>...</bean>
    <bean>...</bean>
    

    whereas I’d expect a root e.g.

    <beans>
       <bean>...</bean>
       <bean>...</bean>
    </beans>
    

    XML documents have to have a root node – a top-level node below which you can have multiple branches.

    From the linked tutorial:

    Open the spring-servlet.xml from WEB-INF folder and add following code
    between <beans> </beans> tag.

    I think that’s the bit you missed 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm new to Spring MVC and have the following situation: In WEB-INF/demoshop-servlet.xml I have
I have the following Spring code, taken from a textbook, that's returning a NotWritablePropertyException.
Sorry I'm rather new to Spring Security. I've got the following applicationContext.xml <?xml version=1.0
I am new to xml parsing. I have the following xml <myMainList> <mySubList> <edited>true</edited>
I have following file upload code: package net.viralpatel.contact.controller; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Controller;
this question is following this one . This is the new web.xml: <?xml version=1.0
I've created a new .xml file in my layout folder called log.xml . It
I'm creating a new XML File out of a table. The problem is I
still new to XML parsing with the iphone so i have a few questions.
I am new to xml and android programming.Here is my xml code... I don't

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.