[
https://issues.apache.org/activemq/browse/AMQ-2434?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=54623#action_54623
]
Gary Tully commented on AMQ-2434:
---------------------------------
the indirection via spring.schemas is correct: see:
http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/resources/META-INF/spring.schemas?view=markup
The indirection is resolved through the classpath and the activemq.xsd in the
activemq-core jar can be found.
Within an ide the schema resolution for xml schema validation uses a different
mechanism that is ide dependent. Typically the xml parser needs to be told that
the core namespace resolves to the activemq.xsd from the jar. For eclipse this
can be configured through the XMLCatalog mechanism.
Can you validate this with your IDE, I don't think there is any bug here.
> Wrong XSD URL in spring.schemas
> -------------------------------
>
> Key: AMQ-2434
> URL: https://issues.apache.org/activemq/browse/AMQ-2434
> Project: ActiveMQ
> Issue Type: Bug
> Affects Versions: 5.2.0
> Reporter: Alaa Mohssen Nassef
> Fix For: 5.3.0
>
> Original Estimate: 5 minutes
> Remaining Estimate: 5 minutes
>
> In spring.schemas, the XSD url given is
> "http://activemq.apache.org/schema/core/activemq-core.xsd". However, this XSD
> file does not exist in reality, so using this URL will always give XML errors
> while using any IDE. If we use a correct URL (eg.
> "http://activemq.apache.org/schema/core/activemq-core-5.2.0.xsd") everything
> will work fine, but problems will occur if the application can't connect to
> the URL, since the XSD will not be loaded.
> I believe that adding a line like the following to spring.schemas is going to
> solve the problem
> http\://activemq.apache.org/schema/core/activemq-core-5.2.0.xsd=activemq.xsd
> Of course the XSD URL would change for each version.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.