Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Installing apache FOP and oc4j

500324Mar 27 2007 — edited May 30 2007
I have followed the instructions at

http://www.oracle.com/technology/products/database/application_express/html/configure_printing.html

For setting up Apache FOP.

I had to install oc4j into the oracle home.

Everything seems to work, the oc4j starts on port 8888 I can access and see the welcome screen at port 8888 but when I attempt to send a report for rendering I get the following error on the oc4j log and no PDF - well actually adobe says it is a corrupted PDF.

Starting OC4J from /home/oracle/product/companion/j2ee/home ...
07/03/27 08:41:55 Oracle Containers for J2EE 10g (10.1.3.2.0)  initialized
2007-03-27 08:41:59.913 NOTIFICATION  J2EE JSP-0008 Unable to dispatch JSP Page : Exception:oracle.jsp.provider.JspCompileException: <H3>Errors compiling:/home/oracle/product/companion/j2ee/home/application-deployments/default/defaultWebApp/persistence/_pages//_apex__fop__render.java</H3><TABLE BORDER=1 WIDTH=100%><TR><TH ALIGN=CENTER>Line #</TH><TH ALIGN=CENTER>Error</TH></TR><TR><TD WIDTH=7% VALIGN=TOP><P ALIGN=CENTER>10</TD><TD> package org.apache.fop.apps does not exist
import org.apache.fop.apps.Driver;
                           </TD></TR><TR><TD WIDTH=7% VALIGN=TOP><P ALIGN=CENTER>11</TD><TD> package org.apache.fop.apps does not exist
import org.apache.fop.apps.Options;
                           </TD></TR><TR><TD WIDTH=7% VALIGN=TOP><P ALIGN=CENTER>88</TD><TD>[jsp src:line #:38]<br> cannot resolve symbol
symbol  : class Driver
location: class _apex__fop__render
      Driver driver = new Driver();
      </TD></TR><TR><TD WIDTH=7% VALIGN=TOP><P ALIGN=CENTER>88</TD><TD>[jsp src:line #:38]<br> cannot resolve symbol
symbol  : class Driver
location: class _apex__fop__render
      Driver driver = new Driver();
                          </TD></TR><TR><TD WIDTH=7% VALIGN=TOP><P ALIGN=CENTER>91</TD><TD>[jsp src:line #:41]<br> cannot resolve symbol
symbol  : variable Driver
location: class _apex__fop__render
      driver.setRenderer(Driver.RENDER_PDF);
                         </TD></TR></TABLE>
2007-03-27 08:42:13.173 NOTIFICATION  J2EE JSP-0008 Unable to dispatch JSP Page : Exception:oracle.jsp.provider.JspCompileException: <H3>Errors compiling:/home/oracle/product/companion/j2ee/home/application-deployments/default/defaultWebApp/persistence/_pages//_apex__fop__render.java</H3><TABLE BORDER=1 WIDTH=100%><TR><TH ALIGN=CENTER>Line #</TH><TH ALIGN=CENTER>Error</TH></TR><TR><TD WIDTH=7% VALIGN=TOP><P ALIGN=CENTER>10</TD><TD> package org.apache.fop.apps does not exist
import org.apache.fop.apps.Driver;
                           </TD></TR><TR><TD WIDTH=7% VALIGN=TOP><P ALIGN=CENTER>11</TD><TD> package org.apache.fop.apps does not exist
import org.apache.fop.apps.Options;
                           </TD></TR><TR><TD WIDTH=7% VALIGN=TOP><P ALIGN=CENTER>88</TD><TD>[jsp src:line #:38]<br> cannot resolve symbol
symbol  : class Driver
location: class _apex__fop__render
      Driver driver = new Driver();
      </TD></TR><TR><TD WIDTH=7% VALIGN=TOP><P ALIGN=CENTER>88</TD><TD>[jsp src:line #:38]<br> cannot resolve symbol
symbol  : class Driver
location: class _apex__fop__render
      Driver driver = new Driver();
                          </TD></TR><TR><TD WIDTH=7% VALIGN=TOP><P ALIGN=CENTER>91</TD><TD>[jsp src:line #:41]<br> cannot resolve symbol
symbol  : variable Driver
location: class _apex__fop__render
      driver.setRenderer(Driver.RENDER_PDF);
                         </TD></TR></TABLE>
If I access the URL for the render directly I get the following message in my browser.

500 Internal Server Error
OracleJSP: oracle.jsp.provider.JspCompileException: 
Errors compiling:/home/oracle/product/companion/j2ee/home/application-deployments/default/defaultWebApp/persistence/_pages//_apex__fop__render.java
Line # Error 
10
 package org.apache.fop.apps does not exist import org.apache.fop.apps.Driver;  
11
 package org.apache.fop.apps does not exist import org.apache.fop.apps.Options;  
88
 [jsp src:line #:38]
cannot resolve symbol symbol : class Driver location: class _apex__fop__render Driver driver = new Driver();  
88
 [jsp src:line #:38]
cannot resolve symbol symbol : class Driver location: class _apex__fop__render Driver driver = new Driver();  
91
 [jsp src:line #:41]
cannot resolve symbol symbol : variable Driver location: class _apex__fop__render driver.setRenderer(Driver.RENDER_PDF);  
So, what did I miss?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 27 2007
Added on Mar 27 2007
12 comments
1,511 views