Page 1 of 1

Why doesn't this validate?

Posted: Thu Jul 21, 2005 3:17 am
by ychaikin
Hi,

I've been staring at this code for way too long and don't see anything wrong with it. Anyone see why Oxygen is complaining?

here is the code: (web.xml):

Code: Select all


<?xml version="1.0" encoding="ISO-8859-1"?>  
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">

<!-- Your entries go here. -->

<!-- Disable the invoker servlet. -->
<servlet>
<servlet-name>NoInvoker</servlet-name>
<servlet-class>coreservlets.NoInvokerServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>NoInvoker</servlet-name>
<url-pattern>/servlet/*</url-pattern>
</servlet-mapping>

<!-- If URL gives a directory but no filename, try index.jsp
first and index.html second. If neither is found,
the result is server-specific (e.g., a directory
listing).
-->
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
<welcome-file>index.html</welcome-file>
</welcome-file-list>
</web-app>
The error message that it gives me is this:
Severity Description Resource In Folder Location Creation Time
2 s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw ' '.
SystemID: http://www-128.ibm.com/developerworks/w ... nt_1_1.xsd web.xml app-blank/WEB-INF line 1 July 20, 2005 8:34:55 PM
2 s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw ' '.
SystemID: http://www-128.ibm.com/developerworks/w ... nt_1_1.xsd web.xml app-blank/WEB-INF line 1 July 20, 2005 8:34:55 PM
2 s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw ' '.
SystemID: http://www-128.ibm.com/developerworks/w ... nt_1_1.xsd web.xml app-blank/WEB-INF line 1 July 20, 2005 8:34:55 PM
2 s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw ' '.
SystemID: http://www-128.ibm.com/developerworks/w ... nt_1_1.xsd web.xml app-blank/WEB-INF line 1 July 20, 2005 8:34:55 PM
2 s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw ' '.
SystemID: http://www-128.ibm.com/developerworks/w ... nt_1_1.xsd web.xml app-blank/WEB-INF line 1 July 20, 2005 8:34:55 PM
2 s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw ' '.
SystemID: http://www-128.ibm.com/developerworks/w ... nt_1_1.xsd web.xml app-blank/WEB-INF line 1 July 20, 2005 8:34:55 PM
2 s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw ' '.
SystemID: http://www-128.ibm.com/developerworks/w ... nt_1_1.xsd web.xml app-blank/WEB-INF line 1 July 20, 2005 8:34:55 PM
2 s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw ' '.
SystemID: http://www-128.ibm.com/developerworks/w ... nt_1_1.xsd web.xml app-blank/WEB-INF line 1 July 20, 2005 8:34:55 PM
2 s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw ' '.
SystemID: http://www-128.ibm.com/developerworks/w ... nt_1_1.xsd web.xml app-blank/WEB-INF line 1 July 20, 2005 8:34:55 PM
2 s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw ' '.
SystemID: http://www-128.ibm.com/developerworks/w ... nt_1_1.xsd web.xml app-blank/WEB-INF line 1 July 20, 2005 8:34:55 PM
2 s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw ' '.
SystemID: http://www-128.ibm.com/developerworks/w ... nt_1_1.xsd web.xml app-blank/WEB-INF line 1 July 20, 2005 8:34:55 PM
2 s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw ' '.
SystemID: http://www-128.ibm.com/developerworks/w ... nt_1_1.xsd web.xml app-blank/WEB-INF line 1 July 20, 2005 8:34:55 PM
2 s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw ' '.
SystemID: http://www-128.ibm.com/developerworks/w ... nt_1_1.xsd web.xml app-blank/WEB-INF line 1 July 20, 2005 8:34:55 PM
2 s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw ' '.
SystemID: http://www-128.ibm.com/developerworks/w ... nt_1_1.xsd web.xml app-blank/WEB-INF line 1 July 20, 2005 8:34:55 PM
2 s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw ' '.
SystemID: http://www-128.ibm.com/developerworks/w ... nt_1_1.xsd web.xml app-blank/WEB-INF line 1 July 20, 2005 8:34:55 PM
2 s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw ' '.
SystemID: http://www-128.ibm.com/developerworks/w ... nt_1_1.xsd web.xml app-blank/WEB-INF line 1 July 20, 2005 8:34:55 PM
2 s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw ' '.
SystemID: http://www-128.ibm.com/developerworks/w ... nt_1_1.xsd web.xml app-blank/WEB-INF line 1 July 20, 2005 8:34:55 PM
2 s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw ' '.
SystemID: http://www-128.ibm.com/developerworks/w ... nt_1_1.xsd web.xml app-blank/WEB-INF line 1 July 20, 2005 8:34:55 PM
2 s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw '&'.
SystemID: http://www-128.ibm.com/developerworks/w ... nt_1_1.xsd
Line: 44 web.xml app-blank/WEB-INF line 1 July 20, 2005 8:34:55 PM
2 s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw '&'.
SystemID: http://www-128.ibm.com/developerworks/w ... nt_1_1.xsd
Line: 44 web.xml app-blank/WEB-INF line 1 July 20, 2005 8:34:55 PM
2 s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw '|'.
SystemID: http://www-128.ibm.com/developerworks/w ... nt_1_1.xsd
Line: 44 web.xml app-blank/WEB-INF line 1 July 20, 2005 8:34:55 PM
2 s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw '|'.
SystemID: http://www-128.ibm.com/developerworks/w ... nt_1_1.xsd
Line: 44 web.xml app-blank/WEB-INF line 1 July 20, 2005 8:34:55 PM
2 s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw '|'.
SystemID: http://www-128.ibm.com/developerworks/w ... nt_1_1.xsd
Line: 44 web.xml app-blank/WEB-INF line 1 July 20, 2005 8:34:55 PM
2 s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw 'downloads'.
SystemID: http://www-128.ibm.com/developerworks/w ... nt_1_1.xsd
Line: 44 web.xml app-blank/WEB-INF line 1 July 20, 2005 8:34:55 PM
2 s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw 'Home'.
SystemID: http://www-128.ibm.com/developerworks/w ... nt_1_1.xsd
Line: 44 web.xml app-blank/WEB-INF line 1 July 20, 2005 8:34:55 PM
2 s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw 'IBM : developerWorks : Error'.
SystemID: http://www-128.ibm.com/developerworks/w ... nt_1_1.xsd
Line: 3 web.xml app-blank/WEB-INF line 1 July 20, 2005 8:34:55 PM
2 s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw 'My account'.
SystemID: http://www-128.ibm.com/developerworks/w ... nt_1_1.xsd
Line: 44 web.xml app-blank/WEB-INF line 1 July 20, 2005 8:34:55 PM
2 s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw 'Our apologies...'.
SystemID: http://www-128.ibm.com/developerworks/w ... nt_1_1.xsd
Line: 59 web.xml app-blank/WEB-INF line 1 July 20, 2005 8:34:55 PM
2 s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw 'Please try again later.'.
SystemID: http://www-128.ibm.com/developerworks/w ... nt_1_1.xsd
Line: 66 web.xml app-blank/WEB-INF line 1 July 20, 2005 8:34:55 PM
2 s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw 'Products '.
SystemID: http://www-128.ibm.com/developerworks/w ... nt_1_1.xsd
Line: 44 web.xml app-blank/WEB-INF line 1 July 20, 2005 8:34:55 PM
2 s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw 'Select a country'.
SystemID: http://www-128.ibm.com/developerworks/w ... nt_1_1.xsd
Line: 51 web.xml app-blank/WEB-INF line 1 July 20, 2005 8:34:55 PM
2 s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw 'services'.
SystemID: http://www-128.ibm.com/developerworks/w ... nt_1_1.xsd
Line: 44 web.xml app-blank/WEB-INF line 1 July 20, 2005 8:34:55 PM
2 s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw 'Support '.
SystemID: http://www-128.ibm.com/developerworks/w ... nt_1_1.xsd
Line: 44 web.xml app-blank/WEB-INF line 1 July 20, 2005 8:34:55 PM
2 s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw 'Thank you.'.
SystemID: http://www-128.ibm.com/developerworks/w ... nt_1_1.xsd
Line: 68 web.xml app-blank/WEB-INF line 1 July 20, 2005 8:34:55 PM
2 s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw 'The IBM developerWorks Web site is currently under maintenance.'.
SystemID: http://www-128.ibm.com/developerworks/w ... nt_1_1.xsd
Line: 66 web.xml app-blank/WEB-INF line 1 July 20, 2005 8:34:55 PM
2 The element type "br" must be terminated by the matching end-tag "</br>".
SystemID: http://www-128.ibm.com/developerworks/w ... nt_1_1.xsd
Line: 80 web.xml app-blank/WEB-INF line 1 July 20, 2005 8:34:55 PM
Thanks,
Yaakov.

Posted: Thu Jul 21, 2005 5:47 am
by george
Hi Yaakov,

The problem is that one of the included/imported schemas, or some of them contain instead of the schema content something like:

***
Our apologies



The IBM developerWorks Web site is currently under maintenance.
Please try again later.

Thank you.
***
See http://www-128.ibm.com/developerworks/w ... nt_1_1.xsd

The solution is to get a local copy of the schemas together with an XML Catalog that resolves the remote references to the local copies and set the catalog in oXygen. This is also recommended for speeding up the validation.

Best Regards,
George