[oXygen-user] different results using TRANG directly and from within oXygen

Sorin Ristache
Tue Jun 3 07:14:59 CDT 2008


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
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: log4j.properties
Url: http://www.oxygenxml.com/pipermail/oxygen-user/attachments/20080603/1781cdf7/attachment.pl 


More information about the oXygen-user mailing list