Problems with PDF printing, using Apache FOP!

When I click on "print" link I reseive an empty file!
I done each step that was described in manual.
I don't know what to do.
Best Regards, Kostya Proskudin!

Ok, let me describe all my actions:
1. I download from http://archive.apache.org/dist/xmlgraphics/fop/source/ file fop-0.20.5-src.zip.
2. I extract it.
3. go to $ORACLE_HOME/oc4j/j2ee and copied folder fop-0.20.5.
($ORACLE_HOME - means DB home, is it right?)
4. Then I add to the end of file $ORACLE_HOME/oc4j/j2ee/home/config/application.xml
<!-- libraries below added for FOP support -->
<library path="../../../j2ee/fop-0.20.5/build/fop.jar"/>
<library path="../../../j2ee/fop-0.20.5/lib/batik.jar"/>
<library path="../../../j2ee/fop-0.20.5/lib/avalon-framework-cvs-20020806.jar" />
<!-- above libraries added for FOP support -->
5. Go to $ORACLE_HOME/oc4j/j2ee/home/default-web-app and copied there apex_for_render.jsp.
6. Open my apex_dmin .... and fill host (my DB host 10.10.10.4), port (DB port 1521 the same as tns has, is it right?) at least script "/apex_fop_render.jsp" (with "/")
Thank you!

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?

  • CUPS problems with PDF printing

    I am having all manner of problems with PDF printing.  Recently added a Lexmark MX710 and have 7 machines that were previously printing fine to an X652de a T652 as well as a Samsung CLP770.  All network printers.
    Now there are bizarre issues with PDF printing. CUPS version 1.6.1.  The MX710 will blue screen and reboot when printing one specific pdf without fail.  There are all kinds of random nonsensical results when printing from different locations.  A pdf that stalls the X and T652 with "filter error" will print from my own machine to the same printer, using the same versions of cups, .ppd file, and everything package related to cups.
    Yet other PDF files will print, while some print complete gibberish, I can't find any rhyme or reason or anything predictable about any of it other than to say printing postscript files works fine all around.
    This has been universally in KDE printing through Okular.
    I've tried some things I've found suggested, such as modifying the mime.conv as suggested by an old ubuntu thread, adding the a2ps package, all to zero effect.
    Last edited by TheWretched (2012-12-08 00:27:41)

    At this point the only reasonable explanation I can think of is that the ppd package I downloaded and installed via included shell script from lexmark for the mx710 caused this whole catastrophe.  The only common thread for this problem starting was that I used this on all of the affected machines and they now all manifest problems.  And on four of these machines this is literally all that was done, they were loaded in september, have not been updated via pacman in any way, and are running the exact same version of cups poppler, and okular that they were then, which was working, and now cannot print pdf to any printer at all without causing one of several problems depending on the printer.
    I cannot seem to get this reversed though.  I've gone so far as to force remove all the cups packages, and delete the files associated with the install script, but the problem remains afterward.  From what I can see so far all this lexmark package did was display a license agreement, then copy the ppd files in it's folder to /usr/share/ppd/Lexmark.  This particular printer, the mx710 has no .ppd available that I have found other than this one from Lexmark directly.  Open printing doesn't have anything for this model.
    This printer's driver has some kind of a cups filter driver with it that the install script presumably installs, I suspect this could be what caused the problem specifically, but I must not be removing it correctly, despite following the file removal suggestions in the Lexmark readme for uninstallation.  CUPS printing is something I am new to and only have a basic understanding of.
    To answer some specific questions I nearly forgot, I don't have cups pdf installed.  I have chrome installed which can successfully save pages to PDF, previously it could also print pdf, and presumably it prints everything as pdf given the cups pdf workflow.  That is also broken now too, so printing from the browser causes the printer to fail as well.  If I save as pdf from chrome, and print with adobe reader, it works.
    Last edited by TheWretched (2012-12-11 14:25:40)

  • Another problem with PDF printing

    Hi all.
    I try new pdf printing in Apex 3.0 with printing engine Apache FOP and BI Publisher. Both engines seems work well. I configured Apex engine to use Standard Support for pdf.
    Next I imported example application http://www.oracle.com/technology/products/database/application_express/packaged_apps/pdf_demo.zip and run it. But when I press "print" link, instead pdf output I receive error page "404 Not Found The requested URL /pls/apex/f was not found on this server."
    Apex 3.0 reside on Oracle 9.0.2 database server and use it http server with modplsql. Both Apache FOP and BI Publisher works on standalone OC4J container.
    In Apex's http-server error log I noticed next error messages:
    [Fri Apr 13 16:07:11 2007] [warn] mod_plsql: Stale Connection due to Oracle error 22293
    [Fri Apr 13 16:07:11 2007] [error] mod_plsql: /pls/apex/f ORA-22293
    ORA-22293: LOB already opened in the same transaction
    Is anybody know what to do in this situation?

    Marc, thank you for your reply.
    application.log contains next messages:
    07/04/16 17:12:13.100 10.1.3.1.0 Started
    07/04/16 17:12:15.881 xmlpserver: QuartzInitializer: Quartz Initializer Servlet loaded, initializing Scheduler...
    07/04/16 17:12:16.975 xmlpserver: QuartzInitializer: Quartz Scheduler failed to initialize: org.quartz.SchedulerConfigException: Failure occurred during job recovery. [See nested exception: org.quartz.JobPersistenceException: Couldn't clean volatile data: ORA-00942: таблица или представление пользователя не существует
    [See nested exception: java.sql.SQLException: ORA-00942: таблица или представление пользователя не существует
    07/04/16 17:12:16.975 xmlpserver: Error preloading servlet
    javax.servlet.ServletException: Failure occured during job recovery.
         at org.quartz.ee.servlet.QuartzInitializerServlet.init(QuartzInitializerServlet.java:170)
         at oracle.apps.xdo.servlet.scheduler.quartz.ExtendedQuartzInitializerServlet.init(ExtendedQuartzInitializerServlet.java:115)
         at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.java:2361)
         at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4810)
         at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4734)
         at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpApplication.java:4922)
         at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:1134)
         at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:738)
         at com.evermind.server.ApplicationStateRunning.getHttpApplication(ApplicationStateRunning.java:414)
         at com.evermind.server.Application.getHttpApplication(Application.java:545)
         at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFromReference(HttpSite.java:1990)
         at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.<init>(HttpSite.java:1909)
         at com.evermind.server.http.HttpSite.initApplications(HttpSite.java:645)
         at com.evermind.server.http.HttpSite.setConfig(HttpSite.java:290)
         at com.evermind.server.http.HttpServer.setSites(HttpServer.java:270)
         at com.evermind.server.http.HttpServer.setConfig(HttpServer.java:177)
         at com.evermind.server.ApplicationServer.initializeHttp(ApplicationServer.java:2456)
         at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1004)
         at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:131)
         at java.lang.Thread.run(Thread.java:595)
    07/04/16 17:12:17.37 xmlpserver: 10.1.3.1.0 Started
    07/04/16 17:12:56.145 xmlpserver: QuartzInitializer: Quartz Scheduler successful shutdown.
    My native language is russian, so some messages are in this language.
    I think all errors arised at initialisation stage. And later, when i trying to press printing link, no new errors was appeared.

  • 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

  • Providing security to the PDF file using apache FOP in java

    I am working on PDF file generation using Apache FOP, I have security concerns which are
    1. PDF file will be placed in a folder after generation and that should not be copied to other locations.
    2. PDF file should only have an option print nothing else. The save/save as options should never be enabled.
    3. PDF expiry date is required, so that PDF file will get expire after duration.

    HI,
    I did that too, with too much experiments.
    Code snippet for reference.
    PdfReader reader = new PdfReader(getOutputFilePath());
    PdfStamper stamper = new PdfStamper(reader, new FileOutputStream("my-new-file.pdf"));
    stamper.setDuration(1,1);
    int permissions = PdfWriter.HideMenubar & PdfWriter.HideToolbar & PdfWriter.HideWindowUI & ~( PdfWriter.AllowCopy | PdfWriter.AllowModifyAnnotations | PdfWriter.AllowFillIn | PdfWriter.AllowAssembly | PdfWriter.AllowModifyContents | PdfWriter.AllowScreenReaders);
    stamper.setEncryption(null, null,
    permissions, PdfWriter.STRENGTH40BITS);
    stamper.setFormFlattening(true);
    System.out.println(stamper.getMoreInfo());
    stamper.close();
    I am able to disable the save button, but I am unable to disable the save as option.
    It would be great help, if you can give some inputs on this.

  • Problem with pdf-printing in Adobe Acrobat Pro

    Hi,
    I have Adobe Acrobat Pro 9.4.3.
    PDF-printing has always worked great but suddenly there is some kind of problem.
    After printing a excel-document from "Print to pdf" built-in function in MacOS OR Adobes Printer I have corruptet pdf-files when showing them in Adobe Reader/Acrobat, but the MacOS Preview-software shows them correct.
    So, there cannot be any problem with the printing, but the local preview on my computer using Reader or Acrobat. I dont even use the Myriad font in the document, I use Verdana.

    You say you're using Verdana but you're not. The error message clearly shows you're using MyriadPro Bold.
    You probably recently installed the Mac OS X 10.6.7 update which has a bug with OpenType PostScript fonts like MyriadPro Bold. Either use Verdana or another TrueType or PostScript font, or revert to Mac OS X 10.6.6.
    Read about the problem here: http://www.tidbits.com/article/12078

  • Problem with pdf print

    HI frnds,
    I have got s issue here with pdf printing of a doc through the webdynpro application. What i see is that the pdf source data is passed to a component of property intercative forms in webdynpro. When the user is displaying the pdf and when he tries to save the pdf it triggers a print out .
    Can any body help me with this issue.
    Rohit

    answered

  • Acrobat 8.1.5 on Vista x64 problem with PDF Printer

    Hi all
    Forgive me if this is a newbie question... I *tried* to get direct support from Adobe and they spent the time telling me my support had "expired" rather than answer the question... nice... so thought maybe someone knows the answer.
    I have the latest version of Acrobat 8 on Vista x64.  Anytime I use the "Adobe PDF" printer to print direct to PDF from an application, the PDF gets produced OK, however the print spooler for this printer retains a print job with status "Error - Printing".
    The only way I can remove the job is to do it manually and a lot of times I have to Cancel it twice for it to work.
    Any ideas how I can stop this from happening?
    Thanks
    Steve

    Thanks... will give that a try and report back...
    Reporting back... nope it did not fix the problem.  But the repair process did damage the install of Acronis True Image so that it wouldn't load... I did a Repair of that install too and at least now I am back to where I was...
    Appreciate the help.  Anyone else have other suggestions? 
    SS

  • Problems with pdf printing

    Hello there,
    i have a problem with my cups server and two of my pc's. I have installed Arch brand new on this machines but the problem is, that i can not print any pdf documents. If i try to print, the print job is only queued at the server but it will not print the document. Other formats are no problem.
    On my other pc's i can print pdf documents without any problems.
    Is it possible that i have one tool not installed on this two pcs ??
    I use on every computer the newest software and the newest arch release.
    Regards
    Fight
    Last edited by FightRight (2008-01-03 21:00:33)

    HI there,
    i have found a solution for my problem. I downgrade the ghostscript package.
    Now i can print pdf documents without any problems. Don't ask me why
    Regards
    Fight

  • Problem with pdf printing in Apex 3.2

    Hi All,
    I have apex 3.2 in Oracle 11.1, and the OS is OEL4. I ran the post installation script for granting connect privileges for APEX_030200 also.I have installed BI Publisher in another machine, and configured the URL in apex.
    But the Pdf printing part is still failing.
    when i open the pdf ,the Error is "Adobe Reader could not open 'Applications[1].pdf' because it is either not a supported file type or because the file has been damaged(for exmple, it was sent as an email attachment and wasn't correctly decoded)."
    I tried to open the file using text edtor, the text inside is "ORA-20001: The printing engine could not be reached because either the URL specified is incorrect or a proxy URL needs to be specified"
    My apex machine is 64 bit and BI Publisher machine is 32 bit.
    I ran the following query to verify that the grants were given:
    SELECT * FROM DBA_NETWORK_ACL_PRIVILEGES;
    The result of this query is the following:
    ACL     ACLID     PRINCIPAL     PRIVILEGE     IS_GRANT     INVERT     START_DATE     END_DATE
    /sys/acls/power_users.xml     (RAW)     FLOWS_030000     connect     true     false     (null)     (null)
    /sys/acls/power_users.xml     (RAW)     FLOWS_030100     connect     true     false     (null)     (null)
    /sys/acls/power_users.xml     (RAW)     APEX_030200     connect     true     false     (null)     (null)
    /sys/acls/local-access-users.xml     (RAW)     FLOWS_030100     connect     true     false     (null)     (null)
    /sys/acls/local-access-users.xml     (RAW)     APEX_030200     connect     true     false     (null)     (null)
    Please suggest a solution for this.
    Thanks,
    Sunil

    Sunil
    Verify that the BI server is accessible from the 11g database by executing the SQL below in the 11g database
    select utl_http.request('http://<bi_server_host>:<bi_server_port>/xmlpserver/convert') from dual;
    The response returned should be something similar to
    <HTML><HEAD><TITLE>500 Internal Server Error</TITLE></HEAD><BODY><H1>500 Internal Server Error</H1><PRE>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.</PRE></BODY></HTML>

  • Problem with PDF printing

    Hi All,
    I have recently applied the 63 security notes (pending from one year) recommended by SAP in report RSECNOTE. After applying the note I am facing the problem of printing PDF documents.
    When I am trying to do print preview, its showing message
    "Error in occurred in display of PDF (HTML Control)"
    This problem was not in QAS, but the same problem is coming in QAS as well after moving the requests related to that 63 notes. I am sure its because of these security notes only.
    In PRD its printing the PDF smoothly and I have to solve it before moving these requests to PRD.
    I searched on OSS but couldn't find any relative notes.
    In my system I have Basis 700 patch 23 and Kernel 700 patch 278.
    Please help me out to find the solution for it.
    Regards,
    Ramesh.

    Hi,
    Can you please check the country settings from the t.code OY01 and also check the decimal point.
    Also please check this sap not :-
    Note 1089995 - No PDF document can be shown
    Regards
    Bhuban
    Edited by: bhuban_2010 on Sep 26, 2011 2:33 PM

  • Weblogic 10.3.4 as report printer for PDF printing using apex_fop.jsp

    Hello,
    Is it possible to use the apex_fop.jsp in combination with Oracle Weblogic 10.3.4 for PDF printing?
    We have managed to get our Apex application to print PDF documents using Apache FOP with Oracle Weblogic 10.3.3 or Apache Tomcat 6 as a report printer.
    But when we are trying the Oracle Weblogic 10.3.4 server as report printer, we will get the Error 500--Internal Server Error error in the pdf.
    One of application server log shows the error "Expected Node-set in Path Expression".
    Regards,
    Mathieu Meeuwissen
    Edited by: Meeuwtje on 17-jan-2012 17:00

    Steve,
    I am using JSF2.0 and getting javax.el.ExpressionFactory NoClassDefFound issues.
    OEPE Helios
    Weblogic 10.3.3
    I have an EAR containing one WAR.
    WEB-INF/lib
    el-api-2.2jar
    el-imp-2.2.jar
    jsf-api.jar (2.1.1)
    jsf.impl.jar (2.1.1)
    jstl.jar (1.1.0-D13)
    web.xml has
         <context-param>
              <param-name>com.sun.faces.expressionFactory</param-name>
              <param-value>com.sun.el.ExpressionFactoryImpl</param-value>
         </context-param>
    EAR has
    weblogic-application.xml with
    <wls:prefer-application-packages>
    <wls:package-name>org.eclipse.persistence.*</wls:package-name>
    <wls:package-name>javax.faces.*</wls:package-name>
    <wls:package-name>com.sun.faces.*</wls:package-name>
         <wls:package-name>com.sun.el.*</wls:package-name>
         <wls:package-name>javax.el.*</wls:package-name>
    </wls:prefer-application-packages>
    I see by your post that JSF2.0 support can be solved by either deploying a shared-library or using the weblogic.Deployer utility. Unfortunately, we don't have access to change the Weblogic instance in any way. I was hoping that using the prefer-application-packages would be sufficient to use alternative classes to Weblogic's but I have not been able to get it to work for the javax.el classes. I have tried not including javax.el and the app deploys but then accessing a page produces a javax.el.ELResolver no method found for invoke. Invoke being a newer method defined in el-api-2.2.jar. If I was able to convince them to add some shared libs, what are all the jars that would be required to make this work?
    Any suggestions would be greatly appreciated.
    Thanks
    John

  • Printing problem with .pdf

    27" iMac (2012), OS X 10.9.1, Canon MF4770n laser connected by ethernet cable through AirPort Extreme, HP C4200 connected directly via USB
    The Problem:  I received a .pdf file via e-mail and downloaded it.  It consisted of a series of forms in unknown original format.  I needed to print them out, sign them and return them.  I opened .pdf in Preview but when I tried to print it, I got only blank pages from the printer.  The printer seemed to be operating normally in all other respects.
    What I have tried: 
    1.  Successfulloy printed material from other applications using the same computer and Canon printer.
    2.  Successfully printed a different .pdf file from Preview using the same computer and Canon printer.
    3.  Successfully printed the offending .pdf from Preview on the same computer and the HP ink jet printer.
    4.  Successfully printed the offending .pdf from Adobe Reader using the same computer and Canon printer.
      Since I was able to print the .pdf using Adobe Reader, this problem is not critical but it is rather mysterious.  Any suggestions would be appeciated.

    Using ASK.Com - my favorite web browser - does not require you to download anything to use it just enter the url -
    I entered the following:
    Why is my HP laser printer printing slow
    Below is just one of the documents - this one is HP support.
    http://h20564.www2.hp.com/hpsc/doc/public/display?docId=mmr_kc-0100314
    *just a heads up - whenever you have problems with a printer
    1. stop the print queue on your system
    2. shut the printer power off for about a minute to clear any  printer memory
    3. turn on the printer
    4. start the print queue
    *also - using ASK.com have also found answers on this site without the struggle of going through searching this site.

  • 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

Maybe you are looking for

  • How to connect VGA Monitor via Thunderbolt Display

    I've been using my Macbook Air mid 2013 with a Samsung monitor connected via the Mini Display Port to VGA adapter. I've now bought a 27" Thunderbolt display, which I've connect to my Mac, and assumed I could now daisy chain my samsung monitor into th

  • IPhone 5 wifi not connecting unless extremely close to router...?

    I've had my iPhone 5 for about 6 months. I've never experienced any problems at all with it. Over the last week, I've had major wifi problems. My phone only connects to my home wifi if I'm sitting next to the router, like a 7 foot radius from it. The

  • Best Router for both a Mac Pro with Leopard and a Dell

    I have posted this question in another forum, but maybe this discussion page is the better one for my question, especially in light of all the connectivity problems I'm reading about for people who have upgraded to Leopard - Can anyone suggest a good

  • Abnormal memory allocation in RMI Server on Unix

    Hi all, I have a problem with an RMI server application that run on Unix tru64 v. 5.1b (jvm 1.4.2). I start the application in the following way: 1) start rmiregistry with the options -J-Drmi.server.hostname=myhostname myPort. 2) Start my class Start

  • Oracle State Session Store throws an Unhandled Exception with Xml

    I wish to use the Oracle.Net Session Store to store a value to session. The value or object if you prefer is marked as serializable in order to be placed within the store. Unfortunately, when running the code I get an unhandled exception error being