fyi.......i changed the spring context file to be:xsi:schemaLocation
http://www.springframework.org/schema/beans 
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/sca 
file://C://development//Organization-Service-Composite//src//main/resources/spring-sca.xsd"=">
but no luck.  here's the error:
Exception in thread "main" 
at org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance(
at 
org.apache.tuscany.sca.host.embedded.SCADomain.newInstance(org.osoa.sca.ServiceRuntimeException:
 org.osoa.sca.ServiceRuntimeException: 
org.springframework.beans.factory.BeanDefinitionStoreException: Line 11 in XML 
document from URL 
[file:/C:/development/DCRI-Organization-Service-Composite/src/main/resources/Organization-spring-context.xml]
 is invalid; nested exception is org.xml.sax.SAXParseException: 
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can 
be found for element 'sca:service'.SCADomain.java:276)SCADomain.java:70)
it picks up the file (so it seems), but doesn't like my service def:
<
thx abe
sca:service 
name="OrganizationService"type="org.soa.services.OrganizationService" 
target="OrganizationServiceBean"/>


----- Original Message ----
From: Luciano Resende <[EMAIL PROTECTED]>
To: [email protected]
Sent: Saturday, August 9, 2008 5:16:04 PM
Subject: Re: sca namespace in spring

What is the environment you are running the application and
experiencing the validation error ?

On Sat, Aug 9, 2008 at 2:09 PM, Abraham Washington <[EMAIL PROTECTED]> wrote:
>
> hi all...when running with the spring implementation, i'm running into the
> following error:
>
>
> Configuration problem: Unable to locate NamespaceHandler for namespace
> [http://www.springframework.org/schema/sca]
>
>
>
> going out to the spring website http://www.springframework.org/schema/ i
> don't see the sca directory.  here's the beginning definition for my app's
> context:
>
>
>
> <
>
> beans xmlns="http://www.springframework.org/schema/beans";
>
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>
> xmlns:sca="http://www.springframework.org/schema/sca";
>
> xsi:schemaLocation="
>
> http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans.xsd
>
> http://www.springframework.org/schema/sca
> http://www.springframework.org/schema/sca/spring-sca.xsd";
>
>>
>
>
>
> ideas? thx abe
>



-- 
Luciano Resende
Apache Tuscany Committer
http://people.apache.org/~lresende
http://lresende.blogspot.com/



      
<?xml version="1.0" encoding="UTF-8"?>
<!--
    * Licensed to the Apache Software Foundation (ASF) under one
    * or more contributor license agreements.  See the NOTICE file
    * distributed with this work for additional information
    * regarding copyright ownership.  The ASF licenses this file
    * to you under the Apache License, Version 2.0 (the
    * "License"); you may not use this file except in compliance
    * with the License.  You may obtain a copy of the License at
    * 
    *   http://www.apache.org/licenses/LICENSE-2.0
    * 
    * Unless required by applicable law or agreed to in writing,
    * software distributed under the License is distributed on an
    * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    * KIND, either express or implied.  See the License for the
    * specific language governing permissions and limitations
    * under the License.    
-->
<xsd:schema xmlns="http://www.springframework.org/schema/sca"; xmlns:xsd="http://www.w3.org/2001/XMLSchema";
    attributeFormDefault="unqualified" elementFormDefault="qualified"
    targetNamespace="http://www.springframework.org/schema/sca";>

    <xsd:element name="composite">
        <xsd:complexType>
            <xsd:attribute name="component" use="required">
                <xsd:simpleType>
                    <xsd:restriction base="xsd:string" />
                </xsd:simpleType>
            </xsd:attribute>
            <xsd:attribute name="sca-adapter-class" use="optional">
                <xsd:simpleType>
                    <xsd:restriction base="xsd:string" />
                </xsd:simpleType>
            </xsd:attribute>
        </xsd:complexType>
    </xsd:element>

    <xsd:element name="reference">
        <xsd:complexType>
            <xsd:attribute name="name" use="required">
                <xsd:simpleType>
                    <xsd:restriction base="xsd:string" />
                </xsd:simpleType>
            </xsd:attribute>
            <xsd:attribute name="type" use="required">
                <xsd:simpleType>
                    <xsd:restriction base="xsd:string" />
                </xsd:simpleType>
            </xsd:attribute>
            <xsd:attribute name="default" use="optional">
                <xsd:simpleType>
                    <xsd:restriction base="xsd:string" />
                </xsd:simpleType>
            </xsd:attribute>
        </xsd:complexType>
    </xsd:element>

    <xsd:element name="property">
        <xsd:complexType>
            <xsd:attribute name="id" use="required">
                <xsd:simpleType>
                    <xsd:restriction base="xsd:string" />
                </xsd:simpleType>
            </xsd:attribute>
            <xsd:attribute name="name" use="required">
                <xsd:simpleType>
                    <xsd:restriction base="xsd:string" />
                </xsd:simpleType>
            </xsd:attribute>
            <xsd:attribute name="type" use="required">
                <xsd:simpleType>
                    <xsd:restriction base="xsd:string" />
                </xsd:simpleType>
            </xsd:attribute>
        </xsd:complexType>
    </xsd:element>

    <xsd:element name="service">
        <xsd:complexType>
            <xsd:attribute name="name" use="required">
                <xsd:simpleType>
                    <xsd:restriction base="xsd:string" />
                </xsd:simpleType>
            </xsd:attribute>
            <xsd:attribute name="type" use="required">
                <xsd:simpleType>
                    <xsd:restriction base="xsd:string" />
                </xsd:simpleType>
            </xsd:attribute>
            <xsd:attribute name="target" use="required">
                <xsd:simpleType>
                    <xsd:restriction base="xsd:string" />
                </xsd:simpleType>
            </xsd:attribute>
        </xsd:complexType>
    </xsd:element>

</xsd:schema>

Reply via email to