Re: Commons Logging issues
On Thu, Sep 29, 2011 at 6:25 PM, Paul Giesenhagen p...@quilldesign.com wrote: SO there was a directory that had the commons logging files in it .. removed those - restarted the CF Service and still have the same error - so at this time, it I believe is just loading the CF defaults. Do you have a piece of code that demonstrates the problem ? -- Mack ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347841 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Commons Logging issues
First we're loading up the latest batik files.. Then the second cfscript bombs out on the transcoder.transcode(input,output); with the duplicate commons.logging.Log error. It seems to not like the /pdf-transcoder.jar - which is the file that converts from SVG to PDF cfscript batik_paths = [ ExpandPath(/store/batik/lib/batik-ext.jar), ExpandPath(/store/batik/lib/batik-dom.jar), ExpandPath(/store/batik/lib/batik-bridge.jar), ExpandPath(/store/batik/lib/batik-css.jar), ExpandPath(/store/batik/lib/batik-gvt.jar), ExpandPath(/store/batik/lib/batik-util.jar), ExpandPath(/store/batik/lib/batik-svg-dom.jar), ExpandPath(/store/batik/lib/batik-parser.jar), ExpandPath(/store/batik/lib/xml-apis-ext.jar), ExpandPath(/store/batik/lib/xml-apis-ext.jar), ExpandPath(/store/batik/lib/xerces_2_5_0.jar), ExpandPath(/store/batik/lib/batik-xml.jar), ExpandPath(/store/batik/lib/batik-anim.jar), ExpandPath(/store/batik/lib/batik-script.jar), ExpandPath(/store/batik/lib/batik-awt-util.jar), ExpandPath(/store/batik/lib/batik-codec.jar), ExpandPath(/store/batik/lib/batik-transcoder.jar), ExpandPath(/store/batik/lib/pdf-transcoder.jar) ]; application.loader = createObject(component, store.javaloader.JavaLoader).init(batik_paths); /cfscript cfscript transcoder = application.loader.create(org.apache.fop.svg.PDFTranscoder); inputStream = application.loader.create(java.io.StringBufferInputStream).init(svg); input = application.loader.create(org.apache.batik.transcoder.TranscoderInput).init(inputStream); outputStream = application.loader.create(java.io.FileOutputStream).init(pdfPath); output = application.loader.create(org.apache.batik.transcoder.TranscoderOutput).init(outputStream); transcoder.transcode(input, output); outputStream.flush(); outputStream.close(); /cfscript On Thu, Sep 29, 2011 at 6:25 PM, Paul Giesenhagen p...@quilldesign.com wrote: SO there was a directory that had the commons logging files in it .. removed those - restarted the CF Service and still have the same error - so at this time, it I believe is just loading the CF defaults. Do you have a piece of code that demonstrates the problem ? -- ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347843 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Commons Logging issues
Delete org\apache\commons\logging from pdf-transcoder.jar, download the newest common logging jar file from http://commons.apache.org/logging/ and load that with JavaLoader. -- Mack ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347844 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Commons Logging issues
Mack, Gave that a shot and removed all of the files and directories from the .jar .. uploaded it ... loaded the logger with Javaloader and still not firing - now it's just throwing a 500 error that I can't see .. generic. If I comment out the transcoder.transcode(input,output) I don't get the error. Paul -Original Message- From: Mack [mailto:mrsmith.w...@gmail.com] Sent: Friday, September 30, 2011 9:00 AM To: cf-talk Subject: Re: Commons Logging issues Delete org\apache\commons\logging from pdf-transcoder.jar, download the newest common logging jar file from http://commons.apache.org/logging/ and load that with JavaLoader. -- Mack ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347845 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Commons Logging issues
Paul, Do you have access to CF's logs ? You should see something in the exception.log ... -- Mack ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347846 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Commons Logging issues
are you not able to use the Batik classes that come with CF rather than loading your own ? On Fri, Sep 30, 2011 at 4:03 PM, Mack mrsmith.w...@gmail.com wrote: Paul, Do you have access to CF's logs ? You should see something in the exception.log ... -- Mack ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347847 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Commons Logging issues
- Gaining access to the log files now - No, the ones that come with CF are outdated ... (per my developer). -Original Message- From: Russ Michaels [mailto:r...@michaels.me.uk] Sent: Friday, September 30, 2011 10:27 AM To: cf-talk Subject: Re: Commons Logging issues are you not able to use the Batik classes that come with CF rather than loading your own ? On Fri, Sep 30, 2011 at 4:03 PM, Mack mrsmith.w...@gmail.com wrote: Paul, Do you have access to CF's logs ? You should see something in the exception.log ... -- Mack ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347848 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Commons Logging issues
how about just replacing the Batik files that comes with CF with the newer ones, or removing the ones from CF so they don't conflict with yours ? On Fri, Sep 30, 2011 at 4:30 PM, Paul Giesenhagen p...@quilldesign.com wrote: - Gaining access to the log files now - No, the ones that come with CF are outdated ... (per my developer). -Original Message- From: Russ Michaels [mailto:r...@michaels.me.uk] Sent: Friday, September 30, 2011 10:27 AM To: cf-talk Subject: Re: Commons Logging issues are you not able to use the Batik classes that come with CF rather than loading your own ? On Fri, Sep 30, 2011 at 4:03 PM, Mack mrsmith.w...@gmail.com wrote: Paul, Do you have access to CF's logs ? You should see something in the exception.log ... -- Mack ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347849 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Commons Logging issues
I am not very versed in the question I am about to ask - so please give me some latitude as I may not be asking the right question or assuming too much about the problem. We're trying to work with Batik and we're loading up a number of classes - one particular I think is the issue is the 'pdf-transcoder.jar' .. I believe when it loads (Using Mark Mandel's Javaloader) it bombs out during the calling of the transcode function saying: Invalid class loader hierarchy. You have more than one version of 'org.apache.commons.logging.Log' visible, which is not allowed. I believe in the pdf-transcoder.jar the LogFactory it trying to load .. but CF is already loading it and thus causing our problems ... Any suggestions on getting around this? (Or ask any questions, that may help define my question) Thank you, Paul Giesenhagen Quill Design ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347787 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Commons Logging issues
if you remove the duplicated class file then it wont be able to load it, and will then hopefully use the one CF has loaded instead. On Thu, Sep 29, 2011 at 3:55 PM, Paul Giesenhagen p...@quilldesign.com wrote: I am not very versed in the question I am about to ask - so please give me some latitude as I may not be asking the right question or assuming too much about the problem. We're trying to work with Batik and we're loading up a number of classes - one particular I think is the issue is the 'pdf-transcoder.jar' .. I believe when it loads (Using Mark Mandel's Javaloader) it bombs out during the calling of the transcode function saying: Invalid class loader hierarchy. You have more than one version of 'org.apache.commons.logging.Log' visible, which is not allowed. I believe in the pdf-transcoder.jar the LogFactory it trying to load .. but CF is already loading it and thus causing our problems ... Any suggestions on getting around this? (Or ask any questions, that may help define my question) Thank you, Paul Giesenhagen Quill Design ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347788 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Commons Logging issues
SO there was a directory that had the commons logging files in it .. removed those - restarted the CF Service and still have the same error - so at this time, it I believe is just loading the CF defaults. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347790 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm