Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[wtp-dev] Embedded servers should use the XML Catalog user entries

Hi all,

I posted this on the newsgroup and didn't get a response.  I'm
thinking the problem is a bug, and I'll file a bug report, unless
someone has a good reason why I shouldn't.

Bug details below.

I'm extending spring with a namespace. The way that works is you
provide a schema xsd file in your jar and hook into spring xml
processing for schema validation and such.

In eclipse, the schema is expected to be available at a given
location. For instance:

<beans xmlns="";
xsi:schemaLocation=" .xsd

So everything works if I actually have an xsd at 'http://mywork/namespace.xsd'

I can add an entry in the eclipse XML catalog so that the XML editor
works. However, when I launch a webapp with an embedded WTP tomcat
instance, I see this error:

Caused by: org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The
matching wildcard is strict, but no declaration can be found for
element 'myelement'

This is the same error the editor was giving before I added the user
entry to xml catalogs. So, does WTP use those entries as well? It
would appear not. Anyone seen this and have a solution?

Back to the top