• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

java web app configuration question

 
Ranch Hand
Posts: 348
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

This works fine. This is some config file used to deploy a simple web app in tomcat. I got two questions :
1. if I change it to beans:bean, I would get an error warning : The prefix "beans" for element "beans:bean" is not bound. why is this?
2. why do I need to declare the namespace again? hasn't the exact namespace been declared at the top of document?
3. If I add a child element inside "second-element" I'll get compile-time error saying "second-element is not allowed to have child elements". How does this validation work? Who did the validation? tomcat? JVM? others?
4. could anyone please let me know the simple folder structure in order for the validation to work when deploying web-app in java? I mean, inside classes folder, where should the xsd be placed and where should the xml instance be put, etc.
thanks
thanks
 
reply
    Bookmark Topic Watch Topic
  • New Topic