activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan (JIRA)" <>
Subject [jira] Commented: (AMQ-1016) 4.1 RC1: META-INF/spring.schemas refers to building user "file:/Users/chirino/"
Date Thu, 14 Jun 2007 09:05:33 GMT


James Strachan commented on AMQ-1016:

So this issue was caused by multiple things. 

* Bad XSDs caused by a bug in XBean; which AFAIK is now fixed, the generated XSDs are now
valid right?
* lousy URLs for the XSDs, which should now be fixed (once Apache's caching infrastructure
spots the new files)
* Spring unable to find the embedded XSD which is inside the activemq-core.jar

Am unsure how to resolve the last item without changing the namespace. Ideally if we can,
we'd avoid changing the namespace (then the fix can be applied to 4.1.x and 5.0). 
Sure we could write our own EntityResolver, but I've no idea how to automatically register
it so its always available to Spring; given that Spring is in charge, loads its ApplicationContext
and we have to fit inside its callback stuff mid-parse.

Am wondering if the simplest solution is to change the namespace URI to end in ".xsd"? Maybe

If anyone knows how to resolve this last issue nicely with using pure Spring I'd be most grateful.
Endre - any ideas? Do you think the namespace URI really has to change?

> 4.1 RC1: META-INF/spring.schemas refers to building user "file:/Users/chirino/"
> -------------------------------------------------------------------------------
>                 Key: AMQ-1016
>                 URL:
>             Project: ActiveMQ
>          Issue Type: Bug
>    Affects Versions: 4.1.0
>         Environment: n/a
>            Reporter: Endre StĂžlsvik
>            Assignee: Adrian Co
>            Priority: Minor
>             Fix For: 5.0.0
> Referring to the 4.1 RC1 posted by Hiram Chirino  Oct 06, here:
> The META-INF file spring.schemas have the single line.
> "http\://"
> Notice "file:/" and "Users/chirino". Referring to org.springframework.beans.factory.xml.PluggableSchemaResolver's
javadoc: "schema-location should also be a schema file in the classpath", and that no-one
can tell what structure I will have on my fs, this must be wrong. In addition, I most probably
won't have a user name "chirino".
> PS: In addition, the doc at
> refers as such:
> xmlns:amq=""
>  .. and ..
> xsi:schemaLocation=""
> Wouldn't it be nice if this was put at a better place than such a snapshot-build URI?
It could be put where it will reside when 4.1 actually is out, w/o anyone being to angry about
changes during the finalization period, I personally believe.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message