geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Radim Kolar (Resolved) (JIRA)" <>
Subject [jira] [Resolved] (GERONIMO-6141) missing xml schema files on web
Date Fri, 04 Nov 2011 07:03:00 GMT


Radim Kolar resolved GERONIMO-6141.

    Resolution: Not A Problem

Okay i just uploaded schemas on my server. I am not willing to wait months for issue which
can be fixed without 5 minutes.
> missing xml schema files on web
> -------------------------------
>                 Key: GERONIMO-6141
>                 URL:
>             Project: Geronimo
>          Issue Type: Improvement
>      Security Level: public(Regular issues) 
>          Components: website
>            Reporter: Radim Kolar
>            Priority: Minor
> I will describe problem in more detail. If you validate against,
XML downloads XSD from schema location   xsi:schemaLocation="">
> ponto:(admin)~>fetch
> web-2.0.1                                     100% of 6143  B  214 kBps
> ponto:(admin)~>
> so we have got that file. Now time to parse it with XML parser. File has includes inside:
> ponto:(admin)~>grep -i import web-2.0.1
> <xs:import namespace="" schemaLocation="geronimo-naming-1.2.xsd"/>
> <xs:import namespace="" schemaLocation="geronimo-application-2.0.xsd"/>
> <xs:import namespace="" schemaLocation="geronimo-module-1.2.xsd"/>
> <xs:import namespace="" schemaLocation=""/>
>                             Reference to abstract service element defined in imported
> ponto:(admin)~>
> lets look at first import. We are going to import namespace
from URL (schema location is
added to current URL) which does not exists on geronimo web server.
> naming schema exists at different location
> ponto:(admin)~>fetch
> naming-1.2                                    100% of   52 kB  624 kBps
> ponto:(admin)~>
> but your schemas refers to xsd import files in same directory like main schema which
is good because validation on XSD schemas downloaded localy will work if you dump all schemas
into one directory like you do in geronimo distro. To make XML validation work locally you
just need to point schema location to your geronimo install directory. something like this:
> xsi:schemaLocation=" file:///usr/local/wasce/schema/geronimo-web-2.0.1.xsd"
> and everything works. But for making validation to work over HTTP you need to upload
these XSD files with xsd extension to as well to
You need to have them several times on web server, once for xs:import with XSD extension and
second without extension for xsi:schemalocation.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message