Xsql-011  error   FOP

hello,
i run my app in jdeveloper 902 using a xsql-file and xsl-file .
i get the message above.
who can help me ? thx
Oracle XDK Java 9.2.0.4.0 Production
XSQL-011: Error processing XSLT stylesheet: createFOP.xsl
file:/C:/oracle/ora902/jdev/jdev/mywork/Workspace6/xml_html/public_html/createFOP.xsl: XSL-1016: (Error) Extension function namespace should start with 'http://www.oracle.com/XSL/Transform/java/'.

Hi Jochen,
I'm working with Tomcat 4.0.3, FOP 20.0.3 and XDK 9.2.0.1.0, too.
I've copied all the jar-files into tomcat/common/lib. I think that you can't use the MessageHandler in fop20.0.3. I'm using the following serializer:
package diva.xml.xsql.serializers;
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

Similar Messages

  • XSQL-003 Error with jakarta-tomcat-4.0.3

    I am trying to set up the XSQLServlet on JBuilder7 using jakarta-tomcat-4.0.3 as the development server.
    I downloaded and carefully follwed the installation instructions for Tomcat 3.1 and 3.2 although the bat files have changed considerably. Set classpath in setclasses.bat and prescribed in instructions. Setup a context in server.xml for /xsql and setup a web.xml file to map oracle-xsql-servlet to *.xsql. Also tried mapping to *.xsql in web.xml for my application, but I continue to get the XSQL-003 error; "failed to find XSQLConfig.xml in the server classpath". I checked the discussion forums and tried jarring the XSQLConfig.xml file and set that in the server CLASSPATH. Still no luck.
    My question: Are there any installation instructions for installing the XSQLServlet on Jakarta Tomcat 4.0.3?
    Tomcat can't find the XSQLConfig.xml file or there is some other problem that is throwing this exception.

    Hey man, i have the same problem, what should I do?
    I can`t define the classpath when I run the server as service, but it works when i run manually starup.bat, because there i have defined the classpath.
    Please, give me an advice
    Thanks...

  • XSQL-022 error on using FOP - serializer class not found; urgent!

    Hi all,
    currently using XDK 9.2.0.1.0. On trying to invoke Apache FOP serializer I just get the following error message:
    XSQL-022: Cannot load serializer class oracle.xml.xsql.serializers.fopserializer
    and I really don't know why....
    Running XSQL Servlet within Tomcat 4 Engine, but error pops up using both, Tomcat way and/or just the commandline invoker xsql.bat.
    Generally XSQL Servlet is working correctly.
    My classpath setting contains:
    xmlparserv2.jar; batik.jar; classes12.jar; fop.jar; fopserializer.jar; oraclexsql.jar; sax2.jar; xalan-2.0.0.jar; xalanj1compat.jar; xerces-1.2.3.jar; xschema.jar; XSQLConfig.jar; xsu12.jar
    The serializer being redefined in XSQLConfig is just:
    <serializer>
    <name>FOP203</name>
    <class>oracle.xml.xsql.serializers.fopserializer</class>
    </serializer>
    This is because of using FOP 0.20.3, so having my own serializer class due to API change in FOP 0.20.x; my fopserializer is looking like that:
    package oracle.xml.xsql.serializers;
    import org.w3c.dom.Document;
    import java.io.PrintWriter;
    import oracle.xml.xsql.*;
    import org.apache.fop.messaging.MessageHandler;
    import org.apache.fop.apps.*;
    import java.io.*;
    // FOP 0.20.3 Serializer implementation for XSQL
    public class fopserializer implements XSQLDocumentSerializer
    private static final String PDFMIME="application/pdf";
    public void serialize(Document doc, XSQLPageRequest req) throws Throwable
    try
    Driver FOPDriver = new Driver();
    FOPDriver.setRenderer(FOPDriver.RENDER_PDF);
    MessageHandler.setOutputMethod(MessageHandler.NONE);
    FOPDriver.setupDefaultMappings();
    req.setContentType(PDFMIME);
    FOPDriver.setOutputStream(req.getOutputStream());
    FOPDriver.render(doc);
    catch (Exception e)
    e.printStackTrace(System.err);
    In my XSQL file I'm using the following PI:
    <?xml-stylesheet type="text/xsl" href="listemps.fo" serializer="FOP203"?>
    Any suggestions what is wrong in here ?
    Can't use the original xsqlserializer.jar either - same error.
    Thanks in advance
    Jochen

    Hi Jochen,
    I'm working with Tomcat 4.0.3, FOP 20.0.3 and XDK 9.2.0.1.0, too.
    I've copied all the jar-files into tomcat/common/lib. I think that you can't use the MessageHandler in fop20.0.3. I'm using the following serializer:
    package diva.xml.xsql.serializers;
    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

  • XSQL-022 error

    Hi,
    I try to create a pdf with the xsql -servlet (v1.0.4) and FOP 0.14.
    When I don't use the serializer="FOP" in my <?xml-stylesheet?> processing instruction, I get an XML-file with <fo-root> as the root-element. Looks fine.
    When I include the serializer="FOP" in my <?xml-stylesheet?> processing instruction i get the following error:
    "XSQL-022: cannot load serializer class oracle.xml.xsql.serializers.XSQLFOPSerializer"
    I have used a default installation of the xsql-servlet in c:\xsql, Java in c:\jdk1.3, Apaches FOP in c:\xml\fop. The file xsql-wtg.bat is changed to this configuration.
    Everything else is working fine, so what is wrong with the set-up.
    Steve,
    if you read this I also have a request: could you publish all xsql-error messages on OTN? Your book only lists xsql-errors up to XSQL-017, the xsql-servlet documentation doesn't describe the errors at all.
    Thanks to all,
    Bart

    Did you uncomment the line in the xsql-wtg.bat that includes the:
    .\xsql\lib\xsqlserializers.jar
    FOP_HOME\fopXXX.jar
    FOP_HOME\lib\w3c.jar
    in your classpath?
    I'll post the error messages.

  • Custom XSQL Serializers Error

    Hi,
    I have wrote the following custom XSQL Serializer to render the PDF.
    import org.w3c.dom.Document;
    import org.apache.log.Hierarchy;
    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.log.output.NullOutputLogTarget;
    //Avalon
    import org.apache.avalon.framework.ExceptionUtil;
    import org.apache.avalon.framework.logger.ConsoleLogger;
    import org.apache.avalon.framework.logger.Logger;
    /**Customized serialize for FOP
    * Tested with the FOP 0.20.3RC release from 19-Jan-2002
    public class renderPDF 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
    //Setup logger
    Logger logger = new ConsoleLogger(ConsoleLogger.LEVEL_DISABLED);
    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);
    When I run this code from the Jdeveloper using the embeded server, everything works fine, but when I deploy the code to Tomcat I am getting the following error I am using the FOP 20_03 Jar files and Jdeveloper 9.03
    Oracle XDK Java 9.0.3.0.0 ProductionXSQL-023: Class servlet.renderPDF is not an XSQL Serializer
    I have the following statement in XSQL page to call the custom XSQL serializer
    <?xml-stylesheet type="text/xsl" href="xsl/invoice_pdf.xsl" serializer="java:servlet.renderPDF" ?>
    Any comments or solution will be really appericated:
    Thanks in advance:
    Mohammad

    I'm trying to write a servlet in jDeveloper to take the XML document produced by XSQLRequest and an XSL (FO) file and produce a PDF response. So far I am unable to get jDeveloper to be able to find the Apache FOP jar files.
    How did you get jDeveloper to be able to find the Apache FOP jar files?
    Thanks in advance,
    Tom.

  • Xsql-007 Error

    Oracle 9.0.1 on Solaris 9, SPARC hardware. XDK is the one that came on the CD with the original install.
    Had XSQL queries working fine, then had to change the nodename of the machine when we got a domain.
    Now all DB queries return "XSQL-007: Cannot acquire a database connection to process page.
    Io exception: The Network Adapter could not establish the connection"
    Apparently the Servlet doesn't get it's DB connection from Localhost, but from the nodename defined in /etc/nodename.
    Anybody know how to redirect from the old nodename to Localhost or the new nodename? Also, does anybody know where all the XSQL error messages are documented? I've searched OTN, no luck.
    Thanks,
    Ben

    Thanks for your reply!
    You got me on the right track! TNSNAMES.ORA had the correct hostname, but I still had the wrong hostname in $ORACLE_HOME/network/admin/listener.ora.
    What had me confused was the fact that Windows SQLPlus clients could connect just fine but the server couldn't find it's own database.
    Thank you!!!
    Regards,
    -Ben

  • XSQL work with TomCat4.04/JBoss 3.0.1 bundle? xsql-013 error

    Hi, does anyone have any luck to make xsql servlet in xdk_java_9_2_0_3_0 work with Tomcat/Jboss?
    Tomcat here is 4.0.4.
    I tried but find the following message:
    Oracle XDK Java 9.2.0.3.0 Production
    XSQL-013: XSQL Page URI is null or has an invalid format.
    I also install in on tomcat 4.0.4 standalone.
    At lease it showed that it can't find my database connection 'demo'.
    So I am not sure what is the problem any more.
    Thanks

    If you expand the xsqldemos.war file, does it work ok?
    Until xsql 10i release, pages from an unexpanded WAR file won't work. No. I extracted the war file out of the ear file and only deploy the war file.
    And try to access http://host:8080/xsqldemos/index.html
    I got the same error: "XSQL-013: XSQL Page URI is null or has an invalid format."
    However, it works with JBOSS 3.0.0 Tomcat 4.0.3.

  • Distribution KSV5 dump: K5 011 ERROR IN COIOB MISSING BUKRS FOR OBJECT

    Hi All,
    Have you met following short dump whenever? It apears during distribution cycle run in update mode? Unfortunately I am not able to find any OSS Notes that could fix it:
    Short text of error message:
    Błąd ERROR IN COIOB MISSING BUKRS FOR OBJECT KSPL01IV1330
    Technical information about the message:
    Message classe...... "K5"
    Number.............. 011
    Variable 1.......... "ERROR IN COIOB"
    Variable 2.......... "MISSING BUKRS"
    Variable 3.......... "FOR OBJECT"
    Variable 4.......... "KSPL01IV1330"
    Thanks,
    Rafał S.

    You should maintain the field control for distributions
    for the company code.
    Please use transaction:
    KCIV
    Table             CCSS       Structure for General CO Fields
    Field             BUKRS      Company Code
    Allocation type   Distribution
    Actual/plan       Actual and Plan
    Here you should set the field:
    NSFLAG ->         D always: unique or table field
    br, Guido

  • Xsql giving error

    I am using an html link to call a xsql file
    at the first instance it is accessing the database but after that it is giving an error as "Cannot view Xml input using stylesheet" XML Document must have a top level element.
    I have not used stylesheets so is the problem for that or is it necessary to use stylesheet while using XSQL Servlet Utility.

    There's no requirement to use stylesheets.
    It probably means that your page is returning no data.
    Steve Muench
    Lead Product Manager for BC4J and Lead XML Evangelist
    Author, Building Oracle XML Applications
    null

  • ALC-LCM-100-011 error for configuring LC to weblogic

    When trying to configure LC to managed weblogic application server. I am seeing this error. I tried to change the port from 7001 to 8001(configured for managed server). I tried to put the IP of localhost and tried with 127.0.0.1 and no use. My weblogic is running and I am able to see the page when hit http://localhost:7001/console
    Please help me if I missed some thing for configuration.

    Hi,
    Are you still facing this issue.
    In case you do, Could you please check whether the Machine is mapped to the Application Server and further with the managed Server in weblogic.
    I had a similar issue some time back, I was able to resolve it by checking the weblogic configuration for the Managed Server running LC.
    - Pushkar

  • XSQL Apache  XSQL Demo errors on helloworld

    Hello I am trying to get the XSQL demos to work on Apache 1.3.20 and Jserv 1.1.1. THe examples just display the SQL statement no results returned.
    Here is my Jserv properties file
    ApJservAction .xsql
    wrapper.classpath=C:\Program Files\Apache JServ 1.1.1\ApacheJServ.jar
    wrapper.classpath=c:\jsdk2.0\lib\jsdk.jar
    wrapper.classpath=C:\OraHome\jdbc\lib\classes111.zip
    wrapper.classpath=C:\OraHome\jdbc\lib\classes12.zip
    #wrapper.classpath=C:\xsql\lib\oraclexmlsql.jar
    wrapper.classpath=C:\xsql\lib\oraclexsql.jar
    wrapper.classpath=C:\xsql\lib\xmlparserv2.jar
    wrapper.classpath=C:\xsql\xdk\admin
    My Jser config
    #ApJServAction .jsp /servlets/org.gjt.jsp.JSPServlet
    #ApJServAction .gsp /servlets/com.bitmechanic.gsp.GspServlet
    #ApJServAction .jhtml /servlets/org.apache.servlet.ssi.SSI
    #ApJServAction .xml /servlets/org.apache.cocoon.Cocoon
    ApJServAction .xsql /servlets/oracle.xml.xsql.XSQLServlet
    My database iS Oracel 8.1.6. I have no problems performing XSQL taks from the command line XSQL ulity but over Apache only the SQL statment shows.
    My directory for XDK is C:\xsql. If I chnge the XMLConfig connection it will not connect so it can see the file.
    Any help would be great ?
    Thanks
    Aaron

    What DB version? What does your table look like (datatype-wise for the columns) ?

  • Error while running a sample XSQL from XML bible book from Steve Muench

    I am running the sample XSQL code from Chapter 03, which deals with exporting XML and transform into SQL statements. I'm using JDeveloper and I believe I've setup libraries and HTML root directory etc. I'm getting the following error:
    XSQL-011 Error processing XSLT stylesheet.
    XSL-1009 Attribute xsl:version not found in xsl:stylesheet.
    Can I get some help in fixing this error?
    Thanks a lot,
    Murali
    null

    Hi,
    This is the example I took from Steve Muench's book.
    <?xml version="1.0"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="text"/>
    <xsl:template match="/">
    </xsl:template1>
    </xsl:stylesheet>
    As you can see, I do have the version=1.0 attribute. Why is it complaining still?

  • XSQL-007 and list of XSQL error codes.

    I have a situation where I need to replay a request if I cannot acquire a database connection, and to not replay a request otherwise. Is the XSQL-007 code the only code that deals with database connections?
    XSQL-007: Cannot acquire a database connection to process page.
    Do you have a published list of XSQL codes? Is there a method in java code to generate the full list of XSQL codes? For example to get a list of database error codes, one can in PL/SQL use:
    set serveroutput on size 2000
    begin
    for i in 1..9999 loop
    dbms_output.put_line ( sqlerrm(-i) ) ;
    end loop ;
    end ;
    Steve.

    There's not a way to loop through the errors in Java. Here's the list.
    XSQL-001: Cannot locate requested XSQL file. Check the name.
    XSQL-002: Cannot acquire database connection from pool: {0}
    XSQL-003: Failed to find 'XSQLConfig.xml' file in server CLASSPATH.
    XSQL-004: Could not acquire a database connection named: {0}
    XSQL-005: XSQL page is not well-formed.
    XSQL-006: XSLT stylesheet is not well-formed: {0}
    XSQL-007: Cannot acquire a database connection to process page.
    XSQL-008: Cannot find XSLT Stylesheet: {0}
    XSQL-009: Missing arguments on command line
    XSQL-010: Error creating: {0}\nUsing standard output.
    XSQL-011: Error processing XSLT stylesheet: {0}
    XSQL-012: Cannot Read XSQL Page
    XSQL-013: XSQL Page URI is null or has an invalid format.
    XSQL-014: Resulting page is an empty document or had multiple document elements.
    XSQL-015: Error inserting XML Document
    XSQL-016: Error parsing posted XML Document
    XSQL-017: Unexpected Error Occurred
    XSQL-018: Unexpected Error Occurred processing stylesheet {0}
    XSQL-019: Unexpected Error Occurred reading stylesheet {0}
    XSQL-020: XSQLConfig.xml file is not well-formed.
    XSQL-021: Serializer {0} is not defined in XSQLConfig.xml
    XSQL-022: Cannot load serializer class {0}
    XSQL-023: Class {0} is not an XSQL Serializer
    XSQL-024: Attempted to get response Writer after getting OutputStream
    XSQL-025: Attempted to get response OutputStream after getting Writer

  • XSQL/XSL help (iPlanet): Error processing XSLT stylesheet

    hello-
    i am running XSQL and XSL pages on an iPlanet web server and i am receiving the following error:
    XSQL-011: Error processing XSLT stylesheet: /xslt/page/xsl_page.xsl
    XSL-1002: Error while processing include XSL file (\xslt\util\other_xsl.xsl (The system cannot find the path specified)).
    here's the deal: other_xsl.xsl (the one it says it can't find) is there in the right place, but the web server is not looking from the document root (which IS set correctly on the web server). it is looking for the file starting at the current directory.
    for example, the server is processing /xslt/page/xsl_page.xsl. it is then looking for the include file using this path: /xslt/page/XSLT/UTIL/other_xsl.xsl --- instead of the correct /xslt/util/other_xsl.xsl.
    the include statement uses the full path starting from the web root (<xsl:include href="/xslt/util/other_xsl.xsl"/>)
    any help would be appreciated.

    thanks for the response. the /xslt/util directory is browsable by the web server, and using relative paths does work (that is one of the ways i discovered what was going on in the first place), but i am rebuilding a machine and redeploying an exisiting application-- the intention is to not re-write any code.
    the part that is most confusing is that the current code/directory structure works on the current box, but not on my rebuilt box. i have gone through every config file with a fine tooth comb. it appears that the current box and my build are set up exactly the same-- but, like i said, on one it reads the include-path from the document root, on the other from the current directory.
    so confusing.

  • Error when running XSQL Servlet demo

    Environment:
    Sun Solaris5.7, Apache1.3.12, JRun2.3.3, Oracle8.1.5, IE5
    When clicking "Hello World page", the link to helloworld.xsql, it said "The page cannot be displayed. HTTP500 - Internal server error". There is no entry in Apache error_log. In access_log, it is "Get /xsql/demo/helloworld.xsql HTTP/1.1 500 213".
    When clicking other links, there was another error message "XSQL-011: Error processing XSLT stylesheet: newsstorylist.xsl
    sun.io.CharToByteUTF-8".
    Thank you very much.

    I am having the same problem, by any chance did you solve the problem..
    If so can please let me know the solution ..
    Thanks ..// Manohar //
    null

Maybe you are looking for

  • "Error 1721" when trying to install jdk-6u3-windows-i586-p.exe ??

    When I try to install the just downloaded jdk-6u3-windows-i586-p.exe = Java SE 6 upd 3 Development Kit on my WinXP computer at first everything seems fine. I can choose the installation options (all except the Java DB). and selected the installation

  • SMS sending problem

    Hi all, I am new in J2ME and i have this problem, I make application wich must send an sms message ,it works properly on emuliator, but on the phone application closes just after ckicking "send" command. on send command must make MessageConnection, g

  • Obtain byte array from StringBuffer

    Hi! I have a String Buffer containig the string of an xml file! Then I need to parse this file. How can I obtain an InputStream or ByteArrayInputStream from the StringBuffer? Thanks!

  • ESS and MSS business packages in SAP Netweaver

    Hi, I am going to work on ESS & MSS business packages in SAP Netweaver using Portal Development Kit.I have never worked on any business package before. Can somebody provide me with the flow of work or some tutorial that can help me out?Also,while wor

  • Communities application error

    I downloaded the Communities Beta app because it was recommended when I went to the Facebook website. When I try to log in to Twitter and Facebook, there's a message: Error: The client failed to connect to the gateway. How do I fix this? Or is it a p