users@jaxb.java.net

Re: Trouble compling XAdES schem

From: Ed Mooney <Ed.Mooney_at_Sun.COM>
Date: Tue, 13 Apr 2004 08:08:46 -0400

The errors indicate the schema violates these parts of the Recommendation:

     http://www.w3.org/TR/xmlschema-1/#src-ct
     http://www.w3.org/TR/xmlschema-1/#src-resolve

Regards,
-- 
Ed Mooney         |Sun Microsystems, Inc.|Time flies like
Java Web Services |UBUR02-201            |an arrow, but
Ed.Mooney_at_Sun.COM |1 Network Drive       |fruit flies like
781-442-0459      |Burlington, MA  01803 |a banana. Groucho
Jyrki Saarinen wrote:
> Hello,
> 
> I'm having trouble compling the XAdES schema [1]: I get the following 
> output from XJC:
> 
> ---cut---
>      [xjc] Compiling file:/home/jyrki/IdeaProjects/XadesTest/XAdES.xsd
>      [xjc] [ERROR] src-ct.1: Complex Type Definition Representation 
> Error for type 'IdentifierType'.  When <complexContent> is used, the 
> base type must be a complexType. 'anyURI' is a simpleType.
>      [xjc]   line 33 of XAdES.xsd
> 
>      [xjc] [ERROR] src-ct.1: Complex Type Definition Representation 
> Error for type 'EncapsulatedPKIDataType'.  When <complexContent> is 
> used, the base type must be a complexType. 'base64Binary' is a simpleType.
>      [xjc]   line 57 of XAdES.xsd
> 
>      [xjc] [ERROR] src-resolve.4.2: Error resolving component 
> 'ds:TransformsType'. It was detected that 'ds:TransformsType' is in 
> namespace 'http://www.w3.org/2000/09/xmldsig#', but components from this 
> namespace are not referenceable from schema document 
> 'file:/home/jyrki/IdeaProjects/XadesTest/XAdES.xsd'. If this is the 
> incorrect namespace, perhaps the prefix of 'ds:TransformsType' needs to 
> be changed. If this is the correct namespace, then an appropriate 
> 'import' tag should be added to 
> 'file:/home/jyrki/IdeaProjects/XadesTest/XAdES.xsd'.
>      [xjc]   line 79 of XAdES.xsd
> ---cut---
> 
> I'm using jwsdp-1.3, is this is problem of the schema (I'm not a schema 
> expert) or JAXB?
> 
> [1]
> http://uri.etsi.org/01903/v1.1.1/
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
> For additional commands, e-mail: users-help_at_jaxb.dev.java.net
> 
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net