• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

XMLBean Extensions

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello all,

I am trying to extend my .xsd file by utilizing the Extension Feature, but im not using the command line, im writing an application that mimics the procedure that is usually carried out on the command line. I have the instructions for using the Extension feature from the command line:

1. Place an XML comment around the extension element in the .xsdconfig file. Then at a prompt in the working directory perfom the scomp command

2. Compile the interface and handler class using the resulting jar from step #1 and xbean.jar

3. Remove the XML comment around the extension element in the .xsdconfig file. Then run scomp again with the .xsd and .xsdconfig Files, making sure that compiled extension classes from step#2 are on the classpath.

My application performs all of the previous steps however, when i run the scomp command for the second time(Step #3), I get the error "Build Failed". Which classpath should I be setting? System.setProperty()? or SchemaCompilerParameter.setClasspath()? Also within the SchemaCompilerParameter class there is a setBaseDir() method, should I set this as well, and if so what do I set it to?..........Im pretty sure that this is a configuration issue because I can make it work from the command line. Can anyone help me Please???

P.S. There is also a SchemaCompilerParameter.setExtension() method......does anyone know what this does or how to use it?.....the javaDocs on this package are not too good, there are no explanations.

Thanks in advance,

DG
reply
    Bookmark Topic Watch Topic
  • New Topic