473,480 Members | 1,799 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

This has to be a simple DOCTYPE issue - HELP?

For some reason on my system I can't get the following elementry
web.xml to validate. It looks like JonAS will only process an XML if
it is valid. For some reason a very similar web.xml on JBoss is
processed fine. My guess is JBoss isn't validating.

The XML file:

<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE web-app PUBLIC
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">

<web-app>

<display-name>JOnAS-Tomcat Packaging index</display-name>
<description>
Display the context which are preconfigured.
</description>

</web-app>

When I run the SUN XML validator using the DOCTYPE specification for
the DTD I get:

Multi Schema Validator Ver.20030225
using org.apache.xerces.jaxp.SAXParserFactoryImpl
DTD validation will be done.
start parsing a grammar.
element "web-app" is not allowed here
7:10@file:///D:/jonas-3-3-2/webapps/jonas/ctxroot/WEB-INF/web.xml
failed to load a grammar.

But if I provide a local file copy of the
http://java.sun.com/dtd/web-app_2_3.dtd from my system using the
-standalone option (I think it ignores the <!DOCTYPE ...> in the XML)
than it parses fine by the validator.

I don't inderstand what is wrong. Any help would be great. I have
been tearing my hair out on this simple problem, anmd I don't have
much more to loose!
Jul 17 '05 #1
0 1528

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2802
by: Jan Roland Eriksson | last post by:
Archive-name: www/stylesheets/authoring-faq Posting-Frequency: twice a week (Mondays and Thursdays) Last-modified: August 28, 2002 Version: 1.15 URL: http://css.nu/faq/ciwas-aFAQ.html...
0
1941
by: Jan Roland Eriksson | last post by:
Archive-name: www/stylesheets/authoring-faq Posting-Frequency: twice a week (Mondays and Thursdays) Last-modified: April 10, 2003 Version: 1.16 URL: http://css.nu/faq/ciwas-aFAQ.html Maintainer:...
10
2731
by: Guadala Harry | last post by:
I have a modal dialog that currently does all of the following except item 4. 1. lets users select a graphic from a list of thumbnails (and when selected, displays the full-size image in a...
10
1535
by: Simon Dean | last post by:
Im enjoying stylesheets... just realised one of the major things to get IE and Firefox interpreting the pages in a fairly similar way... Setting the DOCTYPE. The difference it makes just...
6
4829
by: scottyman | last post by:
I can't make this script work properly. I've gone as far as I can with it and the rest is out of my ability. I can do some html editing but I'm lost in the Java world. The script at the bottom of...
9
3812
by: Wayne Smith | last post by:
I've come up against a major headache that I can't seem to find a solution for but I'm sure there must be a workaround and I would really be grateful of any help. I'm currently building a web...
3
2137
chunk1978
by: chunk1978 | last post by:
hi there... i'm trying to make one text field contain the value of another... i'm assuming there's a really simple solution... here's a code i quickly wrote to further explain my issue: ...
26
2554
by: mark | last post by:
The idea of this is very simle. The site is 800px wide and sits in the middle of the browser window, on either side of the site I want a different background image aligned against it. If I were...
1
1634
by: Richard | last post by:
If you take a look at: http://www.sandiegomft.com you'll see it is simple. I see it as... 1. 100% r .... 2. Left box 33% (photo) Right box (text) ....
0
7034
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7076
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6732
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
6886
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5324
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4768
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
2976
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
558
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
174
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.