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

    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 '{"http://java.sun.com/xml/ns/javaee":description, "http://java.sun.com/xml/ns/javaee":display-name, "http://java.sun.com/xml/ns/javaee":icon, "http://
    java.sun.com/xml/ns/javaee":distributable, "http://java.sun.com/xml/ns/javaee":context-param, "http://java.sun.com/xml/ns/javaee":filter, "http://java.sun.com/xml/ns/javaee":filter-mapping, "http://java.sun.com/xml/ns/javaee":listener, "http://
    java.sun.com/xml/ns/javaee":servlet, "http://java.sun.com/xml/ns/javaee":servlet-mapping, "http://java.sun.com/xml/ns/javaee":session-config, "http://java.sun.com/xml/ns/javaee":mime-mapping, "http://java.sun.com/xml/ns/javaee":welcome-file-list,
    "http://java.sun.com/xml/ns/javaee":error-page, "http://java.sun.com/xml/ns/javaee":jsp-config, "http://java.sun.com/xml/ns/javaee":security-constraint, "http://java.sun.com/xml/ns/javaee":login-config, "http://java.sun.com/xml/ns/javaee":security-
    role, "http://java.sun.com/xml/ns/javaee":env-entry, "http://java.sun.com/xml/ns/javaee":ejb-ref, "http://java.sun.com/xml/ns/javaee":ejb-local-ref, "http://java.sun.com/xml/ns/javaee":service-ref, "http://java.sun.com/xml/ns/javaee":resource-ref,
    "http://java.sun.com/xml/ns/javaee":resource-env-ref, "http://java.sun.com/xml/ns/javaee":message-destination-ref, "http://java.sun.com/xml/ns/javaee":persistence-context-ref, "http://java.sun.com/xml/ns/javaee":persistence-unit-ref, "http://
    java.sun.com/xml/ns/javaee":post-construct, "http://java.sun.com/xml/ns/javaee":pre-destroy, "http://java.sun.com/xml/ns/javaee":message-destination, "http://java.sun.com/xml/ns/javaee":locale-encoding-mapping-list}' is expected.

    How to rectify this.can any one help me.

    Thanks in advance.

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

    Default

    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="http://java.sun.com/xml/ns/javaee"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
        <display-name>...
    - 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, 09: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
  •