So you want your PDF printing but playing with JSP's and java libraries isn't your thing. Well there is another way to setup PDF and RTF output. The key is in the cryptic last paragrach of the APEX + PDF howto
>>
Other XSL-FO Processing Engines
If you prefer to use another XSL-FO Processing Engine, you will need to create an endpoint that provides similar functionality to the example JSP provided for the Apache FOP example above.
>>
Well I do prefer another XSL-FO Processing engine which is Apache Cocoon and Apache Tomcat. Cocoon is my favorite web framework other than APEX of course and I've used them together on many occasions.
Instead of a long drawn out howto I instead created this viewlet to show you the steps of the process.
The files you will need can be found through these links.
Cocoon
Tomcat
fop_post.zip
APEX and Cocoon Viewlet
If you have any questions please feel free to leave some comments but I think the setup and usage is very simple.
Subscribe to:
Post Comments (Atom)
Regards,
Jon.
Is it possible to install Cocoon on the Oracle Application Server 10.1.2.0.2?
Regards,
Guido
If you use JDK 1.6 instead of JDK 1.5, then you need to change the ExcaliburDataSourceFactory.java file. The changes that you need to make can be found here:
http://svn.apache.org/viewvc/cocoon/branches/BRANCH_2_1_X/src/blocks/databases/java/org/apache/cocoon/databases/ibatis/ExcaliburDataSourceFactory.java?view=markup&pathrev=495744
I have a problem with your cocoon solution!
When I try to generate a pdf from Shared Components(Test Report) i receive this message:
"Adobe reader could not open 'mistakes.pdf' because it is either not a supported file type or because the file has been damaged (for example it was sent as an email attachment and wasn't correctly decoded)"
Can you help me with that?
Thread in APEX Forum:
http://forums.oracle.com/forums/thread.jspa?threadID=488120&tstart=0&start=15
Thank you,
Tim
Thank you very much for your alternative. This is very simple and the viewlet helped a lot. I tried to install it on Solaris. There was a problem with JMS installation with Tomcat. I tried to build the JMS according to Tomcat web site. It worked fine. Thanks again for your wonderful article.
I can get Tomcat and Cocoon working fine. However, the fop_post's sitemap.xmap is giving me some problems.
org.apache.cocoon.ProcessingException: Unknown request object encountered named xml : null
I think this error refers to the form-name parameter. What form-name does APEX post to Cocoon, when it sends the XML stream?
I want to print totallity of a page APEX in pdf. Is it possible ?
I've never tried with Java 1.42
The Cocoon requirements say http://cocoon.apache.org/2.1/installing/requirements.html
1.3 and up
You also have to take the Tomcat requirements into account but it looks like most of those will run in 1.3 and up as well.
http://tomcat.apache.org/whichversion.html
Carl
Target "War" does not exist on this project. I took the fop.war file provide in the APEX directory and plugged it in the cocoon main directory and still got this error. Where do I put the war file and what do I name it prior to building cocoon?
{PR}
...
cocoon-block-databases-patch:
Processing: C:\APEX_FOP\cocoon-2.1.10\src\blocks\databases\conf\databases-trans.xmap
Writing: C:\APEX_FOP\cocoon-2.1.10\build\webapp\sitemap.xmap
BUILD FAILED
C:\APEX_FOP\cocoon-2.1.10\tools\targets\webapp-build.xml:113: The following error ocurred while executing this line:
C:APEX_FOP\cocoon-2.1.10\build\cocoon\temp\blocks-build.xml:1636:
error occurred while executing this line:
C:APEX_FOP\cocoon-2.1.10\build\cocoon\temp\blocks-build.xml:165:
FileNotFoundException: java.io.FileNotFoundException: C:\APEX_FOP\cocoon-2.1.10\build\webapp\sitemap.xmap (The requested operation cannot be performed on a file with a user-mapped section open)
sitemap.xmap was successfully written to several lines above with no problem. I have restarted twice and got a bit furthur each time.
What to look for? Where to go?
I am using jdk1.5.0_06.
All else is the same.
Pedro
The fop.war solution that ships with APEX is different than this solution, and I'm not sure they would work together nicely.
The Cocoon solution is an alternative to the fop solution.
Karen
That looks like it's a Cocoon build issue.
I'd take a look at the cocoon forum here http://www.nabble.com/Cocoon-f111.html as you will probably get better information than I can give you. That section of my install has always just worked.
Tks
Tullio
However APEX is runing on Oracle Apache web server, not on installed tomcat with cocoon. Can i to use apex application with this configuration(Oracle Apache+apex, tomcat+cocoon), or apex must be configured on tomcat web server ?
(so how to "connect" apex on tomcat ?)
Thanks !
Wil.
I too am curious how to use Cocoon with Oracle's Application Server (10.1.3). I am currently using OAS as my Apex front-end and would like to take advantage of Cocoon. All signs seem to point to Tomcat/Cocoon and not OAS/Cocoon. Does it create any issues if you install Tomcat on the same server as OAS?
you should be able to install the war file into an existing OC4J container (which is part of the IAS 10.1.3). There is no need to install Tomcat as well.
You could do it if you wanted to, but there is really no need to manage another J2EE container.
You should give it a try.
Regards,
~Dietmar.
I have the same problem as Tony:
quote (I get an error during the generation of the document "C:\cocoon\styles\main.css" is missing.)
although if I use the default layout it works but if I creat an RTF it doesn't.
do you have a step by step guide for the layout creation ?
Best Regards.
I like your alternative Carl.
Unfortunatly image, formating and others include clob are not include in PDF. :-(
Thx for your stuff.
Dave
My condolences to Carl's friends and family
Dave
http://rste.blogspot.com/2008/07/excel-export-from-apex-cocoon.html
Dave
I get not error message but the image is not showing in the pdf either. Is it possible to use base64 encoded images from xml with Apex + Cocoon?
Great, averything working.
However could you show how to get printing in custom RTF?
This is cool.
I got it to work for Word, PDF and XML. For Excel and HTML, it gave me
< /Type /Info
/Producer (FOP 0.20.5) >>
endobj
5 0 obj
<< /Length 2205 /Filter [ /ASCII85Decode /FlateDecode ]
>>
stream
Gau129iE!$&;KZM'mkUdnU0c-NYi%5QUs2>E=O,s7:*o5l%;N"55ou]Cld*b2!T9OV,Cl@go9^jk/m1/UqE1UXsTo.7d@'S
and so on ...
Any idea?
Thanks
-Yoel
when configuring APEX.
I am trying to set-up the XLS FO printing engine on Apex 3.2 under Linux platform. I followed your instructions and I can not get the cocoon.war file. In Windows environment it worked very well, I entered build war and it created the war file. However in Linux that statement does not work. I would like to illustrate you the way I am doing it in other that you can help me.
oracle@pablo-laptop:~/apache_fo/cocoon-2.1.11$ export JAVA_HOME=/u01/app/oracle/product/11.1.0/oraibex/jdk/jre
oracle@pablo-laptop:~/apache_fo/cocoon-2.1.11$ build war
No command 'build' found, did you mean:
Command 'buildd' from package 'ubuntu-dev-tools' (universe)
build: command not found
Searching on the Internet about how to build a Cocoon web application in build/webapp and packages as a .war file, I found some information in the Web site: http://cocoon.apache.org/2.0/installing/index.html.
I found the following statement:
[unix] ./build.sh -Dinclude.installwar webapp
It seems that it builds and installs Cocoon war package in a specified directory.
So, I executed the statement:
oracle@pablo-laptop:~/apache_fo/cocoon-2.1.11$ ./build.sh -Dinclude.installwar webapp
Here the last part of the output:
custom-conf:
Processing: /home/oracle/apache_fo/cocoon-2.1.11/src/confpatch/enable-uploads.xweb
Writing: /home/oracle/apache_fo/cocoon-2.1.11/build/webapp/WEB-INF/web.xml
BUILD SUCCESSFUL
Total time: 31 seconds
As you see the command works, but it creates an xml file instead of the cocoon.war file.
Could you please help me?
Cordially,
pablo.wandurraga@gmail.com
Thanks
Any help will be greatly appreciated...
Thanks
Free FOP Server installer
there is also an XSL-FO editor to create templates in a visual manner.
http://www.java4less.com/apache/fop.php
there is also an XSL-FO editor to create templates in a visual manner
http://goo.gl/tLrNhC
You can fill out PDF form, save it, fax it, and email it.
Mebel Jepara :
Kursi Tamu Minimalis :
Mebel Jepara :
Mebel Jepara Murah :
Mebel Jepara :
Mebel Jati :
Mebel Jati Jepara :
Kursi Tamu Jati :
Furniture Jati :
Karya Priboemi Jepara :
Kursi Tamu Jati :
Furniture jepara Online :
Mebel jepara :
Meja Makan Minimalis :
Sample Warna :
Mebel Jepara :
Mebel Jepara Murah :
terlengkap dan terpercaya produk kami seperti jual sangkar burung . Tidak hanya itu kami melayani
perbaikan laptop anda yang rusak lagsung saja ke servis laptop semarang siap
membantu anda dan bulu perindu pengasihan dapat membantu masalah asmara anda. kami juga melayani jual hijab terbaru.
Mebel Jepara
Indonesia Furniture
Reclaimed Teak Furniture
thanks for sharing 082210743003
obat aborsi termanjur
obat telat bulan
obat penggugur
jual obat aborsi
obat aborsi
obat aborsi termanjur
obat penggugur kandungan
jual obat penggugur kandungan
jual obat aborsi termanjur
obat penggugur termurah
obat telat bulan
jual obat telat bulan
klinik obat telat bulan
obat telat bulan terbaik