views:

19

answers:

0

Hello,

I am trying to deploy a war file in JBOSS 5.1 with CXF-JAXB schema validation. I have a XSD which has imports as



<xs:import namespace="http://www.w3.org/2000/09/xmldsig#"
        schemaLocation="http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd"/&gt;
    <xs:import namespace="http://www.w3.org/2001/04/xmlenc#"
        schemaLocation="http://www.w3.org/TR/2002/REC-xmlenc-core-20021210/xenc-schema.xsd"/&gt;

....

<xs:element name="EncryptionMethod" type="xenc:EncryptionMethodType"/>
    <xs:complexType name="KeyDescriptor-type">
        <xs:annotation>
            <xs:documentation>
            Used to declare certificated used for saml messages (samlmd:KeyDescriptor) as well as certificated used for TLS/SSL connections
        </xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element ref="ds:KeyInfo"/>
            <xs:element ref="dece:EncryptionMethod"/>
        </xs:sequence>
        <xs:attribute name="use" type="dece:KeyTypes" use="optional"/>
    </xs:complexType>
    <xs:simpleType name="KeyTypes">
        <xs:restriction base="xs:string">
            <xs:enumeration value="encryption"/>
            <xs:enumeration value="signing"/>
            <xs:enumeration value="connection"/>
        </xs:restriction>
    </xs:simpleType>

....

When I deploy WAR on the JBOSS server, the application doesn't validate my input XML as per the schema def. This happens only on the server where there is no internet access.

Looking at the Logs I found there is a warning message saying..

WARNING [org.apache.cxf.jaxrs.utils.schemas.SchemaHandler] (main) Validation will be disabled, failed to create schema : src-resolve: Cannot resolve the name 'xenc:EncryptionMethodType' to a(n) 'type definition' component.

I googled it but didn't find a solution what it means.Can you please help me..! Thanks.