Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Problem with Tomca 5.5 and web-app_2_4.xsd in Eclipse

Reply
Thread Tools

Problem with Tomca 5.5 and web-app_2_4.xsd in Eclipse

 
 
John
Guest
Posts: n/a
 
      10-14-2007
Hi everybody,
I try to run the source codes from several books (written 2006 or
later) that use in their source code examples with some configuration
file like web.xml.
All web.xml files have this definition inside (so I assume that all
source codes from all the book I own are correct):

<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlnssi="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">


When try to validate this web.xml with XML Spy v4.0, I always get the
following error:

Validation error in another file: "http://java.sun.com/xml/ns/j2ee/web-
app_2_4.xsd"

.... which opens this xsd-file from the java.sun.com website. It's
interesting that when XML Spy tries to validate the "web-app_2_4.xsd"
another error is generated:

This schema doesn't appear to be valid... etc. etc.
"- undefined schema component 'base' encountered - simpleContent can
not have a base that is a complexType with complexContent".

.... and it points to this block:

<xsd:complexType name="filter-nameType">
<xsd:simpleContent>
<xsd:extension base="j2ee:nonEmptyStringType"/>
</xsd:simpleContent>
</xsd:complexType


So, I don't understand what is wrong with the validation of the
web.xml files. Is it a problem with the web.xml or with the .xsd-file
from the java.sun.com website? Or what else am I doing wrong?

I am using:

eclipse 3.3
apache-tomcat-5.5.25
jdk1.5.0_13
Windows XP Pro SP2

Thank you very much for your answers
John

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Eclipse and CVS, Eclipse wipes out CVS directories xyzzy12@hotmail.com Java 1 08-31-2007 10:19 AM
Nokia + Eclipse: creating JAR files from eclipse John Goche Java 2 01-22-2006 01:53 AM
[ECLIPSE] [PRIVACY] - Direct Violation of Eclipse Foundations PrivacyPolicy Ilias Lazaridis Java 0 01-16-2005 11:31 AM
[ECLIPSE] [CENSORSHIP] - Mike Milinkovich (Eclipse Foundation Director)Censors Forums Ilias Lazaridis Java 0 01-08-2005 12:23 PM
Deploying eclipse plugin cleared everything in eclipse - project references in package explorer etc. javaguy44 Java 1 08-18-2004 03:24 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57