Apache fop and localization

There is probably not much of a chance to get an answer but still I'll try. During conversion of an xls-fo file into pdf all cyrillic symbols get screwed (replaced with #). There is a guide on how to embed fonts via the configuration file. However if you follow the procedure an exception is thrown (here are the top 3 lines)
org.apache.fop.util.LogUtil.handleError(LogUtil.java:38)
org.apache.fop.render.PrintRendererConfigurator.getFontInfoFromConfiguration(PrintRendererConfigurator.java:265)
org.apache.fop.render.PrintRendererConfigurator.buildFontListFromConfiguration(PrintRendererConfigurator.java:207)If you google it then it says that replacing the fop library with an older version solves the problem (I guess it means it could be some bug). It's true that the exception disappears but 1. the older library is inconsistent with other libraries (like jeuclid) and 2. the cyrillic symbols are not displayed anyway (may be b/c there is some problem with the fonts file).
Anyway my point is that I am now completely lost about how to add support for non-English symbols in fop. If anyone has some experience to share then it is very much appreciated. Another thing is that I have basically no knowledge on how font support works in java. If there is some information that should be known then directing to it is also greatly appreciated.

javiator wrote:
If you google it then it says that replacing the fop library with an older version solves the problem (I guess it means it could be some bug). It's true that the exception disappears but 1. the older library is inconsistent with other libraries (like jeuclid) and 2. the cyrillic symbols are not displayed anyway (may be b/c there is some problem with the fonts file).
What makes you think that your current environment would display them correctly even if they were there? That should be the first step to verify.
But anyways if you find a solution and it is a matter of incompatible libraries then you can solve it with a custom class loader.

Similar Messages

  • PDF PRINTING using Apache FOP and Oracle Containers for J2EE

    Hi,
    I am having major confusion about the pdf printing in Oracle XE and Apex 3.1.2.00.02
    It clearly states that this is an available option on the Oracle website.
    According to Apex there are two options for printing report regions.
    Standard - which is free
    Advanced - which uses BI and requires a licence
    Standard requires me to have Apache FOP (which is provided by Oracle in the Apex release) and Oracle Containers for J2EE (OC4J)
    Where my understanding of all this falls down is the part where I am downloading the Oracle Containers for J2EE and the license agreement states this cannot be used in a production system (only as a protptype). Can anyone clarify this? This is surely a required componenet and for the standard report printing which is supposed to be free.
    My problem is that I need to have a database system on a laptop that will go off site for a number of weeks. We need report printing options.
    Can anyone help with this. im desperate.
    Kind regards
    colin mclay

    no not yet with Application Server.
    I have tried to compare the settings to another installation with a separeted oc4j as described in the howto. But at the moment i found no mistakes.
    If i call the url adresse like:
    http://localhost:18101/fop/apex_fop.jsp
    i get:
    500 Internal Server Error
    Servlet error: java.lang.ClassNotFoundException: fop.apex__fop
    I installed it another time with these settings:
    Web Anwendung= .../fop.war (selected war file from apex install directory)
    Anwendungsname= fop
    URL zuordnen= /fop
    I would like to know if its possible to use the fop.war out of apex install directory with the Application server? In the standalone version (as described in howto) it works. But if you install it there you don't need to define an URL.
    Is the URL /fop correct or what do i have to insert there?

  • Apache FOP and encoding

    Hi,
    I'm using FOP as reports PDF renderer, but experience a problem:
    The document is rendered correctly from HTMLDB (I can read the XML, it's UTF-8 encoded).
    The JSP file has enconding conversion set to UTF-8 as well.
    When the document returns from FOP the national characters has been replaced...
    Does anyone know how to set this up? (Until now I used the examples included with the download).
    Regards,
    Henrik Neumann

    Hello,
    Most likly the problem is that you do not have the proper fonts in your environment to render those fonts. I know there is a way to do it but I don't know how off the top of my head. Look on google for FOP and fonts and you should fond something pretty quick.
    Here's something I found real quick. http://xmlgraphics.apache.org/fop/fonts.html
    Remember google is your friend.
    Carl

  • Apache FOP and BI Publisher

    If we are configuring BI publisher should we have to configure Apache FOP too.
    How will it determine which one to use.

    Pls ignore my question. I think I got it. Its either Advanced or Standard.

  • Apache FOP and oc4j

    After performing all steps that was written in
    http://www.oracle.com/technology/products/database/application_express/html/configure_printing.html
    when I click on "Print" link under my report I receive a file with the next ERROR:
    500 Internal Server Error
    Servlet error: An exception occurred. The current application deployment descriptors do not allow for including it in this response. Please consult the application log for details.
    Best Regards, Kostya Proskudin

    Rene,
    In what way is this relevant?Because at this point I know next to nothing about your architecture, personally the way I diagnose problems is to gather as much information (that I believe to be relevant) before I suggest something.
    The question about which edition of the DB you have was to establish whether you already have EM installed (if you were running XE then you wouldn't have and would need to install the OC4J yourself). The thought I had was whether you already had a running EM that was conflicting with the OC4J that you had also installed.
    Sorry if my question offended you in some way...I can't see why though.
    John.

  • PDF printing by Apache FOP : what are the prerequisites ?

    Hello,
    I'm actually looking for a way to print reports, and I've 2 questions :
    1) If I'm not wrong there are three means : BI Publisher, Apache FOP and an other XSL-FO like Cocoon...
    -> For budgetary reasons, we can't use BI Publisher.
    -> Besides, my company owns the Oracle Standard Edition, so I'm not even sure we can use Apache FOP : in every documentation FOP is deployed in App Server or Enterprise Manager, and we don't have those. OC4J seems installed on our server but it may not work without Application Server...
    -> So is Cocoon the solution ?
    2) We're about installing Apex 4.0. We want to be able to print interactive reports, with aggregations and sums. Does it possible and are there differences between report engines ?
    Thanks a lot !
    Fanny

    Hi Fanny,
    I stand to be corrected, but my understanding regarding OC4J licensing is this.
    OC4J can be downloaded and installed in standalone configuration from OTN under the OTN license, which is fairly restrictive and means that it cannot be used for production or commercial purposes. This applies whether it is installed on the database server or on a separate server. In order to license it you need to buy an OAS or Weblogic license. This is in contrast to Oracle's HTTP server, which can be installed standalone and is included in the database server license provided it is installed on the same server as the database. If the HTTP server is installed on a separate server to the database then it too requires an OAS or Weblogic license.
    My guess for this anomally is that the HTTP server is based on Apache, an open source product and it was originally installed as part of the database up until version 9i. After that it was separated out as a companion product. Where as OC4J is based on a proprietary product called Onion, which Oracle acquired. Commercially going forward, Oracle is pushing Weblogic. If you want a free app server then you can opt for the free version of Glassfish, an Oracle product or Tomcat.
    If you do need a supported environment you can also get Standard One versions of Weblogic and OAS which are considerably cheaper than the Enterprise versions and you can get a supported version of Glasfish for around the same cost.
    You should also note that Oracle BI plus OAS or Weblogic is a complete development and deployment product for business intelligence reporting, whereas Apache FOP and an app server is purely a deployment environment. If you wish to do something more sophisticated than the standard PDF option available in Apex, which is pretty basic, you will need to acquire some sort of XSL-FO production tool. As alluded to previously, Java4less produce a minimally priced one, but there are others in the market place.
    Regards
    Andre

  • Apache FOP Capabilities

    Hi all,
    When using Apache FOP, is it possible to achieve any of the following :
    1. Enable printing at the page level rather than at reports region ?
    2. If the report contains some images is it possible that these appear in the PDF output as well?
    3. Is it possible to produce XSL-FO files on the APEX server and then transfer these files to a reporting engine (Business Objects Xi) to create PDF files for printing.
    Thank you and Kind Regards,
    Ana-Maria

    Hi Luis,
    You can create some incredibly complex and rich reports using the BI Publisher (BIP) integration that APEX allows. In your report template (using the BIP plugins) you can use conditional logic to make colour columns/rows etc depending on certain criteria.
    It is possible to do this yourself using the (free) Apache FOP solution, however it involves a great deal of hand-crafting the XSL-FO code yourself (not a task to be taken lightly, but entirely possible).
    If you have the budget for it (or your requirement is urgent), then I highly recommend using BIP, if you don't have the budget then I recommend Apache FOP and a bottomless coffee pot and ready access to a local bakery (you're going to need the caffeine and sugar to get you through the manual XSL-FO coding).
    Another possibility is to investigate PL/PDF (www.plpdf.com) which might suit your needs.
    Hope this helps,
    John.

  • Apache FOP Compatible with BI Publisher XSL Layout?

    Hi,
    I've tried a very basic XSL layout in Apache FOP and BI Publisher and I'm able to get the same PDF result in both FOP and BIP. As I create more complex layouts, I'm wondering if the layouts that I create in one or the other (FOP vs. BIP) can be moved to the other platform; are there any XSL features/constructs I should avoid that don't transfer over well? Any comments?
    I'd like to be able to use them interchangeably but I want to know what I'm getting myself into before I do that...if I run into issues, can this forum help me work through those issues?
    Thanks...
    Kevin

    Hi,
    I've tried a very basic XSL layout in Apache FOP and BI Publisher and I'm able to get the same PDF result in both FOP and BIP. As I create more complex layouts, I'm wondering if the layouts that I create in one or the other (FOP vs. BIP) can be moved to the other platform; are there any XSL features/constructs I should avoid that don't transfer over well? Any comments?
    I'd like to be able to use them interchangeably but I want to know what I'm getting myself into before I do that...if I run into issues, can this forum help me work through those issues?
    Thanks...
    Kevin

  • PDF Printing with XSL-FO and Apache FOP

    Can anyone show me in the right direction for this? I've been hitting a wall for the past 2 weeks or so and it's really starting to infuriate me. How am I supposed to work this out? Where do I start? Let's say I create a layout file with a WYSIWYG XSL editor, in what format do I export it? XSL, XSLT or XSL-FO? I figured it was XSL-FO, but who knows. I tried them all anyways, but nothing seems to work. I seem to be missing a step or something, 'cause something's definitely not right.
    I created a report query (which actually contains two queries):
    select distinct
    V_Usager.NUMEROPERSONNE NoPersonne,
    V_Usager.NOMUSUEL || ', ' || V_Usager.PRENOM Usager,
    V_Usager.DATENAISSANCE DateNaissance,
    V_Usager.DESCRIPTION Sexe,
    ID_Demande,
    NomNature || nvl2(PrecisionNature,', Précision: ' || PrecisionNature,'') Nature,
    NomCadre,
    decode(IND_Securitaire, 1, 'Oui', '0', 'Non') Securitaire,
    NomRessource,
    DT_Demande,
    Note,
    ltrim(decode(IND_DEMANDEIVAC,1,'Dossier IVAC','') || decode(IND_DEMANDEFLORES,1,', Dossier Florès','') || decode(IND_RISQUECRISE,1,', Risque de crise','') || decode(IND_MENOTTES,1,', Menottes nécessaires','') || decode(IND_ADRESSECONFIDENTIELLE,1,', Adresse confidentielle','') || decode(IND_TELEPHONECONFIDENTIEL,1,', Téléphone confidentiel','') || decode(IND_RISQUEFUGUE,1,', Risque de fugue','') || decode(IND_RISQUEVIOLENCE,1,', Risque de violence','') || decode(IND_MALDESTRANSPORTS,1,', Mal des transports','') || decode(IND_MEDICAMENT,1,', Médicament à remettre','') || decode(IND_SIEGE,1,'',2,', Siège fourni',3,', Siège d''enfant requis',4,', Siège de nouveau-né requis',5,', Siège d''appoint requis') || decode(IND_HANDICAP,1,'',2,', Handicap mental',3,', Handicap physique') || decode(IND_MEDICAMENT,1,', Médicament à remettre','') || decode(IND_JUMELER,1,'',2,', Ne pas jumeler',3,', Ne pas jumeler avec une fille',4,', Ne pas jumeler avec un garçon') || decode(IND_TRANSPORTEUR,1,'',2,', Transporteur féminin',3,', Transporteur masculin') || nvl2(REMARQUEPRECISIONS,', ' || REMARQUEPRECISIONS,''),',') Precisions,
    Disp1.PRENOM || ' ' || Disp1.NOM SaisiePar,
    Disp2.PRENOM || ' ' || Disp2.NOM || nvl2(Elem2.Description, ', ' || Elem2.Description,'') Requerant,
    ltrim(nvl(NOMPERSONNEAVISER,'') || nvl2(TELEPHONEPERSONNEAVISER_1,' ' || substr(TELEPHONEPERSONNEAVISER_1,1,3) || '-' || substr(TELEPHONEPERSONNEAVISER_1,4,3) || '-' || substr(TELEPHONEPERSONNEAVISER_1,7,4),'') || nvl2(TELEPHONEPERSONNEAVISER_2,' ' || substr(TELEPHONEPERSONNEAVISER_2,1,3) || '-' || substr(TELEPHONEPERSONNEAVISER_2,4,3) || '-' || substr(TELEPHONEPERSONNEAVISER_2,7,4),''),',') PersonneAAviser
    from
    TBL_Demande_1,
    TBL_Demande_TRSP_1,
    V_Dispensateur Disp1,
    V_Dispensateur Disp2,
    V_ElemStruct Elem2,
    V_Usager,
    TBL_CadresLegaux,
    TBL_Natures,
    TBL_Ressources
    where
    DemandeID = :P7_IDDEMANDE
    and ID_Demande = DemandeID
    and ID_Usager = UsagerID
    and ID_CLegal = IDCadre
    and ID_Nature = IDNature
    and IND_Ressource = IDRessource
    and ID_Intervenant LIKE Disp1.NumeroDispensateur
    and ID_SaisiePar LIKE Disp2.NumeroDispensateur
    and Elem2.ElemStructID = ID_ElemStructSaisiePar
    select
    to_char(DT_TRANSPORT, 'dd/mm/yyyy') || ' à ' || HR_TRANSPORT || nvl2(DUREE,' durée: ' || DUREE,'') DateTRSP,
    decode(IND_TYPETRANSPORT,1,'Aller',2,'Retour',3,'Aller/Retour') TypeTransport,
    case IND_TYPETRANSPORT
    when 1 then
    DEP_NOM || ', ' || DEP_ADRESSE || ', ' || DEP_CPOSTAL
    when 2 then
    DEST_NOM || ', ' || DEST_ADRESSE || ', ' || DEST_CPOSTAL
    when 3 then
    DEP_NOM || ', ' || DEP_ADRESSE || ', ' || DEP_CPOSTAL
    end AdresseDEP,
    case IND_TYPETRANSPORT
    when 1 then
    DEP_PRECISION
    when 2 then
    DEST_PRECISION
    when 3 then
    DEP_PRECISION
    end ContactDEP,
    case IND_TYPETRANSPORT
    when 1 then
    substr(DEP_TELEPHONE,1,3) || '-' || substr(DEP_TELEPHONE,4,3) || '-' || substr(DEP_TELEPHONE,7,4) || nvl2(DEP_POSTE,' poste ' || DEP_POSTE,'')
    when 2 then
    substr(DEST_TELEPHONE,1,3) || '-' || substr(DEST_TELEPHONE,4,3) || '-' || substr(DEST_TELEPHONE,7,4) || nvl2(DEST_POSTE,' poste ' || DEST_POSTE,'')
    when 3 then
    substr(DEP_TELEPHONE,1,3) || '-' || substr(DEP_TELEPHONE,4,3) || '-' || substr(DEP_TELEPHONE,7,4) || nvl2(DEP_POSTE,' poste ' || DEP_POSTE,'')
    end TelDEP,
    case IND_TYPETRANSPORT
    when 1 then
    DEST_NOM || ', ' || DEST_ADRESSE || ', ' || DEST_CPOSTAL
    when 2 then
    DEP_NOM || ', ' || DEP_ADRESSE || ', ' || DEP_CPOSTAL
    when 3 then
    DEST_NOM || ', ' || DEST_ADRESSE || ', ' || DEST_CPOSTAL
    end AdresseDEST,
    case IND_TYPETRANSPORT
    when 1 then
    DEST_PRECISION
    when 2 then
    DEP_PRECISION
    when 3 then
    DEST_PRECISION
    end ContactDEST,
    case IND_TYPETRANSPORT
    when 1 then
    substr(DEST_TELEPHONE,1,3) || '-' || substr(DEST_TELEPHONE,4,3) || '-' || substr(DEST_TELEPHONE,7,4) || nvl2(DEST_POSTE,' poste ' || DEST_POSTE,'')
    when 2 then
    substr(DEP_TELEPHONE,1,3) || '-' || substr(DEP_TELEPHONE,4,3) || '-' || substr(DEP_TELEPHONE,7,4) || nvl2(DEP_POSTE,' poste ' || DEP_POSTE,'')
    when 3 then
    substr(DEST_TELEPHONE,1,3) || '-' || substr(DEST_TELEPHONE,4,3) || '-' || substr(DEST_TELEPHONE,7,4) || nvl2(DEST_POSTE,' poste ' || DEST_POSTE,'')
    end TelDEST,
    decode(RET_NOM || ', ' || RET_ADRESSE || ', ' || RET_CPOSTAL, ', , ', '', RET_NOM || ', ' || RET_ADRESSE || ', ' || RET_CPOSTAL) AdresseRET,
    RET_PRECISION ContactRET,
    substr(RET_TELEPHONE,1,3) || '-' || substr(RET_TELEPHONE,4,3) || '-' || substr(RET_TELEPHONE,7,4) || nvl2(RET_POSTE,' poste ' || RET_POSTE,'') TelRET
    from
    TBL_Demande_1,
    TBL_Demande_TRSP_1
    where
    DemandeID = :P7_IDDEMANDE
    and ID_Demande = DemandeIDI then created a report layout in XSL-FO with XSLfast, but it won't work at all. I always get the dreaded "corrupted file" when I test my PDF Report... any ideas why it doesn't work? Have I missed something obvious?
    Best regards,
    Mathieu

    Hello Mathieu
    i assume that the default PDF printing is working, but that you want to create some better looking reports and therefore use a different non-generic XSL-FO.
    You can do several things in Apex but you can use the Apache-Fop conversion also indepent from Apex.
    What you need is:
    1) An XML (Data) File. You can get it from your report query when you say export it to XML.
    2) The XSL-FO (Layout) file. THis is the processing instruction that says how convert the XML Data into an XML-FO. You can create it manually or with some tool.
    3) The next step is to render the XML-FO into any output format (pdf, rtf, html)
    The creation of the XML-FO and of the PDF are done by the apache fop converter (cocoon or Batik framework if I remember correctly) in a single process but you can influence it so that both steps are done separately. See also: http://xmlgraphics.apache.org/fop/0.95/running.html
    The advantage is that you usually get much better error messages from the single steps.
    My recommendation would be to do all the steps with a very basic report first.
    Then gradually improve the complexity of the report, the data and the layout.

  • PDF Creation and Saving in Database using Apache FOP

    Hi,
    I read lot of topics in this forum about using Apache FOP for creating PDF documents and I have configured the same and works fine.
    When user clicks a button, the PDF file is generated and it downloads the document. How can I make the PDF document save in the database.
    I would like to provide a interactive report with a link and they can download the document later.
    Thanks
    Karthik

    Hi, Karthik
    Think here how to save pdf in APEX 3.0 you can find more information about this
    Michael

  • BIP Word Template and Apache FOP

    Hello:
    Can I create a report format using the BIP Word template .. export it as XSL-FO file and use it with the open source Apache-FOP from APEX?
    Is there some technical constraints or licensing issues with doing this ?
    Yesh

    The xslfo, you created from BIP , will have reference to functions , which are customized function written by oracle BIP in JAVA,
    so the apache-FOP has to know , that these functions are custom ones, not as normal XSL-fo...
    Manual Conversion from RTF to XSL-FO, and using them in Standard support should work i guess.
    The standard Supportgives only to XSL-FO, Advanced support helps you to get the RTF template , but for this, installation of BIP licensed is needed :)
    With e-biz license,i dont think, you can install BIP separately, that has to be with E-biz only.

  • Apache FOP 0.95 and  WebLogic 10.3

    I am using Jdeveloper with Weblogic 10.3 and Apache FOP 0.95 to create PDF documnents. I keep getting the NoClassDefError. Here is the stack trace ....
    java.lang.ExceptionInInitializerError
         at rcopia.util.FopUtil.<clinit>(FopUtil.java:26)
         at rcopia.prescription.FopScripPrinter.postRun(FopScripPrinter.java:134)
         at rcopia.prescription.ScripMaster.doRun(ScripMaster.java:107)
         at rcopia.prescription.ScripMaster.run(ScripMaster.java:53)
         at rcopia.prescription.ScripHandler.runPrinter(ScripHandler.java:481)
         at rcopia.prescription.ScripHandler.runPrinter(ScripHandler.java:427)
         at rcopia.prescription.ScripHandler.process(ScripHandler.java:347)
         at rcopia.prescription.ScripHandler.run(ScripHandler.java:307)
         at rcopia.screen.CommonScreen.doSendPrescription(CommonScreen.java:866)
         at rcopia.screen.CommonScreen.doSendPrescription(CommonScreen.java:837)
         at rcopia.screen.ReviewPrescriptionScreen.send(ReviewPrescriptionScreen.java:311)
         at rcopia.screen.ReviewPrescriptionScreen.process(ReviewPrescriptionScreen.java:85)
         at rcopia.screen.Screen.doProcess(Screen.java:205)
         at rcopia.screen.Screen.run(Screen.java:121)
         at rcopia.screen.Screen.run(Screen.java:91)
         at rcopia.screen.ScreenHandlerInstance.run(ScreenHandlerInstance.java:159)
         at rcopia.screen.ScreenHandlerInstance.process(ScreenHandlerInstance.java:58)
         at rcopia.servlet.WebRequestHandler.runRequest(WebRequestHandler.java:74)
         at rcopia.servlet.RequestHandler.runInSynchronizedSession(RequestHandler.java:135)
         at rcopia.servlet.RequestHandler.doHandle(RequestHandler.java:864)
         at rcopia.servlet.RequestHandler.handleOne(RequestHandler.java:820)
         at rcopia.servlet.RequestHandler.handleWithoutUTM(RequestHandler.java:776)
         at rcopia.servlet.RequestHandler.handle(RequestHandler.java:743)
         at rcopia.servlet.RequestHandler.runOne(RequestHandler.java:449)
         at rcopia.servlet.RequestHandler.runStart(RequestHandler.java:263)
         at rcopia.servlet.RequestHandler.run(RequestHandler.java:173)
         at rcopia.servlet.RcopiaServlet.doPost(RcopiaServlet.java:210)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3498)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(Unknown Source)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@da44a7 for org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.NoClassDefFoundError: org/apache/log4j/Logger) (Caused by org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@da44a7 for org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.NoClassDefFoundError: org/apache/log4j/Logger))
         at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:543)
         at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)
         at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:209)
         at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351)
         at org.apache.fop.apps.FopFactory.<clinit>(FopFactory.java:64)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Is this WL 10.3, or 10.3.3?
    It looks like fop is having a problem finding the log4j
    Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@da44a7 for org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.NoClassDefFoundError: org/apache/log4j/Logger) (Caused by org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@da44a7 for org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.NoClassDefFoundError: org/apache/log4j/Logger))By default, WL 10.3.3 installs an older version of log4j  and references it in your setDomainEnv script:${ALSB_HOME/lib/external/log4j_1.2.8.jarIn our case, we just put our log4j_1.2.14.jar file in the same place and changed the script to point to it
    ${ALSB_HOME}/lib/external/log4j_1.2.14.jar

  • Installing and Configuring Apache FOP ?

    Hello,
    I dont quite get when you install and configure Apache FOP whether its talking about Enterprise manager dbconsole, grid control, or Oracle application server?
    http://www.oracle.com/technology/products/database/application_express/html/configure_printing.html#05
    Any have any ideas?
    thanks!
    Message was edited by:
    Mark Griffin

    EM for the Application Server

  • Error while configuring apache FOP for printing

    Dear All,
    I have a requirement to print a report using custom layout.
    I have installed apex 4.2 by configuring embedded PL/SQL gateway. I used the link:
    http://docs.oracle.com/cd/E37097_01/doc/install.42/e35123/overview.htm#CJABBFIH
    And for printing purpose I am installing apache FOP. I have installed oc4j in standalone mode. I followed the link:
    http://www.oracle.com/technetwork/developer-tools/apex/application-express/configure-printing-093060.html
    But after setting oc4jadmin password, I am getting following error
    13/01/15 12:52:07 WARNING: EJBContainer.postInit Error generating wrappers for f
    ile:/E:/app/OracleDb/j2ee/home/applications/admin_ejb.jarjava.lang.Instantiation
    Exception: javac.exe not found under C:\Program Files\Java\jre7, please use a va
    lid jdk or specify the location of your java compiler in server.xml using the <j
    ava-compiler .../> tag
    I have JAVA_HOME and ORACLE_HOME system environment variables set up as mentioned in the guide.
    I am not well versed with java.
    Can anyone please throw light on this issue and help me resolve this problem. This is an urgent requirement.
    Thanks and regards,
    Deepika.

    Deepika R wrote:
    13/01/15 12:52:07 WARNING: EJBContainer.postInit Error generating wrappers for f
    ile:/E:/app/OracleDb/j2ee/home/applications/admin_ejb.jarjava.lang.Instantiation
    Exception: javac.exe not found under C:\Program Files\Java\jre7, please use a va
    lid jdk or specify the location of your java compiler in server.xml using the <j
    ava-compiler .../> tag
    I have JAVA_HOME and ORACLE_HOME system environment variables set up as mentioned in the guide.
    Seems like the Java EE container is looking for the Java compiler. Try installing the Java Development Kit (JDK) and respecify your JAVA_HOME accordingly. HTH.

  • LOGO in PDF file (Apache FOP)

    Hi all...I'm using the Apache FOP PDF printing option with the jsp packaged in the AppEx 3.0.1 install. I would like to put a logo in the header of the generated PDF file. I made a compy of the default generic columns layout and added this to the header section in Page Template:
    <fo:block>
    Test Header Changes
    <fo:external-graphic src="file:///tmp/FastenalLogo.png"/>
    </fo:block>
    The following error is then generated in the logs:
    07/10/31 10:50:44 [INFO] Using oracle.xml.parser.v2.SAXParser as SAX2 Parser
    07/10/31 10:50:44 [INFO] building formatting object tree
    07/10/31 10:50:44 [INFO] setting up fonts
    07/10/31 10:50:51 [INFO] [1]
    07/10/31 10:50:51 [WARNING] table-layout=auto is not supported, using fixed!
    07/10/31 10:50:53 [ERROR] Error while creating area : Error creating FopImage ob ject (file:/tmp/FastenalLogo.png) : Jimi image library not available
    07/10/31 10:50:54 [INFO] [2]
    07/10/31 10:50:55 [ERROR] Error while creating area : Error creating FopImage ob ject (file:/tmp/FastenalLogo.png) : Jimi image library not available
    07/10/31 10:50:55 [INFO] [3]
    07/10/31 10:50:55 [ERROR] Error while creating area : Error creating FopImage ob ject (file:/tmp/FastenalLogo.png) : Jimi image library not available
    07/10/31 10:50:56 [INFO] Parsing of document complete, stopping renderer
    I also tried using a URL (with appropriate syntax), but that generated these errors:
    07/10/31 10:44:14 [ERROR] Error while creating area : No ImageReader for this ty pe of image (http://epsilon.fastenal.com:7784/i/FastenalLogo.jpg)
    07/10/31 10:44:14 [INFO] [3]
    07/10/31 10:44:15 [ERROR] Could not load external SVG: http://epsilon.fastenal.c om:7784/i/FastenalLogo.jpg<Line 1, Column 50>: XML-20190: (Fatal Error) Whitespa ce required.
    07/10/31 10:44:15 [ERROR] Error while creating area : No ImageReader for this ty pe of image (http://epsilon.fastenal.com:7784/i/FastenalLogo.jpg)
    07/10/31 10:44:15 [INFO] Parsing of document complete, stopping renderer
    Is it not possible to import an external image file into a PDF rendered by the Apache FOP? Any help would be greatly appreciated.
    Thanks,
    Leigh

    Hi Carl --
    I changed the image source to this:
    <xsl:variable name="_SECTION_NAME" select="string('master0')"/>
    <fo:static-content flow-name="region-header">
    <fo:block>
    Test Header Changes
    <fo:external-graphic src="http://epsilon.fastenal.com:7784/i/FastenalLogo.jpg" />
    </fo:block>
    <fo:block xsl:use-attribute-sets="text text_2 text_0 #PAGE_HEADER_ALIGNMENT#">
    <fo:inline xsl:use-attribute-sets="page-header">#PAGE_HEADER#</fo:inline>
    </fo:block>
    </fo:static-content>
    I can access the image through my web browser using the URL, but my log is throwing these errors:
    07/10/31 13:01:18 [WARNING] table-layout=auto is not supported, using fixed!
    07/10/31 13:01:20 [ERROR] Could not load external SVG: http://epsilon.fastenal.com:7784/i/FastenalLogo.jpg<Line 1, Column 50>: XML-20190: (Fatal Error) Whitespace required.
    07/10/31 13:01:20 [ERROR] Error while creating area : No ImageReader for this type of image (http://epsilon.fastenal.com:7784/i/FastenalLogo.jpg)
    07/10/31 13:01:20 [INFO] [2]
    07/10/31 13:01:21 [ERROR] Could not load external SVG: http://epsilon.fastenal.com:7784/i/FastenalLogo.jpg<Line 1, Column 50>: XML-20190: (Fatal Error) Whitespace required.
    07/10/31 13:01:21 [ERROR] Error while creating area : No ImageReader for this type of image (http://epsilon.fastenal.com:7784/i/FastenalLogo.jpg)
    07/10/31 13:01:21 [INFO] Parsing of document complete, stopping renderer
    Could the fo block be in the wrong place in the document? I'm not very familiar with XSL-FO and may have just placed it wrong.
    One other thing I just noticed. The webserver is actually using SSL, which on windows systems results in a pop-up about security. If I change the URL to https using the SSL port, I receive a message about security certificates.
    Thanks,
    Leigh
    Message was edited by:
    ljohnson74

Maybe you are looking for

  • Report for foreign currency revaluation - FAGL_FC_VAL

    Hello Experts, I have executed FAL_FC_VAL - Foreign Currency Revaluation Program. System posted some accounting entry for the same. However, I want to know how system calculated and for which invoices it calculated. For this I want a report from SAP,

  • How to change properties for some controls in runtime ?

    hi, I would like to change some of the properties for some controls in front panel in runtime. Number of control properties I want to change is depending of a log file user opens in final application. I attach an example where I'm trying to change th

  • What are the impacts of IB control set to No at Master level

    What are the impacts of IB control set to No at Master level, but the item is serialized at master and Org level. These are service items.

  • Ovi email error. DESPERATE!

    Hi guys,   I'm Aaron and I'm having a very annoying problem with  my email. For some strange reason I can log on to my account however I cannot seem to view my email. The loading symbol just keeps going on and on, this applies for my inbox and all my

  • Charging iPod on pc that doesn't have iTunes

    Is it ok and safe to charge my iPod on a computer (like at work) that doesn't have iTunes and has a USB 1 port? What it the best way to disconnect? Being new to an iPod I don't want to harm it. =)