There is a bug in the DefaultSchemaResolver that I am going to fix. But there is another
issue you are going to run into after that. I.e. redefine can only be used with schemas
with the same targetNamespace or with no targetNamespace. So, in your example you'll
get an error like
org.jboss.xb.binding.JBossXBRuntimeException: -1:-1 10:18 src-redefine.3.1: The
targetNamespace of the referenced schema, currently 'urn:jboss:beans-common:2.0',
must be identical to that of the redefining schema, currently
'urn:jboss:aop-beans:1.0'.
| at
org.jboss.xb.binding.sunday.unmarshalling.XsdBinderTerminatingErrorHandler.handleError(XsdBinderTerminatingErrorHandler.java:40)
| at org.apache.xerces.impl.xs.XMLSchemaLoader.reportDOMFatalError(Unknown Source)
| at org.apache.xerces.impl.xs.XSLoaderImpl.loadURI(Unknown Source)
| at org.jboss.xb.binding.Util.loadSchema(Util.java:367)
PS: I saw you also tried the namespace as the schemaLocation, it should be the filename.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136295#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...