John,
I still think this is a class loading problem. You didn't say what kind
of server you're using. If, for some reasons, that server unpacks all
application JARs into a commons local directory and loads the classes
from there, it could possibily be so that Barcode4J's
META-INF/services/org.apache.fop.fo.ElementMapping file overwrote the
FOP one. That way, FOP doesn't find its own fo:* classes and that
UnknownXMLObj might be explained. You could try to temporarily remove
the Barcode4J FOP extension from the classpath and check if that changes
anything.

At any rate, you have to make sure the individual JARs are not merged
without special handling for the META-INF/services files and that all of
the JARs are associated with the same classloader(-hierarchy).

On 06.12.2010 20:26:05 John Brady wrote:
> Hi,
> 
> I have taken a clean version of fop.jar (FOP 0.95) from here:
> http://archive.apache.org/dist/xmlgraphics/fop/binaries/
> 
> I am still getting the same issue (error attached). It is throwing the error 
> at the following call (method attached):
> 
> transformer.transform(src, res);
> 
> I am able to get it to work in eclipse under test conditions but when I 
> deploy it to my UAT server it fail at the line above. I am thinking that I am 
> missing a jar on UAT that eclipse may have included. Do you know what else 
> could cause this issue? 
> 
> Best Regards,
> John Brady
> 
> IT Specialist 
> Aerlingus.com  
> 
>  
> 
> -----Original Message-----
> From: Jeremias Maerki [mailto:d...@jeremias-maerki.ch] 
> Sent: 29 November 2010 21:09
> To: John Brady
> Subject: Re: [Barcode4j-users] barcode4j question
> 
> Hi John
> 
> This smells like a class loading problem. I'd say that FOP
> hasn't found the file META-INF/services/org.apache.fop.fo.ElementMapping
> in the classpath. That usually doesn't happen. I can only imagine that
> you've unpacked fop.jar and repacked it in a different way so the
> plug-ins are not found. After all, the main ElementMapping services file
> is normally (!) in the same JAR as the ElementMappingRegistry.
> 
> On 29.11.2010 20:27:23 John Brady wrote:
> > Hi Jeremias,
> > 
> > I am at the stage now where I am integrating the code into the booking 
> > engine. I am looking to pipe the document through into the 
> > HttpServletResponse directly by returning a byte array. My previous tests 
> > were successful when writing the contents directly to a pdf file including 
> > the barcode. Now when I try to use ByteArrayOutputStream I get the error 
> > attached (line 222 = transformer.transform(src, res);). I am using Fop 
> > 0.95. The function I am using to create the byte array is also attached in 
> > the code.txt document. Is there something obvious I am missing?
> > 
> > Kind Regards,
> > John
> 
> 
> 
> Best regards,
> Jeremias Märki
> _________________________________________________________
> Jeremias Märki, Software-Development and Consulting
> Contact Information: http://www.jeremias-maerki.ch/contact.html
> Blog: http://www.jeremias-maerki.ch/blog/
> 
> 
> ..For low fares and great deals on hotels, car hire and travel insurance 
> visit http://www.aerlingus.com
> *******************************************************************************
> This email and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they
> are addressed.  Any review, dissemination or other use of, or taking
> of any action in reliance upon, this information by persons or entities
> other than the intended recipient is prohibited.If you have received
> this email in error please notify the sender immediately and delete
> the material. 
> *******************************************************************************
> Aer Lingus Limited
> Registered in Ireland
> Company Number 9215
> Registered Office at Dublin Airport, Dublin,Ireland.
> *******************************************************************************




Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org

Reply via email to