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?

Similar Messages

  • 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!

  • Oracle Containers for J2EE Deployment Guide???

    Hi. I am trying to find a document referenced in the 10.1.3 EA1 help text, entitled Oracle Containers for J2EE Deployment Guide. I've searched the Oracle online documentation and the JDeveloper help text but haven't found this. Any pointers?
    Johnny Lee

    I didn't see anything in the 10.1.2 docset here:
    http://download-east.oracle.com/docs/cd/B14099_16/nav/docindex.htm

  • 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.

  • 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

  • PDF Printing  APEX 3.2.1  (APACHE FOP) which OC4J version  for Oracle 11g?

    I am using APEX 3.2.1 on Oracle 11.g (under windows XP)
    I want to test PDF printing (in advanced turorial) with standard config ( APACHE FOP no Oracle BI publisher).
    When I look oracle doc : http://www.oracle.com/technology/products/database/application_express/html/configure_printing.html)
    prerequisites for installing WAR file (Installing and Configuring Apache FOP) imply downlad for Oracle Containers for J2EE (10.1.3.2) ,
    once there : http://www.oracle.com/technology/software/products/ias/htdocs/utilsoft.html)
    the accessed page seems restricted to Oracle Application Server 10g Software Downloads.
    My question : is the last Version (10.1.3.5.0 : Oracle Containers for J2EE 10g (OC4J) (build #090727, 91 MB) - J2EE 1.4 compatible with EJB 3.0 / JPA 1.0 support ) also VALID for Oracle 11g ?

    I just installed a similar setup with the following software combination and it works.
    win32_11gR1_database.zip
    oc4j_extended_101350.zip
    jdk-1_5_0_22-windows-i586-p.exe

  • Setup for PDF printing using Embedded PL/SQL Gateway, 11G DB and APEX 3.1

    I've setup APEX on 11G using the Embedded PL/SQL Gateway. Its all working well.
    I've enabled Network Services and can see a couple of printers I've defined after running
    select * from DBA_NETWORK_ACLS;
    and also can see the FLOWS_030100 and FLOWS_030000 users when I run
    select * from DBA_NETWORK_ACL_PRIVILEGES;
    I have been through http://www.oracle.com/technology/products/database/application_express/html/configure_printing.html and can see that I have a few choices ...
    * Oracle BI Publisher,
    * Apache FOP or
    * some other XSL-FO Processing Engine.
    I am not able to use Oracle BI Publisher ... license required:-( ... so that leaves the other two choices .. as I'm using the Embedded PL/SQL Gateway the Apache FOP is not an option ..
    that leaves other XSL-FO Processing Engine .. has anyone had any experience in this area .. and can give me a few pointers ...
    I'm kinda surprised I have little choice .. am I missing something?
    Regards
    Adam

    Adam,
    >> as I'm using the Embedded PL/SQL Gateway the Apache FOP is not an option
    Not a true statement. Using Oracle Containers for J2EE (10.1.3.2), as listed in that document you reference, is all you need to use Apache FOP. You don't know the full-blown Apache.
    Joel

  • PDF generation with Apache FOP.

    DB: Release 10gR2 -> 10.2.0.3
    Apex : 3.1
    OS: Linux RedHat 4 Update 6.
    Apache : 1.3 from the Companion DB CD.
    Our enviroment have been done with 10gR2 and the Companion CD Apache, are running in diferent servers.
    I was trying to follow the steps for get the apache FOP working reading the document.
    http://www.oracle.com/technology/products/database/application_express/html/configure_printing.html#05
    Step 5.1
    Oracle Containers for J2EE (10.1.3.2)
    Available for download from OTN
    Installation instructions and configuration
    I don't see the 10.1.3.2 at OTN. Actual releases are 10.1.3.3 -> 10.1.3.4
    Can I use any other one newer?
    What to download ?
    The Oracle Containers for J2ee (OC4J)?
    Any other one?
    Thank you in advance for your help
    Jose

    As part of the ducomentation to install the OC4J. You have to have the JAVA_HOME , ORACLE_HOME and J2EE_HOME.
    According to document
    http://download.oracle.com/docs/cd/B32110_01/web.1013/b28950/install.htm#CEGBCJJH
    Question:
    If I have install the Apache from the Companion CD and my ORACLE_HOME is
    /u01/httpdev2/oracle/product/10.2.0
    The directory have the j2ee and others. If I try to install the OC4J I will be overwriting the rest of directory.
    How I install the OC4J?
    I have to create a new ORACLE_HOME?
    I have to install Application Server and then the OC4J?
    Thank you.
    Jose.

  • 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

  • Printing XLS, HTML, or RTF using Apache FOP

    Hi,
    Is it possible to print XLS, HTML, or RTF reports using Apache FOP? If not, is there another open source or free print server that will do this?
    Thank you.
    Martin

    Hello,
    >>
    Your going to want to study the Cocoon sitemap concept to see how to pipeline the xml and xsl to the right output.
    >>
    To get this working correctly you need to understand the Cocoon sitemap concept and how to read data out of the XML file your posting in order to pipeline it to the right rendering format. It's pretty much a hands on affair so it depends on what your trying to do, sorry there is no easier way to do it.
    In a future versions it will be easier to do this as you will be able to select specific end points per report.
    Regards,
    Carl
    blog : http://carlback.blogspot.com/
    apex examples : http://apex.oracle.com/pls/otn/f?p=11933:5

  • Chinese Charcters in PDF using Apache FOP

    Hi,
    I am creating a PDF using Apache FOP.
    This data contains Chinese characters.
    On APEX 3.1, I couldn't contain Chinese characters in PDF.
    On APEX 3.2, is it possible?
    Is there any way that I don't have to use BI Publisher?
    Please advise on this.
    Thanks

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

  • FOP and oracle parser

    Hi
    i developed a web application that takes an xml file which the user specifies and after validating it the application uses FOP to produce a PDF file. But the problem is that by default oc4j uses oracle.xml.parser.v2 parser but FOP need xerces. How can i override the usage of oracle's xml parser.
    Please help because i spent quite some time on this project and this is the problem i almost at the end of the project run it to.
    thanks,
    mate

    I did that allready and stil my NullPointerException printout looks like this:
    java.lang.NullPointerException
         void oracle.xml.jaxp.JXTransformer.reportXSLException(oracle.xml.parser.v2.XSLException)
              JXTransformer.java:762
         void oracle.xml.jaxp.JXTransformer.transform(javax.xml.transform.Source, javax.xml.transform.Result)
              JXTransformer.java:335
         void oracle.xml.jaxp.JXTransformerHandler.endDocument()
              JXTransformerHandler.java:135
         void oracle.xml.parser.v2.NonValidatingParser.parseDocument()
              NonValidatingParser.java:269
         void oracle.xml.parser.v2.XMLParser.parse(org.xml.sax.InputSource)
              XMLParser.java:147
         void oracle.xml.jaxp.JXXMLFilter.parse(org.xml.sax.InputSource)
              JXXMLFilter.java:91
         void org.apache.fop.apps.Driver.render(org.xml.sax.XMLReader, org.xml.sax.InputSource)
              Driver.java:498
         void srcsi.pdf.PDFPrikazAction.renderXML(org.apache.fop.apps.XSLTInputHandler, javax.servlet.http.HttpServletResponse)
              PDFPrikazAction.java:135
         org.apache.struts.action.ActionForward srcsi.pdf.PDFPrikazAction.execute(org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
              PDFPrikazAction.java:95
         org.apache.struts.action.ActionForward org.apache.struts.action.RequestProcessor.processActionPerform(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, org.apache.struts.action.Action, org.apache.struts.action.ActionForm, org.apache.struts.action.ActionMapping)
              RequestProcessor.java:484
         void org.apache.struts.action.RequestProcessor.process(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
              RequestProcessor.java:274
         void org.apache.struts.action.ActionServlet.process(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
              ActionServlet.java:1482
         void org.apache.struts.action.ActionServlet.doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
              ActionServlet.java:525
         void javax.servlet.http.HttpServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
              HttpServlet.java:760
         void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
              HttpServlet.java:853
         void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.ResourceFilterChain.doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
              ResourceFilterChain.java:65
         void FilterEncoding.doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse, javax.servlet.FilterChain)
              FilterEncoding.java:22
         void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
              ServletRequestDispatcher.java:560
         void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(javax.servlet.ServletRequest, javax.servlet.http.HttpServletResponse)
              ServletRequestDispatcher.java:306
         boolean com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.ApplicationServerThread, com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.EvermindHttpServletRequest, com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.EvermindHttpServletResponse, java.io.InputStream, java.io.OutputStream, boolean)
              HttpRequestHandler.java:767
         void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.run(java.lang.Thread)
              HttpRequestHandler.java:259
         void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.run()
              HttpRequestHandler.java:106
         void EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run()
              PooledExecutor.java:803
         void java.lang.Thread.run()
              Thread.java:484

  • Apex with XE10g/Tomcat 6.0.13 PDF Print with Apex  FOP.WAR

    Apex with XE10g/Tomcat 6.0.13 PDF Print with Apex fop.war/apex_fop.jsp
    Hello,
    Excuse me bad english.
    I have a problem with Oracle XE and Printing from Reports over Tomcat 6.0.13.
    I have update Oracle XE with Apex 3.1 and it works fine.
    Now i have tried to Print a report to PDF. So i have deployed the FOP.WAR from Apex Utilities under Tomcat.
    I see in Tomcat Manager http://localhost:8888/manager/html/list that the FOO
    has been deployed and is running.
    If i try to print then i get this Message down to this page.
    Can anybody give me a hint to solve this problem???
    Hint
    To resolve the problem i have installed Oracle OC4J with same Port and deployed
    the same foo.war file.
    Then works and all printing from Oracle Apex work fine and okay.
    So i thing the Apex and Oracle work correct.
    But we have a small Application so i would prefer to work with Tomcat a application Server.
    Becaus of previous Errors have copied some *.jar files to C:\tomcat6.0.13\lib
    but i thing this is not the Problem.
    18.03.2007 18:12 546.765 xml.jar
    18.03.2007 18:07 634.772 xmlmesg.jar
    18.03.2007 18:14 1.238.899 xmlparserv2.jar
    10.06.2007 22:59 674.005 xquery.jar
    18.03.2007 18:11 3.059 xsqlserializers.jar
    18.03.2007 18:14 194.691 xsu12.jar
    10.11.2005 13:13 7.043.169 tools.jar
    .... and preinstalled files
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: java.lang.IllegalStateException: getOutputStream() has already been called for this response
    org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:541)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:429)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    root cause
    java.lang.IllegalStateException: getOutputStream() has already been called for this response
    org.apache.catalina.connector.Response.getWriter(Response.java:604)
    org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:198)
    org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:125)
    org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:118)
    org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:186)
    org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFactoryImpl.java:118)
    org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryImpl.java:77)
    org.apache.jsp.apex_005ffop_jsp._jspService(apex_005ffop_jsp.java:120)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    ------------------------------------------------------------------------

    at the end of the apex_fop.jsp put the follow code just before the driver.run(); line:
    out.clear();
    out = pageContext.pushBody();
    and explanation of why this works is here:
    http://forums.sun.com/thread.jspa?threadID=5307942

  • How to save .pdf file using office word and excel

    Can someone help me how to save .pdf files using office word and excel?  I reinstalled my adobe 7.0 pro in my new pc and before I was able to do it but with my old pc.

    For anything after Office 2003, you have to print to the Adobe PDF printer. If you installed AA 7 on OS newer than XP, you may have to do a workaround to get it to work. With later versions of WORD you can always use the MS plugin for creating PDFs.

Maybe you are looking for