Apache FOP getClassLoader problem

I have loaded Apache FOP 1.1 into an 11g database, and a driver class to retrieve XML/XSLT and save PDF as CLOBs. When I try to execute this in the DB, I get
ORA-29532: Java call terminated by uncaught Java exception: javax.xml.transform.TransformerException: java.security.AccessControlException: the Permission (java.lang.RuntimePermission getClassLoader) has not been granted to ProtectionDomain  (null <no signer certificates>)
com.sun.org.apache.xalan.internal.xsltc.trax.TemplatesImpl$TransletClassLoader@98644313
<no principals>
java.security.Permissions@b0558743 (
(java.lang.RuntimePermission modifyThreadGroup)
(java.lang.RuntimePermission createSecurityManager)
(java.lang.RuntimePermission modifyThread)
(java.lang.RuntimePermission preferences)
(java.lang.RuntimePermission exitVM)
(java.util.PropertyPermission user.language write)
(java.util.PropertyPermission * read)
(oracle.aurora.security.JServerPermission LoadClassInPackage.*)
It looks like the SecurityManager is only looking at PUBLIC permissions, even though the FOP classes were loaded into a schema with 'SYS:java.lang.RuntimePermission', 'getClassLoader', ''.
Any ideas on how to get around this?
Thanks!

Dear Brian,
It looks to me like org.apache.fop.apps.Driver might be doing a
Class.forName() for the Loggable class. If Class.forName() does not pass a
specific classloader, the system classpath loader is used; which is why it
works when you put the classes on the system classpath.
Best regards,
Timothy Potter
Senior Software Engineer
eCommerce Server Division
BEA Systems, Inc.
"Brian Dowd" <[email protected]> wrote in message
news:3c8c9ba0$[email protected]..
>
HI,
I am deploying a big EAR in WL 6.1 on solaris and I am bundling FOP1.20.3
within it, I am
also including avalon 4.0 and logkit 1.0 jars within it as they are neededby
fop.jar. Whenever I
try to construct a "Driver()" class I get a NoClassDefFoundError on theorg.apache.framework.logger.Loggable
interface that it needs. The strange thing is that when I do thefollowing :
>
try {
ClassLoader cl = this.getClass().getClassLoader();
cl.loadClass("org.apache.avalon.framework.logger.Loggable"); //.........this
works OK
// the following .... fails with NoClassDefFoundError on Loggable
org.apache.fop.apps.Driver d = new org.apache.fop.apps.Driver();
} catch (Throwable t) {
cat.error("failed:", t);
It DOES work when I put the necessary jars on the server startup classpath,
however it would obviously be
better to be able to bundle the 3rd party jars within my EAR ....... Iknow this
seems like it would be a general
weblogic classloader question - but I have had no problems with any other3rd
party jars that are similar to
this one.
Has anyone else had these kinds of problems ?
Cheers,
Brian.

Similar Messages

  • Apache fop classloading problem in EAR file

    HI,
    I am deploying a big EAR in WL 6.1 on solaris and I am bundling FOP 1.20.3
    within it, I am
    also including avalon 4.0 and logkit 1.0 jars within it as they are needed by
    fop.jar. Whenever I
    try to construct a "Driver()" class I get a NoClassDefFoundError on the org.apache.framework.logger.Loggable
    interface that it needs. The strange thing is that when I do the following :
    try {
    ClassLoader cl = this.getClass().getClassLoader();
    cl.loadClass("org.apache.avalon.framework.logger.Loggable"); // .........this
    works OK
    // the following .... fails with NoClassDefFoundError on Loggable
    org.apache.fop.apps.Driver d = new org.apache.fop.apps.Driver();
    } catch (Throwable t) {
    cat.error("failed:", t);
    It DOES work when I put the necessary jars on the server startup class path,
    however it would obviously be
    better to be able to bundle the 3rd party jars within my EAR ....... I know this
    seems like it would be a general
    weblogic classloader question - but I have had no problems with any other 3rd
    party jars that are similar to
    this one.
    Has anyone else had these kinds of problems ?
    Cheers,
    Brian.

    Dear Brian,
    It looks to me like org.apache.fop.apps.Driver might be doing a
    Class.forName() for the Loggable class. If Class.forName() does not pass a
    specific classloader, the system classpath loader is used; which is why it
    works when you put the classes on the system classpath.
    Best regards,
    Timothy Potter
    Senior Software Engineer
    eCommerce Server Division
    BEA Systems, Inc.
    "Brian Dowd" <[email protected]> wrote in message
    news:3c8c9ba0$[email protected]..
    >
    HI,
    I am deploying a big EAR in WL 6.1 on solaris and I am bundling FOP1.20.3
    within it, I am
    also including avalon 4.0 and logkit 1.0 jars within it as they are neededby
    fop.jar. Whenever I
    try to construct a "Driver()" class I get a NoClassDefFoundError on theorg.apache.framework.logger.Loggable
    interface that it needs. The strange thing is that when I do thefollowing :
    >
    try {
    ClassLoader cl = this.getClass().getClassLoader();
    cl.loadClass("org.apache.avalon.framework.logger.Loggable"); //.........this
    works OK
    // the following .... fails with NoClassDefFoundError on Loggable
    org.apache.fop.apps.Driver d = new org.apache.fop.apps.Driver();
    } catch (Throwable t) {
    cat.error("failed:", t);
    It DOES work when I put the necessary jars on the server startup classpath,
    however it would obviously be
    better to be able to bundle the 3rd party jars within my EAR ....... Iknow this
    seems like it would be a general
    weblogic classloader question - but I have had no problems with any other3rd
    party jars that are similar to
    this one.
    Has anyone else had these kinds of problems ?
    Cheers,
    Brian.

  • APEX 4.1 - APACHE FOP PDF generation problem.

    Hi all,
    I'm having problem with PDF generation using APACH FOP on OC4J.
    When I test my print server as described here:
    http://marcsewtz.blogspot.com/2008/06/heres-another-posting-on-pdf-printing.html
    everything works without problem. But when I upload my Layout to APEX and try to generate PDF from apex I'm getting error:
    oracle.xml.parser.v2.XMLParseException: Unexpected EOF.
         at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:320)
         at oracle.xml.parser.v2.XMLReader.popXMLReader(XMLReader.java:549)
         at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1375)
         at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:362)
         at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:308)
         at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:337)
         at oracle.xml.xslt.XSLProcessor.newXSLStylesheet(XSLProcessor.java:714)
         at oracle.xml.xslt.XSLStylesheet.<init>(XSLStylesheet.java:322)
         at oracle.xml.parser.v2.XSLStylesheet.<init>(XSLStylesheet.java:114)
         at apex_fop._jspService(_apex__fop.java:71)
         [SRC:/apex_fop.jsp:21]
    I could see similar post here:
    Handling Special characters in call to apex_util.download_print_document
    But it doesn't explain my case as it's crashing even when I generate empty pdf(no data so no special characters, only empty XML file with no data should be sent to print server)
    Is there any way to see what xml is sent do print server for processing? That could eventually show where is a problem.
    Palo

    My mistake, there was really an "&" character in my template. now when I replaced it with %26 it works.
    However I would be still interested if there is a way to see what data is APEX engine sending to print server cause it will help me to find this kind of errors.
    Palo

  • Apache FOP Problem with column width

    We are using Apache FOP to generate simple pdf documents out of reports.
    My problem is that the table in the pdf is as standard filled in with columns of same length.
    Further on the content of some table fields is to large or sometimes there is to much room.
    is there any possiblity to let fop react like html?
    The smallest table field size should be like the content. I don't want to adjust all my reports, cause there are really many reports with pdf printing.
    anyone an idea how to solve this with FOP?
    i have no BI pubisher or other reporting engines for this problem
    thx so far

    Oliver,
    I think what you're looking for is having your column width automatically adjusted based on the content of your column values. That is not possible with the built-in, generic XSL-FO template. What you can do is manually adjusting the column width to appropriate values on the print attributes page.
    Regards,
    Marc

  • Apache-fop classloading error ....

    HI,
    I am deploying a big EAR in WL 6.1 on solaris and I am bundling FOP 1.20.3
    within it, I am
    also including avalon 4.0 and logkit 1.0 jars within it as they are needed by
    fop.jar. Whenever I
    try to construct a "Driver()" class I get a NoClassDefFoundError on the org.apache.framework.logger.Loggable
    interface that it needs. The strange thing is that when I do the following :
    try {
    ClassLoader cl = this.getClass().getClassLoader();
    cl.loadClass("org.apache.avalon.framework.logger.Loggable"); // .........this
    works OK
    // the following .... fails with NoClassDefFoundError on Loggable
    org.apache.fop.apps.Driver d = new org.apache.fop.apps.Driver();
    } catch (Throwable t) {
    cat.error("failed:", t);
    It DOES work when I put the necessary jars on the server startup class path,
    however it would obviously be
    better to be able to bundle the 3rd party jars within my EAR ....... I know this
    seems like it would be a general
    weblogic classloader question - but I have had no problems with any other 3rd
    party jars that are similar to
    this one.
    Has anyone else had these kinds of problems ?
    Cheers,
    Brian.

    I have a similar problem, I tried to package the fop library with an ear also. I think it has to do with System properties. The fop library loads it's parser class from a system property, the class it finds is a weblogic library and that's when the problem begins. I was never able to solve this, but hope this gives you starting point. Keep us abreast of your findings.

  • Error while configuring apache FOP for printing

    Dear All,
    I have a requirement to print a report using custom layout.
    I have installed apex 4.2 by configuring embedded PL/SQL gateway. I used the link:
    http://docs.oracle.com/cd/E37097_01/doc/install.42/e35123/overview.htm#CJABBFIH
    And for printing purpose I am installing apache FOP. I have installed oc4j in standalone mode. I followed the link:
    http://www.oracle.com/technetwork/developer-tools/apex/application-express/configure-printing-093060.html
    But after setting oc4jadmin password, I am getting following error
    13/01/15 12:52:07 WARNING: EJBContainer.postInit Error generating wrappers for f
    ile:/E:/app/OracleDb/j2ee/home/applications/admin_ejb.jarjava.lang.Instantiation
    Exception: javac.exe not found under C:\Program Files\Java\jre7, please use a va
    lid jdk or specify the location of your java compiler in server.xml using the <j
    ava-compiler .../> tag
    I have JAVA_HOME and ORACLE_HOME system environment variables set up as mentioned in the guide.
    I am not well versed with java.
    Can anyone please throw light on this issue and help me resolve this problem. This is an urgent requirement.
    Thanks and regards,
    Deepika.

    Deepika R wrote:
    13/01/15 12:52:07 WARNING: EJBContainer.postInit Error generating wrappers for f
    ile:/E:/app/OracleDb/j2ee/home/applications/admin_ejb.jarjava.lang.Instantiation
    Exception: javac.exe not found under C:\Program Files\Java\jre7, please use a va
    lid jdk or specify the location of your java compiler in server.xml using the <j
    ava-compiler .../> tag
    I have JAVA_HOME and ORACLE_HOME system environment variables set up as mentioned in the guide.
    Seems like the Java EE container is looking for the Java compiler. Try installing the Java Development Kit (JDK) and respecify your JAVA_HOME accordingly. HTH.

  • 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 PDF Save in BLOB column

    Hi,
    I just want to call Apache FOP in an APEX process to create PDF reports and save these reports in a BLOB column in the same database. So I can email these reports in another process using APEX_MAIL. Does anyone know a way to achieve this?
    Thanks

    If I understand correctly, your requirements needs to be broken down into two problems:
    1) click link that pops up a window displaying a new APEX page
    2) an APEX page the displays the document, not downloads it.
    I haven't done #1 (yet).
    However, you may be able to generate a URL that points to the new page as part of the SELECT statement for the Report.
    This has a related question, but no answer yet:
    open pdf in popup browser window
    The key is target="_blank" for the anchor tag.
    To generate the URL, you should use the APEX_UTIL.prepare_URL() function.
    If that doesn't work, a Dynamic Action that does some magical JavaScript stuff may be needed.
    For #2, I lost the URL that showed how to display a PDF as part of a "form" page.
    From what I remember:
    Start with a blank page with one blank HTML region (all the Items go in the HTML region)
    Add an Item for the PK/Doc_ID
    part I forgot Create a Data Manipulation Process
    - Automated Row Fetch
    - On Load - After Header
    - (stuff for your table/view)
    part I forgot Create an (I believe) "File Browser" item type. For Settings:
    - Storage Type "BLOB column specified in Item Source" (and place the column name of the BLOB there)
    - MIME Type Column: (column name) -- since you have multiple types, this is a MUST HAVE
    - Filename Column: (column name) -- I highly recommend you have this.
    - Content Disposition == INLINE <-- this is the kicker
    Also, you will need a Browser Plugin for each of the MIME Types (otherwise, the browser may try to 'download' the file)
    Browsers can handle Image types internally. Adobe's plugin can handle PDFs. I don't know about Word/Excel.
    Again, I don't remember the exact details, but that should cover most of it.
    MK

  • Apache FOP config Question

    Hi all,
    I have APEX version 3.0.1 and I use F&R Services version 10.1.2.0.2. I wanted to use Apache Fop in order to have PDF Printing facilities.
    However in http://www.oracle.com/technology/products/database/application_express/html/configure_printing.html#05
    I saw that the OC4j version needed should be a minimum of 10.1.3.2 version. So I decided to use the OC4j from JDev 10.1.3.3.
    Step 1 from the document above went ok, then when I try to configure FOP in APEX I cannot find "Instance Settings", under Manage Service, even though I am logged in as ADMIN.
    Has anybody any suggestions on this?
    Kind Regards,
    Ana-Maria

    Hi all,
    found the problem. I needed to connect as admin to APEX in order to do this: http://hostname:portno/pls/apex/apex_admin.
    Thank you,
    Ana-Maria

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

  • Apache FOP configuration with Oracle XE

    Hi,
    I have installed Oracle XE on my laptop and upgraded Apex to 3.2. I am now trying to install Apache FOP for PDF printing. I am following Section 5 of the following document:
    http://www.oracle.com/technology/products/database/application_express/html/configure_printing.html
    Since it is a standalone installation, I followed the directions given here :
    http://download.oracle.com/docs/cd/B32110_01/web.1013/b28950/install.htm#BABIBGCA
    I installed JDK version 6 and also downloaded the OC4J zip file and did as specified.
    Now here is my problem: The next step is this :
    Step 1: Installing the WAR file
    Place the fop.war file (located in apex_install_directory/utlities/fop) in an accessible location on your local machine. You then follow the directions below or can view the process by running this viewlet.
    +1. Navigate to your OC4J Oracle Enterprise Manager Console eg: http://localhost:8888/em/+
    +2. Select the Applications Tab+
    +3. Select Deploy Button+
    +4. On the "Deploy: Select Archive" page use the option "Archive is present on local host. Upload the archive to the server where Application Server Control is running." Use the file browse to select the fop.war file and click "Next" button+
    +5. On the "Deploy: Application Attributes" page set the "Application Name" option to "fop" and clear the "Context Root " option and click "Next" Button+
    +6. On the Deploy: Deployment Settings click the "Deploy" button+
    The problem is, since mine is an XE installation on my laptop, I do not have Oracle Enterprise Manager Console. In this case, how can I deploy the WAR file ?
    Any ideas ?
    Thanks,
    Ashok

    Hi Ashok,
    I have the same problem. have installed 10g xe and upgrated to apex 3.2 on my laptop.
    I dont have the EM to deploy the WAR file.
    Anyway you could share how exactly you deployed the file and made pdf working?
    much appreciated.
    Danny
    Edited by: user10188025 on 14-Aug-2010 03:25

  • APACHE FOP  LOGGER NOT SET

    In this day I have one issue and I was not able to resolve.
    Basically I found many post that speak of something similar. But don´t found one particular solution.
    I have one installation of APEX 3.1 and installed APache FOP 10.1.3.2.0, but this installations are on E-business suite 11.5.10.2
    First installed EBS 11.5.10.2 , then migrated DAtabase a 10.2.0.3, then installed APEX 3.1 and now installed OC4J Containers 10.1.3.2.0 and configured Apache FOP, my SO is Linux 4, I have jdk 1.4.2.
    I'm trying to print some reports as PDF and I have the following problem:
    I followed the step "5.Installing and Configuring Apache FOP" of http://www.oracle.com/technology/products/database/application_express/html/configure_printing.html
    When I try to print my report I get this message on OC4J console:
    08/07/24 20:39:52 [ERROR] Logger not set
    08/07/24 20:39:52 [WARNING] Screen logger not set - Using ConsoleLogger.
    08/07/24 20:39:52 [INFO] Using oracle.xml.parser.v2.SAXParser as SAX2 Parser
    08/07/24 20:39:52 [INFO] building formatting object tree
    08/07/24 20:39:52 [INFO] setting up fonts
    08/07/24 20:39:53 [INFO] [1]
    08/07/24 20:39:53 [WARNING] table-layout=auto is not supported, using fixed!
    08/07/24 20:39:53 [WARNING] Sum of fixed column widths 660000 greater than maximum specified IPD 658800
    08/07/24 20:39:53 [INFO] Parsing of document complete, stopping renderer
    I get this message on Log Apache
    [Thu Jul 24 20:39:53 2008] [warn] mod_plsql: Stale Connection due to Oracle error 22293
    [Thu Jul 24 20:39:53 2008] [error] mod_plsql: /pls/apex/wwv_flow.accept ORA-22293
    ORA-22293: LOB already opened in the same transaction
    anybody help me ?

    When I pressing the button does export writes that "it is impossible to display the page".Export does not occur.
    However, I added apex_fop.jsp following:
    java.io.FileOutputStream os = new java.io.FileOutputStream ("/tmp/out.test");
    driver.setOutputStream(os);
    driver.run();
    os.close();
    Once I click on the button in the apex export all the information stored in a file out.test.Open the file are all displayed correctly. However, the apex does not return the file, and writes "it is impossible to display the page"

  • Java.lang.IllegalArgumentException: org.apache.fop.svg.SVGElementMapping

    Hi,
    I have an FOP application which presents the data retrieved from database in a PDF format.
    Now when Iam trying to deploy the FOP application to OC4J and I get the following error.
    java.lang.IllegalArgumentException: org.apache.fop.svg.SVGElementMapping is not an ElementMapping
         at org.apache.fop.apps.Driver.addElementMapping(Driver.java:464)
         at org.apache.fop.apps.Driver.setupDefaultMappings(Driver.java:314)
         at org.apache.fop.apps.Driver.<init>(Driver.java:222)
         at org.appfuse.fop.FOPHelper.createPDF(FOPHelper.java:48)
         at FOPServlet.execute(FOPServlet.java:168)
         at FOPServlet.doPost(FOPServlet.java:109)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:765)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:208)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:125)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
         at java.lang.Thread.run(Thread.java:534)
    I believe its the problem with the class loaders.
    I even configured my orion-web.xml to load the local classes and following is the conf file:
    <orion-web-app
         deployment-version="9.0.4.0.0"
         temporary-directory="./temp"
         internationalize-resources="false"
         default-mime-type="application/octet-stream"
         servlet-webdir="/servlet/"
    >
         <web-app-class-loader search-local-classes-first="true" include-war-manifest-class-path="false" />
    </orion-web-app>
    I have loaded the most stable jar files(fop-0.20.5) required for the generation of PDF.
    The same application runs well in JDeveloper(10.1.2.0.0)
    Could somebody help me out with this.
    Its very urgent.
    Need to be able to deploy this by evening.
    Thanks
    Sridhar
    Message was edited by:
    Sridhar

    This means the code loading the element mappings does not recognize
    the SVGElementMapping as an ElementMapping, as it expects. The most
    likely reason is that they are loaded from different class loaders -That was the reason of my simple suggestion above.
    There are many ways that you can try now.
    One way is to put all libraries in your war into ORACLE_HOME/j2ee/home/applib. Also remove the following line
    <web-app-class-loader search-local-classes-first="true" include-war-manifest-class-path="false" />
    since this search-local-classes-first is problematic sometimes.
    It might be nice if you can verify that the classloader that loads SVGElementMapping is different from the one that loads Elementmapping at that point of code.
    Now Could somebody help me out as this is the problem of OC4J .Hmm, I would not say "problem of OC4J". A usage error or a false incompatibility at worst. "False" because there should be many normal and standard ways to make it work.

  • Apache Fop Library: NoClassDefFoundError

    Hi
    Maybe this is a newbie's problem but can anybody help me?
    I do some xml-transformation in my javaclass. in my case i also need
    the apache FOP besides some other packages like jaxp etc.
    now:
    if i load the library from my harddisk, everything works fine.
    if i load the library from a network drive, there's always
    the exception
    java.lang.NoClassDefFoundError: org/w3c/dom/svg/SVGLength
    1. the class is there
    2. all the paths are correct
    what else can i do?

    Hm,
    I am not sure, but the org/w3c/dom/svg/SVGLength Class is in the wrong folder.
    try to copy it into the ext folder of your jre.
    regards cris

  • Apache FOP 0.95 and  WebLogic 10.3

    I am using Jdeveloper with Weblogic 10.3 and Apache FOP 0.95 to create PDF documnents. I keep getting the NoClassDefError. Here is the stack trace ....
    java.lang.ExceptionInInitializerError
         at rcopia.util.FopUtil.<clinit>(FopUtil.java:26)
         at rcopia.prescription.FopScripPrinter.postRun(FopScripPrinter.java:134)
         at rcopia.prescription.ScripMaster.doRun(ScripMaster.java:107)
         at rcopia.prescription.ScripMaster.run(ScripMaster.java:53)
         at rcopia.prescription.ScripHandler.runPrinter(ScripHandler.java:481)
         at rcopia.prescription.ScripHandler.runPrinter(ScripHandler.java:427)
         at rcopia.prescription.ScripHandler.process(ScripHandler.java:347)
         at rcopia.prescription.ScripHandler.run(ScripHandler.java:307)
         at rcopia.screen.CommonScreen.doSendPrescription(CommonScreen.java:866)
         at rcopia.screen.CommonScreen.doSendPrescription(CommonScreen.java:837)
         at rcopia.screen.ReviewPrescriptionScreen.send(ReviewPrescriptionScreen.java:311)
         at rcopia.screen.ReviewPrescriptionScreen.process(ReviewPrescriptionScreen.java:85)
         at rcopia.screen.Screen.doProcess(Screen.java:205)
         at rcopia.screen.Screen.run(Screen.java:121)
         at rcopia.screen.Screen.run(Screen.java:91)
         at rcopia.screen.ScreenHandlerInstance.run(ScreenHandlerInstance.java:159)
         at rcopia.screen.ScreenHandlerInstance.process(ScreenHandlerInstance.java:58)
         at rcopia.servlet.WebRequestHandler.runRequest(WebRequestHandler.java:74)
         at rcopia.servlet.RequestHandler.runInSynchronizedSession(RequestHandler.java:135)
         at rcopia.servlet.RequestHandler.doHandle(RequestHandler.java:864)
         at rcopia.servlet.RequestHandler.handleOne(RequestHandler.java:820)
         at rcopia.servlet.RequestHandler.handleWithoutUTM(RequestHandler.java:776)
         at rcopia.servlet.RequestHandler.handle(RequestHandler.java:743)
         at rcopia.servlet.RequestHandler.runOne(RequestHandler.java:449)
         at rcopia.servlet.RequestHandler.runStart(RequestHandler.java:263)
         at rcopia.servlet.RequestHandler.run(RequestHandler.java:173)
         at rcopia.servlet.RcopiaServlet.doPost(RcopiaServlet.java:210)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3498)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(Unknown Source)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@da44a7 for org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.NoClassDefFoundError: org/apache/log4j/Logger) (Caused by org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@da44a7 for org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.NoClassDefFoundError: org/apache/log4j/Logger))
         at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:543)
         at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)
         at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:209)
         at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351)
         at org.apache.fop.apps.FopFactory.<clinit>(FopFactory.java:64)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Is this WL 10.3, or 10.3.3?
    It looks like fop is having a problem finding the log4j
    Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@da44a7 for org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.NoClassDefFoundError: org/apache/log4j/Logger) (Caused by org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@da44a7 for org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.NoClassDefFoundError: org/apache/log4j/Logger))By default, WL 10.3.3 installs an older version of log4j  and references it in your setDomainEnv script:${ALSB_HOME/lib/external/log4j_1.2.8.jarIn our case, we just put our log4j_1.2.14.jar file in the same place and changed the script to point to it
    ${ALSB_HOME}/lib/external/log4j_1.2.14.jar

Maybe you are looking for

  • How do i get itunes to sync podcasts

    I am unable to sync podcasts with Ipod nano 7th generation. I was syncing and then it said cancel automatic sync. I can no longer sync nor can I find the right setting.

  • How do you fix the itunes R6034 error

    How do you fix the R6034 error with itunes?

  • Pictures as attachments

    How can I send an email that has pictures as attached files and NOT just the picture in the body of the email. I have clicked on the attachment button (then chosen the file) as well as file-->attach and for both the picture appears in the body of the

  • INTEGRATING PUBLISHER WITH OBI EE SECURITY USING LDAP

    Hi ! Just learned about how integrating BI Publisher with OBI EE Security had to be set. (SA SYSTEM blah blah blah) My question is : what if my OBI EE security is already based on LDAP server ? How do I manually insert user logon in SA_USER as I'm su

  • Inter-dependent Lists in the Reports Parameter Form...

    In Oracle Reports 10g, is there any way that we can make the lists interdependent. I mean suppose if the reports take two parameters, one is department id and another one is employee id. I want to show only those employee ids in the list who belongs