[jboss-dev-forums] [Design of AOP on JBoss (Aspects/JBoss)] - Re: Implementing JAXB style parsing for aop-mc-int
alex.loubyansky@jboss.com
do-not-reply at jboss.com
Thu Mar 13 10:08:41 EDT 2008
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#4136295
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136295
More information about the jboss-dev-forums
mailing list