You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by "Dan Diephouse (JIRA)" <xm...@xml.apache.org> on 2004/12/04 20:02:21 UTC
[jira] Commented: (XMLBEANS-88) Cannot compile eBay schema
[ http://nagoya.apache.org/jira/browse/XMLBEANS-88?page=comments#action_56194 ]
Dan Diephouse commented on XMLBEANS-88:
---------------------------------------
Turns out you need to pass the max mem to scomp and not just maven. So it works when I compile like so:
<java classname="org.apache.xmlbeans.impl.tool.SchemaCompiler"
classpathref="task.path"
fork="true">
<arg value="-mx"/>
<arg value="512m"/>
<arg value="-out"/>
<arg value="${basedir}/target/schemas.jar"/>
<arg value="${basedir}/src/schemas"/>
</java>
I would still like to hear whether or not the first to issues we need to hassle eBay about or whether they are XMLBeans bugs.
> Cannot compile eBay schema
> --------------------------
>
> Key: XMLBEANS-88
> URL: http://nagoya.apache.org/jira/browse/XMLBEANS-88
> Project: XMLBeans
> Type: Bug
> Components: Compiler
> Versions: Version 2 Beta 1
> Environment: Windows, JDK 1.5
> Reporter: Dan Diephouse
>
> I am attempting to compile the eBay schema types from their WSDL file.
> The wsdl file can be found here: http://developer.ebay.com/webservices/latest/eBaySvc.wsdl
> I download the file and try to compile, giving me pages full of errors like so:
> [java] eBaySvc.wsdl:4555: error: cvc-complex-type.2.3: Element 'annotation@http://www.w3.org/2001/XMLSchema' with element-only content type cannot have text content.
> [java] eBaySvc.wsdl:4731: error: cvc-complex-type.2.3: Element 'annotation@http://www.w3.org/2001/XMLSchema' with element-only content type cannot have text content.
> [java] eBaySvc.wsdl:4736: error: cvc-complex-type.2.3: Element 'annotation@http://www.w3.org/2001/XMLSchema' with element-only content type cannot have text content.
> [java] eBaySvc.wsdl:5299: error: cos-nonambig: Content model violates the unique particle attribution rule.
> [java] eBaySvc.wsdl:5438: error: cos-nonambig: Content model violates the unique particle attribution rule.
> [java] eBaySvc.wsdl:5756: error: cos-nonambig: Content model violates the unique particle attribution rule.
> [java] eBaySvc.wsdl:5799: error: cos-nonambig: Content model violates the unique particle attribution rule.
> [java] eBaySvc.wsdl:5987: error: cos-nonambig: Content model violates the unique particle attribution rule.
> Turns out the on lines 4555, 4731, and 4736 they have documentation in an <xs:annotation> element instead of an <xs:documentation> element. Is this really illegal?
> That is easily fixed. For the errors following, it is complaining about lines in the schema like so:
> <xs:any processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
> After talking to Garrett Conaty, he said those errors could be fixed by adding in a namespace="foo" element.
> So I added a namespace="urn:eBay:foo" element to all the lines violating the UPA rule.
> Now the schema generates, but it will not compile. I get an OutOfMemoryError even when giving the JVM 1GB of memory. My build script is:
> <java classname="org.apache.xmlbeans.impl.tool.SchemaCompiler"
> classpathref="task.path"
> fork="true">
> <arg value="-out"/>
> <arg value="${basedir}/target/schemas.jar"/>
> <arg value="${basedir}/src/schemas"/>
> </java>
> However, compiling with "-srconly" works. This however does me no good because "the .xsb files are only written to the classes output directory at the same time .class files are compiled." (see XMLBEANS-40).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org