I have no idea what I could've done to cause this because my time spent programming is stretched out and I've already forgotten what I might've done. But now when I load Eclipse it says:
The errors below were detected when validating the file "web-app_2_5.xsd" via the file "web.xml". In most cases these errors can be detected by validating "web-app_2_5.xsd" directly. However it is possible that errors will only occur when web-app_2_5.xsd is validated in the context of web.xml.
s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw 'JDK 6 XML-related APIs'.
The entity name must immediately follow the '&' in the entity reference.
My first few lines of web.xml looks like so.
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
id="WebApp_ID" version="2.5">
I've read that it could be an error with the server where the file is being retrieved from, or with caching. I've disabled and cleared the cache and as far as I can tell the server is the same everyone else is using unless they switched to an oracle.com url and I haven't found it yet.
Any thoughts would be greatly appreciated.
See http://www.reddit.com/r/programming/comments/f9sxu . The problem is Oracle, again. I cannot deploy on SGES 2.1.1 with the connection to the internet. When I turned it off, deploy was slow, but successful. It seems the validator tries to refresh cached schemas and to download them from the schemaLocation URLs.
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd
GET /xml/ns/javaee/web-app_2_5.xsd ...
HTTP/1.1 301 Moved Permanently to Location:
http://download.oracle.com/javase/6/docs/technotes/guides/xml/index.html
But there is no such schema!
I will try to find some good solution, but the best is maybe to punch up someone in Oracle ...
EDIT: It is fixed at this time (27.1.2010, 20:00 CET), Oracle returns the schema - you can check it with wget. Browsers are redirected to docs. Nice :-)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With