[oXygen-user] different results using TRANG directly and fromwithin oXygen

Theun Fleer
Tue Jun 3 09:43:24 CDT 2008


hi Sorin
 
thanks a lot! works like a charm now!
 
Just for the record: we also generate XSDs from the same RELAX schemas. Is it wise to use the same jars in combination with TRANG for the conversion to XSDs? In other words: did you fix some bugs in that conversion too? :-)
 
I do not notice any diffs from the XSDs from TRANG directly and XSDs generated using oXygen. But I could have missed something... just to be sure.
 
groet
Theun

  _____  

Van:  namens Sorin Ristache
Verzonden: di 3-6-2008 14:14
Aan: 
Onderwerp: Re: [oXygen-user] different results using TRANG directly and fromwithin oXygen



Hello,

The log4j system needs a set of initialization properties. You need to
add the attached file called log4j.properties to the same lib folder
where oxygen.jar, trang.jar, etc are located and to use the following
classpath element in your Ant task:


     <classpath>
         <pathelement location="lib/oxygen.jar"/>
         <pathelement location="lib/xercesImpl.jar"/>
         <pathelement location="lib/log4j.jar"/>
         <pathelement location="lib/resolver.jar"/>
         <pathelement location="lib/trang.jar"/>
         <pathelement location="lib/"/>
     </classpath>


Regards,
Sorin


Theun Fleer wrote:
> hi Sorin
> now I get the following error messages:
> [java] log4j:WARN No appenders could be found for logger (ro.sync.util.v).
> [java] log4j:WARN Please initialize the log4j system properly.
> [java] Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/xml/resolver/helpers/Debug
> [java]  at ro.sync.xml.parser.ParserCreator.A(Unknown Source)
> [java]  at ro.sync.xml.parser.ParserCreator.newXRNoValid(Unknown Source)
> [java]  at com.thaiopensource.xml.sax.Jaxp11XMLReaderCreator.createXMLReader(Unknown Source)
> [java]  at com.thaiopensource.relaxng.parse.sax.SAXParseable.parse(Unknown Source)
> [java]  at com.thaiopensource.relaxng.input.parse.SchemaBuilderImpl.parse(Unknown Source)
> [java]  at com.thaiopensource.relaxng.input.parse.SchemaBuilderImpl.parse(Unknown Source)
> [java]  at com.thaiopensource.relaxng.input.parse.ParseInputFormat.load(Unknown Source)
> [java]  at com.thaiopensource.relaxng.translate.Driver.doMain(Unknown Source)
> [java]  at com.thaiopensource.relaxng.translate.Driver.main(Unknown Source)
> [java] Caused by: java.lang.ClassNotFoundException: org.apache.xml.resolver.helpers.Debug
> ...etc...
> Any ideas why the log4j is not initialized properly?
> groet
> Theun



  
 
Drs. T. Fleer
Consultant
GSM: +31 (0)6 40 58 50 27
 
 
http://www.daidalos.nl/
Daidalos BV
Source of Innovation
Hoekeindsehof 1-4
2665 JZ Bleiswijk
Tel.: +31 (0) 10 850 1200
Fax: +31 (0) 10 850 1199
http://www.daidalos.nl/
KvK 27164984
De informatie - verzonden in of met dit emailbericht - is afkomstig van Daidalos BV en is uitsluitend bestemd voor de geadresseerde. Indien u dit bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan dit bericht kunnen geen rechten worden ontleend.
 

 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 13375 bytes
Desc: not available
Url : http://www.oxygenxml.com/pipermail/oxygen-user/attachments/20080603/0417acab/attachment.bin 


More information about the oXygen-user mailing list