FOP and htmldb

I tried to did the steps of the following technical note
http://www.oracle.com/technology/pub/notes/technote_htmldb_fop.html
(Rendering Oracle HTML DB Reports as PDFs Using Formatting Objects Processor)
but I have a problem with the step 5 - I don't know wich port to use.
8888 is not the good one.
My Htmldb database is in the server A and my Oc4j is on a server B. I use the Oc4J of my infra on 10g AS. Is it good ?

Hi,
not sure if you recognized this, but this is an Oracle Forms forum. The Oracle HTMLDB forum - aka Application Express - is available here
Oracle Application Express (APEX)
Frank

Similar Messages

  • 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

  • Oracle XE and HTMLDB is just great

    Fast up and running.
    And HTMLDB that has been around for some time is now extremely easy to program, and the programming interface is very intuitive. I hate to write HTML but this does it. Fast and easy.
    I am running the HTMLDB 2-day course from document B16376-01, and I believe that there is an error in page 5-9 and 5-10. The text refers to a column p_idx, and it should really be product_id.
    Worse, under the heading "ADD A PROCESS POINT", it is necessary to change the process point from the default of "On load - before header" to "On submit - after computations and validations".
    Thanks.

    Torben,
    Thanks for reporting this documentation error. We'll make whatever needs fixing gets fixed.
    Sergio

  • What the differences between htmldb 1.6 and htmldb 1.6.0

    I want to know what is different between htmldb 1.6 and htmldb 1.6.0. In January I download htmldb 1.6 from "DOWNLOAD" now it is htmldb 1.6.0 published in May.
    Do I need re-install?

    335567,
    No need to re-install.
    Sergio

  • License information for oracle and HTMLDB

    Anybody knows which metalink document or where I can found information about getting license for Oracle Database 10g , oracle10gAS Forms&Report server and HTMLDB 2.0 to deploye on the web..?

    Hello,
    HTML DB v2.0 (Oracle Application Express, by its new name) does not need separate licensing, as it is part of the database license. For all the rest of the items in your post, you can get a "first impression" on the Oracle on-line store, but the best, I believe, is to contact a local Oracle sales person. They can give you the best information with current prices.
    Regards,
    Arie.

  • Problems with a New installation on 10GR2 and HTMLDB 2.0

    I'm trying to build a new HTMLDB server using 10GR2 on Suse Linux.
    The database is fine, and I've pulled the HTTP server from the 10GR2 companion CD which I can connect to ok. I downloaded and installed HTMLDB 2.0 without errors.
    Following the 2.0 post install docs, it talks about HTTP 9.0.3 and Oracle 10G Release 1 - nothing about 10G Release 2.
    The 10G instructions says to modify the marvel.conf file - except I don't have one anywhere on the server.
    Has anyone else managed to build a fresh install using 10Gr2 and HTMLDB 2.0 ? - it looks like something in the config has changed.
    Dougie McGibbon

    Had exactly the same problem and lot's of people will have it. Just posted the solution here, hope the devs will adjust the manual.
    HTMLDB 2.0 Manual is faulty. Install on DB 10.2 and 10.2 Companion
    Cheers

  • ORA-27101 and htmldb not working

    I'v downloaded and installed ODB 10c Express Edition, bu can't get running nothing
    Can't connect with sqlplus and htmldb also not working.
    Windows XP Proffessional SP2
    SQL> connect "SYS"/"&&sysPassword" as SYSDBA
    ERROR:
    ORA-12705: Cannot access NLS data files or invalid environment specified
    SQL> set echo on
    SQL> //create or replace directory DB_BACKUPS as 'C:\oraclexe\app\oracle\flash_recovery_area';
    SP2-0640: Not connected
    SQL> begin
    2      dbms_xdb.sethttpport('8080');
    3      dbms_xdb.setftpport('0');
    4 end;
    5 /
    SP2-0640: Not connected
    SQL> create spfile='C:\oraclexe\app\oracle\product\10.2.0\server\dbs/spfileXE.ora' FROM pfile='C:\oraclexe\app\oracle\product\10.2.0\server\config\scripts\init.ora';
    SP2-0640: Not connected
    SQL> shutdown immediate;
    ORA-01012: not logged on
    SQL> connect "SYS"/"&&sysPassword" as SYSDBA
    ERROR:
    ORA-12705: Cannot access NLS data files or invalid environment specified
    SQL> startup ;
    ORA-01078: failure in processing system parameters
    ORA-01565: error in identifying file 'C:\oraclexe\app\oracle\product\10.2.0\server\dbs/spfileXE.ora'
    ORA-27041: unable to open file
    OSD-04002: unable to open file
    O/S-Error: (OS 2) The system cannot find the file specified.
    SQL> select 'utl_recomp_begin: ' || to_char(sysdate, 'HH:MI:SS') from dual;
    SP2-0640: Not connected
    SQL> execute utl_recomp.recomp_serial();
    SP2-0640: Not connected
    SP2-0641: "EXECUTE" requires connection to server
    SQL> select 'utl_recomp_end: ' || to_char(sysdate, 'HH:MI:SS') from dual;
    SP2-0640: Not connected
    SQL> alter user hr password expire account lock;
    SP2-0640: Not connected
    SQL> alter user ctxsys password expire account lock;
    SP2-0640: Not connected
    SQL> alter user outln password expire account lock;
    SP2-0640: Not connected
    SQL> spool off;

    We have checked, this is a known bug.Bug 4657820 - NLS:XENT10201-050913:FAIL TO INSTALL WINDOWS XE UNDER RUSSIAN LOCALE.
    The simptom is that installation fails without error messages when the installation is performed under the following locale.
    - Russian
    - Estonian
    - English - South Africa
    - Spanish - Dominican Republic
    The workaround is to change the user locale to something else before the XE installation.

  • Problem in IAS Server with generation of PDF with FOP and XML parsing

    Dear co.forumers :
    We are developing an application that generates a pdf document with FOP Apache utilities, and this PDf is stored in a folder of the server. Firts of all, a DDBB data is retrieved using java ( jdbc) middleware classes ( servlets ), and with these data, the pdf is generated using FOP. In these process, he data retrieved from the DDBB is converted in a XML file , and the with the XSL FOP utility, the pdf is generated.
    In the other hand, we have another application that consults data from a java beans, using a JSP, generates a XML with the data of the beans, and with this XML, and with a XSL file generates and html , with the data and fixed text.
    Both applications have been deployed as a separated WebApp in the IAS. Both use Xalan as XML parser amb Xerces is used aswell.
    So, the problem is , after generating a pdf with the firts application, every html generated via JSP-XML-XSL transformation in the second application is shown completelly bad formated. All fixed text are wrongly composed, and the text that should appear in textFields and ComboBoxes is also bad formated. The XML with the data is well generated, so the problem is in the parsing of these XML and the conversion in html through XSL. We have to re-initiate the server and then everything goes well again. If no pdf is launched, no problem occurs with the other application.
    How an a WEB APP pplication can affect to another, installed both in different folders of the IAS ? We tried to change Xalan version and FOP version, but no result.
    Is this a Poltergeist ?? and X file , maybe ?
    Has anyone had the same problem ?
    Pleae, any help will be very wellcomed.

    A PDF document may be generated in the JDeveloper OC4J server.
    http://www.oracle.com/technology/pub/notes/technote_vohra_fop.html

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

  • OC4J, fop, and 11g

    I see some post on this though nothing is totally clear.
    I need to enable PDF printing.
    I am using the HTTP Server downloaded from Oracle
    I am going to install the latest version of oc4j since the default looks like 10.1.3.0 instead of 10.3.1.x.
    Has anyone had success with this?

    Marc,
    Thanks for the reply.
    I was able to do somethings to see if the installation was operational.
    I entered into a browser
    http://myserver:8080/ and the XDB server asked for a login. This is where Apex 3.1 resides on the 11g installation.
    I also put in http://myserver:8080/f?p:202:9003:sesionid:FLOW_XLMP_OUTPUT_R4541901588105877_en-us
    I had to sign into the application and the File Download box appeared. I clicked Save and get the 404 Not Found error.
    I looked at the Shared Components>Report Layouts and there are no layouts. Is the base template missing?
    I created a template and selected it in the Report Layout of the Print Attributes and the same error was written to the output file.
    I wonder if there is a permissions issue with the FOP installation. Is that possible? Is there a way to check? I assume Annonymous needs to have r/w permissions to whatever directories are being used by FOP.
    TIA,
    Sam

  • Advanced Report Formating and HTMLDB?

    Hello,
    I do have created a 'report' component type based on a SQL query with this output:
    Alien|1979|Ridley Scott|Sci-Fi|DVD|http://www.imdb.com/title/tt
    Alien|1979|Ridley Scott|Action|DVD|http://www.imdb.com/title/tt
    My desired output is this:
    Alien|1979|Ridley Scott|Sci-Fi|DVD|http://www.imdb.com/title/tt
    ____|____|__________|Action|____|____________________________
    The "|" is a column border. Basically I do have 2 rows where all column values are duplicated except for genre (Action, Sci-Fi). I would like to have noly one row, and Action right below Sci-Fi. In SQL, I can use BREAK ON NODUPLICATES, but how to achieve this in HTMLDB?
    In addition, I would like to have "http://www.imdb.com/title/tt" as an hyperlink (clickable).
    Thank you for any advice.
    DanielD.

    Please see my response to your break formatting question:
    More than 3 breaks on report's columns?

  • FOP and XSQL

    Hi,
    i'm trying to use fop with xsql.
    When i execute the sample emptable.xsql i receive the following error message :
    XSQL-017: Unexpected Error Occurred
    java.lang.NoClassDefFoundError: org/xml/sax/helpers/DefaultHandler
    at oracle.xml.xsql.serializers.XSQLFOPSerializer.serialize(XSQLFOPSerializer.java:50)
    at oracle.xml.xsql.XSQLPageProcessor.process(XSQLPageProcessor.java, Compiled Code)
    at oracle.xml.xsql.XSQLServlet.doGet(XSQLServlet.java:60)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:499)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
    at org.apache.jserv.JServConnection.processRequest(JServConnection.java:435)
    at org.apache.jserv.JServConnection.run(JServConnection.java:290)
    at java.lang.Thread.run(Thread.java:479)
    i work with the 0.18.1 version of fop, the db is the 9i version and the xsqlserializer is take from the release candidate 1 of jdeveloper. I try with all version of fop, but i don't have success.
    Which is the right configuration of all components to work correctly with fop ?
    Thanks,
    Stefano.

    I'm using the XSQL servlet 9.2.0.2.0 and FOP 0.20.3. But you have to write your own FOPSerializer. I foun this source here in the forum:
    import org.w3c.dom.Document;
    import java.io.PrintWriter;
    import oracle.xml.xsql.*;
    import org.apache.fop.apps.*;
    import org.apache.log.*;
    import org.apache.log.format.*;
    import org.apache.log.output.io.*;
    import org.apache.avalon.*;
    import java.io.*;
    public class XSQLFOP203Serializer implements XSQLDocumentSerializer {
    private static final String PDFMIME = "application/pdf";
    private static final String CONFPATH = "/usr/local/fop/conf/userconfig.xml";
    public void serialize(Document doc, XSQLPageRequest env) throws Throwable {
    try {
    // Open user config file
    File userConfigFile = new File(CONFPATH);
    Options options = new Options(userConfigFile);
    // First make sure we can load the driver
    Driver FOPDriver = new Driver();
    // Setup logging
    Hierarchy hierarchy = Hierarchy.getDefaultHierarchy();
    PatternFormatter formatter = new PatternFormatter("[%{priority}]: %{message}\n%{throwable}" );
    LogTarget target = null;
    target = new StreamTarget(System.out, formatter);
    hierarchy.setDefaultLogTarget(target);
    Logger log = hierarchy.getLoggerFor("fop");
    log.setPriority(Priority.INFO);
    FOPDriver.setLogger(log);
    // Then set the content type before getting the reader/
    env.setContentType(PDFMIME);
    FOPDriver.setRenderer(FOPDriver.RENDER_PDF);
    FOPDriver.setOutputStream(env.getOutputStream());
    FOPDriver.render(doc);
    catch (Exception e) {
    // Cannot write PDF output for the error anyway.
    // So maybe this stack trace will be useful info
    e.printStackTrace(System.err);
    Hope this helps.
    Uwe

  • 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

  • FOP and XSQL problem

    Hi All
    I am using XDK 10 and FOP 20.5, see my previous post - it all works fine.
    However I have found a weird thing and that is that the .xsql file is executed twice when using FOP, but only once when using a normal XSLT stylesheet.
    Anyone else noticed that?
    TIA
    Richard

    I figured out the problem. The version of Acrobat Reader 6.0 that I am using seems to load the document again if it does not display properly the first time round. I have got XSQL file caching on, but I disabled caching on my browser. This effectively overrides the XSQL file caching of the xsql servlet.
    Regards
    Richard

Maybe you are looking for

  • Lost track of my index file

    i need to transfer the new site i made in iweb through fetch. i know that i should replace the index.htm file in fetch with the new iweb index.htm file. but somehow, i cannot remember where i should get the index file... i have an iweb folder under m

  • I can't get MacFreelance and GoFreelance to Sync

    I have a MacBook Pro running 10.7.4 and an iPhone running 5.1.1 I have version 3.13 of MacFreelance on my Mac and 1.02 of GoFreelance on my iPhone. According to support Article 102 from the summitsoft web site I should be able to pair both devices vi

  • Getting the current path of the file in a JavaBean

    Hello, I'm using a JavaBean with a jsp code. The JavaBean :     public String  ValidateUser(String user,String pass)           String Name = user;           String Pass = pass;           String  ReturnValue = "NOT OK";         try              Class.

  • Worse performance with Radeon HD 6750m than Intel 3000?

    Lately when i play games (specifically World of Warcraft and Skyrim) and watch movie i get worse FPS and performance on my dedicated GPU than intel 3000. i called apple care and they had me reset the VRAM(?) and something else, i forget. to get rid o

  • Publishing air apps with native extension with Flash CS6 on Windows

    Hi all, is there any trick to publish air apps with Flash CS6 on Windows? I tried all native extensions from devnet, but nothing work to me. I read on Mac is possibility to specify the iOS SDK folder in publish settings, but on Windows it´s missing.