Results 1 to 2 of 2
  1. #1
    redforce.bala is offline Member
    Join Date
    Sep 2010
    Rep Power

    Default jsp-property-group error in web.xml

    Hi all

    This is the first time i am using the JSTL.In web.xml i am using <jsp-property-group> tag but it is showing error like this.

    cvc-complex-type.2.4.a: Invalid content was found starting with element 'jsp-property-group'. One of '{"":description, "":display-name, "":icon, "http://":distributable, "":context-param, "":filter, "":filter-mapping, "":listener, "http://":servlet, "":servlet-mapping, "":session-config, "":mime-mapping, "":welcome-file-list,
    "":error-page, "":jsp-config, "":security-constraint, "":login-config, "":security-
    role, "":env-entry, "":ejb-ref, "":ejb-local-ref, "":service-ref, "":resource-ref,
    "":resource-env-ref, "":message-destination-ref, "":persistence-context-ref, "":persistence-unit-ref, "http://":post-construct, "":pre-destroy, "":message-destination, "":locale-encoding-mapping-list}' is expected.

    How to rectify this.can any one help me.

    Thanks in advance.

  2. #2
    FON is offline Senior Member
    Join Date
    Dec 2009
    Belgrade, Serbia
    Rep Power


    To create valid web.xml you must make sure that it conforms to some xml SCHEMA.

    Do this:
    - take a look at this part of your web.xml:

    Java Code:
    <web-app id="WebApp_ID" version="2.5"
        xmlns:xsi="" xsi:schemaLocation="">
    - pay attention on schemaLocation
    - use broswer to go that URL
    - view src of that file and save it as some *.xsd (web-app_2_5.xsd) file
    - place *.xsd in your workspace
    - now create XML file (your web.xml) using this *.xsd,
    there are wizards in your IDE for this
    - you will get clean web.xml file
    - now you are aware of schema that you must conform to. Try editing your web.xml and you will get errors that will remind you of this

    - after all this you will now STRUCTURE of web.xml and what tag can be placed in what place. Reconstruct your web.xml until you reach place with your existing error.
    Then you will make it work easily

    good luck!

Similar Threads

  1. First Group Project!!!!!!!!
    By Zosden in forum Advanced Java
    Replies: 28
    Last Post: 11-02-2010, 10:30 AM
  2. Replies: 0
    Last Post: 06-25-2009, 05:28 AM
  3. Group Projects
    By Zosden in forum Advanced Java
    Replies: 11
    Last Post: 06-03-2008, 03:47 AM
  4. New To The Group
    By javarishi in forum Introductions
    Replies: 5
    Last Post: 04-10-2008, 04:34 AM

Tags for this Thread

Posting Permissions

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