How to: XDK10 and FOP 20.5 - this works

Hi All
Let me share with you all how to get XDK 10 and FOP 20.5 working. Below are all the versions of files that you require:
XDK 10
I use all the .jar files from the /lib directory
FOP 20.5
fop.jar
avalon-framework-cvs-20020806.jar
batik.jar
xalan-2.4.1.jar
xercesImpl-2.2.1.jar
The next thing is that I rewrote the xsqlserializer.jar file and here is the code:
package oracle.xml.xsql.serializers;
import org.w3c.dom.Document;
import org.apache.fop.messaging.MessageHandler;
import oracle.xml.xsql.XSQLPageRequest;
import oracle.xml.xsql.XSQLDocumentSerializer;
import org.apache.fop.apps.Driver;
import org.apache.avalon.framework.logger.Logger;
import org.apache.avalon.framework.logger.ConsoleLogger;
* Tested with the FOP 0.20.3RC release from 19-Jan-2002
public class XSQLFOPSerializer implements XSQLDocumentSerializer {
private static final String PDFMIME = "application/pdf";
public void serialize(Document doc, XSQLPageRequest env) throws Throwable {
try {
// First make sure we can load the driver
Driver FOPDriver = new Driver();
// Tell FOP not to spit out any messages by default.
// You can modify this code to create your own FOP Serializer
// that logs the output to one of many different logger targets
// using the Apache LogKit API
Logger logger = new ConsoleLogger(ConsoleLogger.LEVEL_INFO);
MessageHandler.setScreenLogger(logger);
FOPDriver.setLogger(logger);
// Some of FOP's messages appear to still use MessageHandler.
MessageHandler.setOutputMethod(MessageHandler.NONE);
// Then set the content type before getting the reader/
env.setContentType(PDFMIME);
FOPDriver.setOutputStream(env.getOutputStream());
FOPDriver.setRenderer(FOPDriver.RENDER_PDF);
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);
The above defnitely works for me and should work for you too. Think of it as an early christmas present.
Best wishes
Richard

Hi, richardgossow
I used the similar code as yours and it worked in Jdev10.1.3.0.0 and ias 10.1.3.1.for FOP 0.20.5.
WhenI upgrade my Jdev from 10.1.3.0.0. to 10.1.3.3.0.4517, it still worked in Jdeveloper.
However, when I deployed the latter to ias 10.1.3.1 on Windows (64bit), it failed with
Oracle XML Developers Kit 10.1.3.1.0 - Production
XML-25022: Cannot load serializer class
Do you and anyone know why?
Message was edited by:
bsmt

Similar Messages

  • In Iphoto 11 all 7000 of my photos show the same thumbnail.  I rebuilt the thumbnail using ctr alt and opening iPhoto. This worked and rebuilt the thumbnails correctly. Then when I reopened iPhoto the problem came back? Help please?

    In Iphoto 11 all 7000 of my photos show the same thumbnail.  I rebuilt the thumbnail using ctr alt and opening iPhoto. This worked and rebuilt the thumbnails correctly. Then when I reopened iPhoto the problem came back? Help please?

    Where is your Library stored?

  • "Only For Distribution in Asia Pacific and Japan."  Will this work on my laptop?

    I purchased a copy of CS6 on eBay, and when I received it I found the label on the top of the box saying "Only For Distribution in Asia Pacific and Japan."
    Will this work on my laptop?  I would like to be sure before removing the shrinkwrap, in case I need to return it.
    Thanks!

    Hi there - I would contact Adobe Customer Service for individual help with your issue.
    You can access the Customer Service contact page by going here and choosing Photoshop as your product.
    Live chat
    1-800-833-6687 (Mon-Fri, 5am-7pm PST)

  • OS X Yosemite 10.10.2 and photoshop CS6 will this work on this mac?

    I have a macbook pro with OS X Yosemite 10.10.2 and would like to purchase photoshop CS6 will this work on this mac?

    Photoshop cs6 should work okay with mac os x 10.10.2, at least it does here.

  • Time Capsule:  Storage and Time Machine - Could this work?

    Hi everyone,
    my Macbook got stolen last Friday and thank God I had an external HD and Time Machine (TC)to keep all my data. Now here's the dilemma.
    I bought time capsule (1TG) to use as a back up. I figure I can hide it somewhere in the house and not worried about having it disappeared. My laptop should be here tomorrow, so I want to get it right before do anything.
    The present external HD is partitioned in 2: 250 Gb for time machine, and 250Gb for other storage (iMovie projects etc etc.)
    Since I cannot partitioned TC, I was wondering if this would work.
    When I get my laptop (Macbook - w. 320 Gb HD), I will do my re import for my data (appr.60Gb) from my first HD, then let time machine do its thing with TC. Now here's what I want to do. Take all the "storage" (appr. 200Gb), import it to the Macbook , use time machine to back it up. Then I delete the "storage" from my macbook, so it's not 3/4 full before I even install programs such as Aperture. If this works, that means I would have access to all my storage if I return to day 1 of time machine. Do you think it will work, or is time machine going to dump it after a certain amount of time?
    Thanks in advance,
    SG

    You needn't go to all that trouble if you simple connect your old backup drive to the computer then exclude the TM backup partition from the TC in TM. TM will backup both your computer's drive and the storage partition on your other drive. The storage partition will be backed up separately on the TC from the computer's drive. If you copy that data to your computer's drive then backup entirely to the TC then delete the data from your computer's drive, the backup on your TC will eventually be deleted as well and you'll have no backup of the data on the external drive's storage partition.
    A TM backup is not simply a substitute for storage space. Once you delete a file that has been backed up by TM eventually when TM does a weekly or monthly consolidation it will delete the file and all its copies from the backup.

  • I keep trying to sync things among my MacBook Pro, iPAD, and iPhone.  Usually this works fine for a few days, but then I notice that the calendars aren't syncing and the "notes" aren't syncing.  How can I get them all to stay in sync?

    I have a MacBook Pro running OS X Yosemite, version 10.10.2.
    I have an iPad 2 running 8.1.3
    I have an iPhone 6 Plus running 8.1.1
    I have my Mail, Contacts, Calendars, and Notes set up to sync over iCloud among the three devices.
    I haven't had a problem with the Mail or Contacts syncing (at least not as far as I know), but the Notes and the Calendars don't seem to stay sync'd up.  I will notice that they aren't sync'ing, will delete and re-sync and they are fine for a while, but inevitably they stop sync'ing at some point.  This has been true through earlier incarnations of operating systems, so not something new.
    How can I get them to sync and stay sync'd?

    Soundman562 wrote:
    There used to be a tab under Itunes that allowed you to select to sync things like calendar, notes etc. but this is no longer there, can anyone help?
    This was removed in 10.9.  You may have better luck getting assistance in the relevant Mac forum.

  • Rolliing backword window. How to calculate and get op like this

    I have date as below
    with abc as (select 1 userid, 11 clo_id, to_date('05/01/2009', 'dd/mm/yyyy') c_date, 216 ilo_id, to_date('06/01/2009', 'dd/mm/yyyy') i_date from dual union all
                 select 1 userid, 11 clo_id, to_date('05/01/2009', 'dd/mm/yyyy') c_date, 215 ilo_id, to_date('05/01/2009', 'dd/mm/yyyy') i_date from dual union all
                 select 1 userid, 11 clo_id, to_date('05/01/2009', 'dd/mm/yyyy') c_date, 214 ilo_id, to_date('04/01/2009', 'dd/mm/yyyy') i_date from dual union all
                 select 1 userid, 11 clo_id, to_date('05/01/2009', 'dd/mm/yyyy') c_date, 213 ilo_id, to_date('04/01/2009', 'dd/mm/yyyy') i_date from dual union all
                 select 1 userid, 11 clo_id, to_date('05/01/2009', 'dd/mm/yyyy') c_date, 212 ilo_id, to_date('03/01/2009', 'dd/mm/yyyy') i_date from dual union all
                 select 1 userid, 11 clo_id, to_date('05/01/2009', 'dd/mm/yyyy') c_date, 211 ilo_id, to_date('02/01/2009', 'dd/mm/yyyy') i_date from dual)
    select *
    from   abc
    USERID     CLO_ID      C_DATE                       ILO_ID  I_DATE           
             1         11 05/01/2009 00:00:00        216 06/01/2009 00:00:00
             1         11 05/01/2009 00:00:00        215 05/01/2009 00:00:00
             1         11 05/01/2009 00:00:00        214 04/01/2009 00:00:00
             1         11 05/01/2009 00:00:00        213 04/01/2009 00:00:00
             1         11 05/01/2009 00:00:00        212 03/01/2009 00:00:00
             1         11 05/01/2009 00:00:00        211 02/01/2009 00:00:00
    Now i want to calculate rolling backword frequency of each ilo id and output should come like as based Frequency winodw
    e.g. if frequency window is 2 then
    USERID   CLO_ID C_DATE                     ILO_ID  I_DATE                        FREQUENCY
             1         11 05/01/2009 00:00:00        216 06/01/2009 00:00:00          2
             1         11 05/01/2009 00:00:00        215 05/01/2009 00:00:00          3
             1         11 05/01/2009 00:00:00        214 04/01/2009 00:00:00          3
             1         11 05/01/2009 00:00:00        213 04/01/2009 00:00:00          2
             1         11 05/01/2009 00:00:00        212 03/01/2009 00:00:00          2
             1         11 05/01/2009 00:00:00        211 02/01/2009 00:00:00          1
    1. For each ILO ID, go back number od days given as Frequency window (in our case its 2)
    2. calculate the number of ilo_id in that range
    3. number of ilo_id is the frequency of that ilo_idHow can i achieve this.
    Edited by: Kuldeep2 on Sep 29, 2010 2:30 AM
    Edited by: Kuldeep2 on Sep 29, 2010 2:33 AM

    Use analytic COUNT:
    variable frequency number
    exec :frequency := 2;
    with abc as (select 1 userid, 11 clo_id, to_date('05/01/2009', 'dd/mm/yyyy') c_date, 216 ilo_id, to_date('06/01/2009', 'dd/mm/yyyy') i_date from dual union all
    select 1 userid, 11 clo_id, to_date('05/01/2009', 'dd/mm/yyyy') c_date, 215 ilo_id, to_date('05/01/2009', 'dd/mm/yyyy') i_date from dual union all
    select 1 userid, 11 clo_id, to_date('05/01/2009', 'dd/mm/yyyy') c_date, 214 ilo_id, to_date('04/01/2009', 'dd/mm/yyyy') i_date from dual union all
    select 1 userid, 11 clo_id, to_date('05/01/2009', 'dd/mm/yyyy') c_date, 213 ilo_id, to_date('04/01/2009', 'dd/mm/yyyy') i_date from dual union all
    select 1 userid, 11 clo_id, to_date('05/01/2009', 'dd/mm/yyyy') c_date, 212 ilo_id, to_date('03/01/2009', 'dd/mm/yyyy') i_date from dual union all
    select 1 userid, 11 clo_id, to_date('05/01/2009', 'dd/mm/yyyy') c_date, 211 ilo_id, to_date('02/01/2009', 'dd/mm/yyyy') i_date from dual)
    select  abc.*,
            count(ilo_id) over(order by i_date range between :frequency - 1 preceding and current row) cnt
      from  abc
      order by i_date desc
        USERID     CLO_ID C_DATE        ILO_ID I_DATE           CNT
             1         11 05-JAN-09        216 06-JAN-09          2
             1         11 05-JAN-09        215 05-JAN-09          3
             1         11 05-JAN-09        214 04-JAN-09          3
             1         11 05-JAN-09        213 04-JAN-09          3
             1         11 05-JAN-09        212 03-JAN-09          2
             1         11 05-JAN-09        211 02-JAN-09          1
    6 rows selected.
    SQL> SY.

  • How to select and search text in this document?

    http://www.oracle.com/technology/products/manageability/database/pdf/ow05/PS_S003_274003_1 06-1_FIN_v2.pdf
    is a document I can read but cannot copy text from. I can't search for any text in it either. Is there a way to convert it to a PDF file I can select and search text in? What did the author do to make it "encrypted"? Thanks.
    Yong Huang

    I notice Google can convert it to plain text:
    http://74.125.95.132/search?q=cache:e4rkLs8pPekJ:www.oracle.com/technology/products/manage ability/database/pdf/ow05/PS_S003_274003_106-1_FIN_v2.pdf+understanding+shared+pool&cd=1&h l=en&ct=clnk&gl=us
    (If that long URL doesn't work, just search for "understanding shared pool" and click "View as HTML".)
    For now I'll use that. Thanks everyone.
    Also, my local desktop search program Copernic can also index keywords in the article.

  • I absolutely cannot figure out how(in plain English)to make "email this" work with yahoo mail.

    I've tried to figure out how to do what the instructions say on tools>>add ons>>-it doesn't seem to work.Maybe I dont understand the directions well enough to figure out how to do this.Why cant I just push a damn button?

    Hi there,
    Download a piece of software called TinkerTool - that might just solve your problem. I have used it myself to change the system fonts on my iMac. It is software and not an app.
    Good wishes,
    John.

  • Cisco Works - need to re-use a 3560, how to delete and re-add in Cisco Works

    Hello.  I did not see a cisco works section on the forum, forgive me if it's there and I missed it.  I have removed a 3560 switch from one location and am going to rename it (same IP though) and deply it in a different department.  We have cisco works sending critical and informational alerts as well as backup the configs on Sunday mornings.  I think I was able to get it to stop sending alerts when I unplugged and unhooked the switch.  I want to give the switch a new host name and re-deploy it.  I assume it will be easier to delete and then re-add the switch to cisco works.  Is the a document where I can follow steps to remove it from cisco works?  I have the documentation, but it is hard to read and they don't really have an area that specifically says "remove a switch from cisco works", and I don't want to break everything for the other 55 switches that cisco works does do the alerts and backups for.  I know cisco works is full of different modules, so I was wondering if there was a document or some type of help I could get for doing this.  Any help would be greatly appreciated.  Thanks.  Mike Baker

    Hi,
    It sounds like a tutorial may be what you are looking for. Here is one based on LMS 3.1.
    https://learningnetwork.cisco.com/docs/DOC-4031
    To remove a device from DCR (Device & Credential Repository) navigate to Common Services > Device and Credentials > Device Management.
    Thanks,
    Nick

  • Since installing fox4 every time i close and reopen i have to go to task mgr and end fox process this works sometimes other time fox wont open asnd i have to reboot pc this is bad

    after installing f/fox 4 if i close itdown i get message f/fox is still running i have to go to task mgr and end fox process sometimes this doesnt work i then have to reboot pc this is very annoying
    any ideas ? rgds con

    https://support.mozilla.com/en-US/kb/Firefox+hangs#Hang_at_exit

  • Linksys WAG120N and Airport Express - Does this work ??

    Hi,
    I just replaced my Linksys WAG54G by a WAG120N modem-router.
    I still have a problem with my Airport Express.
    Everything was working fine with the WAG54G but since I'm using the WAG120N I always got the same problem.
    After switching OFF-ON the Airport Express, I can only see it during a few minutes in the Airport Utility. After this, it disappears (until next reboot, etc.).
    I've used the same setup/config for my modem-router (compared to the old one).
    Firmware has been upgraded.
    I've completely re-configured the Airport Express.
    I've re-installed the Airport Utility.
    I've also tried to use other channels, etc.
    When I'm using the WAG54G, I do not have any problem !
    Is this WAG120N finally compatible with the Airport Express ?
    I'm really needing some help (before bringing it back to the vendor and selecting another model) !
    Please, it's urgent !
    Thks

    Yes it is visible during a few minutes when I switch it off-on.
    I can then access the config and change some parameters but after those +/- 5 minutes it disappear from the Airport List.
    ... and this is also true when you have the AX directly connected to your iMac via Ethernet?
    I just want to be sure that the AX itself is not potentially fault.
    When joined to another wireless network, of course, it will be dependent on the "stability" of that network. One other thing that might be possible is if you have the new Linksys configured for any special type of mode. One that I can think of is called "burst" mode. Another is wide-channel mode for the 2.4 GHz band. Neither of these are supported by the AX and may be a reason that it keeps dropping the connection.
    Finally, were both routers purchased in your country and are made to operate there? I've seen this problem before when, for example, an individual buys a router, let's say, to be used in Japan and tries to operate it in Europe.

  • I've got a fonera + and ipod touch, will this work...

    Hi just to clarifiy, i'm using an ipod touch to connect to bt open zones but it won't accept my request. Does openzone not work with the ipod touch?

    Yes it does, I use mine all over the UK with no problems. Repost but this time be more specific what your problem is, I will keep checking back and once I know what your problem is I will try and help. The main thing is that you are a BT Broadband customer to use the Openzone hotspots or you will have to buy access time and it's not cheap!

  • HT4759 I have windows 7, and blackberry playbook, will this work on both of these???

    I have a windows 7 laptop, & a blackberry playbook, with iCloud work on both of these & keep syinc???

    Not on the Blackberry (except mail. maybe)

  • I just bought my 10 year old autistic daughter an IPOD touch that she needs to take to school with just limited music on it but she also also has an IPAD mini for home that is fulllyloaded with apps .  How do I set up Itunes to make this work

    I just bought my 10 year old autistic daughter an IPOD touch that she needs to take to school with just the music (no apps) on it but she also also has an IPAD mini for home that is fullly loaded with apps.  The last time I tried to connect 2 devices to Itunes I ended up loosing my own music library so I am a bit hesitant to start setting up this new IPOD touch with outsome help. Anyone have any ideas on how I set up Itunes to make this work and not loose her IPAD apps and media?

    Open itunes, connect ipad, select what you want, sync.
    Connect ipod, select what you want, sync

Maybe you are looking for

  • Why can't I access the variables in my threads?

    hello. another question about threads.. ========================== I have an inner class that implements Runnable (i.e. a thread) and has a variable in it. I want to be able to access that variable from outside the thread class so that I can set or r

  • Problem with Adobe core update helper

    Every time I start Elements 13 it starts up Adobe updater core helper process. When I exit Elements it remains running and as long as it is running I can not start Elements again. I have to always manually terminate the process to restart Elements. A

  • Why do I get an error message when I try installing the free trial for Adobe Illustrator

    I'm trying to install the free trial for Adobe Illustrator and keep getting this message: The address wasn't understood Firefox doesn't know how to open this address, because one of the following protocols (aam) isn't associated with any program or i

  • Use of Letter of Credit(LOC) in Credit management.

    Hi, How can i link LOC to Credit management? I have a requirent suppose I have set a credit limit of 100000 for a customer. I have received down payment of 20, 000 and there is LOC of 80, 000 then my system should consider downpayment(Which it will c

  • Sync error in Mail

    I had a trial mobileme account but discontinued using it and deleted the account from mail settings and preferences. Since the upgrade to SNow Leopard, have been getting a message saying sync error with mobileme. There is still no account but connect