You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Freeman Fang (JIRA)" <ji...@apache.org> on 2010/06/19 04:35:53 UTC

[jira] Resolved: (SMX4-535) Schema Location does not exist (Source of the problem Identified)

     [ https://issues.apache.org/activemq/browse/SMX4-535?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Freeman Fang resolved SMX4-535.
-------------------------------

    Resolution: Working as Designed

Hi,

Actually we always ship local xsd files in component jar, so http://servicemix.apache.org/schema/servicemix-file-2010.01.0-fuse-02-00.xsd redirect(through spring.shcemas) to local xsd files inside servicemix-file-2010.01.0-fuse-02-00.jar, it doesn't matter if url http://servicemix.apache.org/schema/servicemix-file-2010.01.0-fuse-02-00.xsd really exist or not.

If you extract servicemix-file-2010.01.0-fuse-02-00.jar, you will see a file META-INF/spring.schemas, and in this file, you can find
http\://servicemix.apache.org/schema/servicemix-file-2010.01.0-fuse-02-00.xsd=servicemix-file.xsd
Also there's a local servicemix-file.xsd inside servicemix-file-2010.01.0-fuse-02-00.jar, so it will always find the local xsd files.

Freeman

> Schema Location does not exist (Source of the problem Identified)
> -----------------------------------------------------------------
>
>                 Key: SMX4-535
>                 URL: https://issues.apache.org/activemq/browse/SMX4-535
>             Project: ServiceMix 4
>          Issue Type: Bug
>          Components: Bundles
>    Affects Versions: 4.2.0
>         Environment: OpenSuse 11.1 , JDK 1.6 , Eclipse Galileo ,FUSE ESB 4.2.0
>            Reporter: Mitul Gandhi
>            Assignee: Freeman Fang
>
> When I download the archetype with Group ID = org.apache.servicemix.tooling , Artifact ID = servicemix-file-poller-unit , Version = 2010.01.0-fuse-02-00  , the schema location is set to http://servicemix.apache.org/schema/servicemix-file-2010.01.0-fuse-02-00.xsd which does not exist. The source of the problem is http://repo.open.iona.com/maven2/org/apache/servicemix/tooling/servicemix-file-poller-service-unit/2010.01.0-fuse-02-00/servicemix-file-poller-service-unit-2010.01.0-fuse-02-00-sources.jar . On extracting it , when I open the xbean.xml file , I see the following :
> <beans xmlns:file="http://servicemix.apache.org/file/1.0"
>        xmlns:replaceMe="http://servicemix.apache.org/replaceMe"
>        xmlns="http://www.springframework.org/schema/beans"
>        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>        xsi:schemaLocation="http://servicemix.apache.org/file/1.0  
> {color:red} http://servicemix.apache.org/schema/servicemix-file-@{components-version}.xsd {color} 
>        http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
> Here file-@{components-version} is creating the problem.
> @{components-version} = 2010.01.0-fuse-02-00
> The user gets the schema location as http://servicemix.apache.org/schema/servicemix-file-2010.01.0-fuse-02-00.xsd which does not exist.
> Also , the same problem exists with many of the components and versions.

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