RE: ArrayStoreException in get*Array() method in custom Ant task

2006-03-22 Thread Radu Preotiuc-Pietro
Ok, so we know that the classloader loads all the resources you would expect it to. However, the fact that "schemaorg_apache_xmlbeans/element/URI_SHA_1_1DD80F3162A834D56F4BECF11C9343A1641FECC5/item_2Dquery.xsb" is missing is a problem and will result in the exception that you are seeing. More

RE: ArrayStoreException in get*Array() method in custom Ant task

2006-03-22 Thread Tellis B. Ellis, IV
Radu,   I wrote some code to load the following resources from the xmlbeans-generated-jar:   schemaorg_apache_xmlbeans/type/URI_SHA_1_1DD80F3162A834D56F4BECF11C9343A1641FECC5/queryDefinition.xsbschemaorg_apache_xmlbeans/type/URI_SHA_1_1DD80F3162A834D56F4BECF11C9343A1641FECC5/itemQueryDefinition

RE: ArrayStoreException in get*Array() method in custom Ant task

2006-03-22 Thread Tellis B. Ellis, IV
Radu,   The names of the relevant .xsb resources for this XMLBean in the generated jar are:   schemaorg_apache_xmlbeans/type/URI_SHA_1_1DD80F3162A834D56F4BECF11C9343A1641FECC5/queryDefinition.xsbschemaorg_apache_xmlbeans/type/URI_SHA_1_1DD80F3162A834D56F4BECF11C9343A1641FECC5/itemQueryDefinitio

RE: ArrayStoreException in get*Array() method in custom Ant task

2006-03-22 Thread Tellis B. Ellis, IV
Forgot to mention that I am using substitution groups. Here's the complete XSD:   http://www.w3.org/2001/XMLSchema"    targetNamespace="http://www.360commerce.com/internal/starteam/query/xml"    xmlns="http://www.360commerce.com/internal/starteam/query/xml"    elementFormDefault="qualified"

RE: ArrayStoreException in get*Array() method in custom Ant task

2006-03-22 Thread Tellis B. Ellis, IV
Thanks for the help Radu! I'll test out the resource load using the xmlbean's classloader and let you know how it works out. What puzzles me somewhat is why it (XMLBeans, the java classloader, etc) can't find the resource even if the resource is in the same jar as the xmlbean class file. Ha

option to trim element values

2006-03-22 Thread Roache, Ed \(Contr\)
I was wondering if anybody knows of an option (or config parameter or whatever) to have xmlbeans trim element values. Given the necessity of null checking, etc.--- it would be nice if this were built-in.   Thanks,   Eddie  

RE: ArrayStoreException in get*Array() method in custom Ant task

2006-03-22 Thread Radu Preotiuc-Pietro
Yeah, it does smell like one of those esoteric classloader issues. Do you also use substitution groups in this context? (looks like there probably are global element definitions corresponding to itenQueryDefinition, changeRequestQueryDefinition and fileQueryDefinition)   So what is happening

RE: classpath?

2006-03-22 Thread Wing Yew Poon
Nate, you are missing the JSR 173 API jar in your classpath. This jar is shipped with XMLBeans. - Wing Yew -Original Message- From: Nate Reed [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 22, 2006 11:13 AM To: user@xmlbeans.apache.org Subject: Re: classpath? Correction: I'm using xml

Re: classpath?

2006-03-22 Thread Nate Reed
Correction: I'm using xmltypes.jar for the generated xml beans; "." has the class CreateEvents... On Wednesday 22 March 2006 13:09, Nate Reed wrote: > I'm evaluating xmlbeans and have a simple program that will not run because > it looks like it's missing some classes. Our xml schema is compiled

classpath?

2006-03-22 Thread Nate Reed
I'm evaluating xmlbeans and have a simple program that will not run because it looks like it's missing some classes. Our xml schema is compiled to the current working directory (.): [EMAIL PROTECTED] 1132 java -cp xbean.jar:xmltypes.jar:. CreateEvents Exception in thread "main" java.lang.NoClas

RE: optimizing memory consumption with XMLBeans

2006-03-22 Thread Cezar Andrei
Mario,   XMLBeans works with an in-memory xml store, it loads and saves the data to and from streaming API’s like SAX, STAX but the entire document will be stored in memory. To avoid this, one can handle the stream and load only small parts that fit in memory, one at a time.   This isn

RE: QName to package

2006-03-22 Thread Cezar Andrei
Pat, I'm assuming you want to find out the java name for a corresponding to the top level element name of a document, if that is the case first you have to find the SchemaType describing that document type XMLBeans.findDocumentType(QName topLevelElementName) (or XMLBeans.findType(QName) if you ha

QName to package

2006-03-22 Thread pat
Hi, I need to convert QName to java package name. I've go through the classes, but I cannot find some conversion method. Is there a such method for conversion QName to java package ??? Thanks Pat - To unsubscribe, e-mai