Page 1 of 1

log4j; JAXB "RI"??

PostPosted: Fri Jul 16, 2010 4:19 pm
by symphony
Hello,
It is me again,hehe,thanks for your help last time jason,now I can create a table in a new docx file,I am
very happy. Now when I run the .class file to create a table ,the console give these message :

log4j:WARN No appenders could be found for logger (org.docx4j.openpackaging.parts.PartName).
log4j:WARN Please initialize the log4j system properly.
JAXB: RI not present. Trying Java 6 implementation.
JAXB: Using Java 6 implementation.

I am just a rookie,need your help.
Cheers!

log4j; JAXB "RI"?

PostPosted: Fri Jul 16, 2010 4:54 pm
by jason
symphony wrote:log4j:WARN No appenders could be found for logger (org.docx4j.openpackaging.parts.PartName).
log4j:WARN Please initialize the log4j system properly.


This means you haven't got log4j set up.

You want to set that up. It'll give you clues if anything goes wrong.

Also, if you are using PDF or HTML output, it needs to be setup, or you might get warning messages embedded in the output.

See the Getting Started guide for more. Essentially, you add
-Dlog4j.configuration=log4j.xml, and add log4j.xml to your runtime classpath.

There is a log4j.xml in src/main/resources.

symphony wrote:JAXB: RI not present. Trying Java 6 implementation.
JAXB: Using Java 6 implementation.


Nothing to worry about. Just informational, letting you know it is using the JAXB included in Java 6, as opposed to the downloadable reference implementation (which you could include in your endorsed dir).

Re: log4j; JAXB "RI"??

PostPosted: Fri May 27, 2011 3:19 am
by tinne
This might well be an issue, since these warnings are written to stdout, which some situations require to use for other applications (or simply need hidden).

docx4j-2.7.0-SNAPSHOT.patch.txt
I fixed a few files I stumbled across the path
(3.63 KiB) Downloaded 471 times


Unfortunately, there are in total lot of other calls to Exception.printStackTrace and usages of System.out which I rather not scan this afternoon, but which should be refactored to use log4j as well.

By the way, could you configure the forum in order to enable the file extension .patch for uploads, please?