allcolor / YaHP-Converter

YaHP is a Java library that allows you to convert an HTML document into a PDF document.
GNU Lesser General Public License v2.1
56 stars 23 forks source link

log4j not working after using yahpdf #30

Open ravieze opened 9 years ago

ravieze commented 9 years ago

hi,

in continuation to the link: https://github.com/allcolor/YaHP-Converter/issues/3

I have started to use the jarfiles given in the link; however i see that my server logging has stopped completely since i access the library. I went through the code and assume the issue to be at:

CClassloader.installUrlStreamHandlerFactory something related to classloading.

the last statements i see on the server is always 2014-12-16 23:09:23,018 INFO STDOUT Initializing... 2014-12-16 23:09:23,041 INFO STDOUT Installing new URLStreamHandlerFactory... 2014-12-16 23:09:23,050 INFO STDOUT Installing new URLStreamHandlerFactory DONE.

any workarounds/ fixes u can give?

ravieze commented 9 years ago

Ok got it working..

instead of using default constructor use:..

CYaHPConverter converter = new CYaHPConverter(false);

So in the code they do some custom class loading which is screwing up things and sending false.. will disable it