Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-3823

Validation errors on axis2.xml and web.xml of axis2-web app

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.4
    • None
    • admin console
    • None
    • Ubuntu Linux
      Jdk 1.5.0.6
      Eclipse WTP 3.0

    Description

      We were using axis2-web app in eclipse wtp 3.0 regarding a jsp validation issue (https://bugs.eclipse.org/bugs/show_bug.cgi?id=186429) when we came across 2 validation failure warnings for the axis2.xml and the web.xml of the axis2-web app.

      1.
      Description Resource Path Location Type
      CHKJ3010W: Welcome Files cannot begin or end with a /. web.xml
      aa/WebContent/WEB-INF
      org.eclipse.jst.j2ee.webapplication.internal.impl.WelcomeFileImpl@1797eca
      (welcomeFile: /axis2-web/index.jsp) Validation Message

      2.
      Description Resource Path Location Type
      No grammar constraints (DTD or XML schema) detected for the document.
      axis2.xml aa/WebContent/WEB-INF/conf line 1 XML Problem

      with a little bit of checking we found that the first warning was due to the
      following tag in the web.xml
      <welcome-file>/axis2-web/index.jsp</welcome-file>
      removing the "/" in the begining removes the warning.
      i.e. having the tag instead as,
      <welcome-file>axis2-web/index.jsp</welcome-file>

      the 2nd warning could be removed by adding a dtd definition to the axis2.xml
      such as
      <!DOCTYPE axisconfig []>
      but does not know the real neccesity of such a tag to the web project.

      with the above modification the system works without any breaks. and works as usual.

      I can create and send a patch using the above mentioned solutions for the validation failures. I would like your ideas and suggestions on this regard.

      Thank you

      Attachments

        Activity

          People

            harshana05 Harshana Eranga Martin
            samindaw Saminda
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: