You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Alaa Mohssen Nassef (JIRA)" <ji...@apache.org> on 2009/10/01 10:57:00 UTC

[jira] Created: (AMQ-2434) Wrong XSD URL in spring.schemas

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


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.


[jira] Resolved: (AMQ-2434) Wrong XSD URL in spring.schemas

Posted by "Gary Tully (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/AMQ-2434?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gary Tully resolved AMQ-2434.
-----------------------------

    Resolution: Working as Designed
      Assignee: Gary Tully

> 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
>            Assignee: Gary Tully
>             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.


[jira] Commented: (AMQ-2434) Wrong XSD URL in spring.schemas

Posted by "Gary Tully (JIRA)" <ji...@apache.org>.
    [ 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.


[jira] Commented: (AMQ-2434) Wrong XSD URL in spring.schemas

Posted by "Alaa Mohssen Nassef (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/AMQ-2434?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=54637#action_54637 ] 

Alaa Mohssen Nassef commented on AMQ-2434:
------------------------------------------

Yeah, I know that the indirection is correct. I thought that there was a problem with the documentation, since I copied the URL http://activemq.apache.org/schema/core/activemq-core-5.2.0.xsd from some documentation, but it was from some site that provided spring examples. I can now see from the official documentation that the URL used in the spring configuration file is the same one used in spring.schemas. My mistake that I didn't refer to the official docs before issuing this.

> 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.