9.0.4: XSQL-003/XSQL-007

My colleague is creating XSQL/XSL pages to return query results from an XML Schema in the DB. I have some JSPs that provide front-end UIs for these queries. We devoloped this in 9.0.3.3 and it worked fine. She sent the XSQL files and I included them into my project and called them from a JSP. Everything worked fine. I was forced to upgrade to 9.0.4 due to a bug and now when I call her XSQL files I get a connection not found error like follows:
Oracle XSQL Servlet Page Processor 9.0.3.0.0 (Production)
XSQL-004: Could not acquire a database connection named: iidev
XSQL-007: Cannot acquire a database connection to process page.
The connection iidev exists and I use it in the JSP that calls this xsql. I tried creating a new connection and a basic XSQL page like this:
<?xml version="1.0" encoding='windows-1252'?>
<page xmlns:xsql="urn:oracle-xsql" connection="TestConnection">
</page>
Which throws the same error.

If you don't have an XSQLConfig.xml file, then XSQL won't work, so you must have one. :-)
JDeveloper will include one in your classpath at runtime automatically. It also manages to keep your XSQLConfig.xml up to date with your IDE's connections. However, here's probably what's happening.
You upgraded from 9.0.3 to 9.0.4
In 9.0.3, each time you defined a new database connection in the JDeveloper IDE, JDeveloper fixed up your XSQLconfig.xml file to match, so that there was a corresponding entry in the XSQLConfig.xml file for each connection you defined in the IDE.
When you migrate, even if you migrated all your settings, we don't migrate the XSQLConfig.xml file, so you're basically starting with a "fresh" one, which only has a "demo" connection defined for scott/tiger.
What I'd recommend is to:
1. Look at the top of your XSQL pages, and find the connection="XXXX" attribute in the file. It will be on the root element of the document.
2. You probably have a connection named XXXX under your Jdeveloper connections node.
3. Delete that "XXXX" connection in JDeveloper, and recreate a new "XXXX" connnection with the same information.
Doing this, JDeveloper will add the newly created "XXXX" connection to your XSQLConfig.xml file.
Then, it should work.

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-003: Failed to find 'XSQLConfig.xml' file in server CLASSPATH.

    Hi,
    I'm trying to make the Tomcat 1.3.2 to work with xsql servlet, and have followed the instructions on how to do it, but i get the : XSQL-003: Failed to find 'XSQLConfig.xml' file in server CLASSPATH. - error.
    What am I doing wrong?
    null

    Forget it...
    I had pasted in:
    set CLASSPATH=%CLASSPATH%;directory_where_XSQLConfig.xml_resides
    istead of:
    set CLASSPATH=%CLASSPATH%;C:\xsql\lib
    works now....
    null

  • Xsql CURSOR XSQL-017

    Hi everybody.
    I have a problem when I try to run a xsql with my browser.
    I type: http://hostaix433/TremaDesa/XSQL/SEst1.xsql and I get the next message :
    Oracle XDK Java 9.2.0.6.0 Production
    XSQL-017: Unexpected Error Occurred
    java.lang.NoClassDefFoundError: java/util/Map
    at
    at oracle.jdbc.driver.OracleConnection.addClassMapEntry(OracleConnection.java:2849)
    at oracle.jdbc.driver.OracleConnection.addDefaultClassMapEntriesTo(OracleConnection.java:2843)
    at oracle.jdbc.driver.OracleConnection.initializeClassMap(OracleConnection.java:2529)
    at oracle.jdbc.driver.OracleConnection.ensureClassMapExists(OracleConnection.java:2523)
    at oracle.jdbc.driver.OracleConnection.getTypeMap(OracleConnection.java:2829)
    at oracle.jdbc.driver.OracleStatement.getObjectValue(OracleStatement.java:5849)
    at oracle.jdbc.driver.OracleResultSetImpl.getObject(OracleResultSetImpl.java:765)
    at oracle.xml.sql.dataset.OracleXMLDataSetExtJdbc.getColumnTypeObject(OracleXMLDataSetExtJdbc.java:494)
    at oracle.xml.sql.core.OracleXMLConvert.createColNames(OracleXMLConvert.java:1100)
    at oracle.xml.sql.core.OracleXMLConvert.getXML(OracleXMLConvert.java:848)
    at oracle.xml.sql.query.OracleXMLQuery.getXMLDOM(OracleXMLQuery.java:361)
    at oracle.xml.sql.query.OracleXMLQuery.getXMLDOM(OracleXMLQuery.java:308)
    at oracle.xml.xsql.actions.XSQLQueryHandler.handleAction(XSQLQueryHandler.java:246)
    at oracle.xml.xsql.XSQLDocHandler.getDocument(XSQLDocHandler.java:149)
    at oracle.xml.xsql.XSQLPageProcessor.process(XSQLPageProcessor.java:140)
    at oracle.xml.xsql.XSQLServlet.doGet(XSQLServlet.java:60)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:499)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
    at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
    at org.apache.jserv.JServConnection.run(JServConnection.java:294)
    at java.lang.Thread.run(Thread.java)
    My xsql file :
    <xsql:query connection="bddesa2_trema" xmlns:xsql="urn:oracle-xsql">
    SELECT idse, nombre, modoacceso, nombrepc,
    CURSOR ( SELECT idbus, nombre, puerto, dirdatos, idse
    FROM bus
    WHERE bus.idse = subestacion.idse ) as buses
    FROM subestacion WHERE subestacion.nombre = 'SubTrema'
    </xsql:query>
    I get the error message ONLY when I use de CURSOR statement.
    Somebody could help me?
    Thanks in advanced
    Diego Robatto

    Please refer to the section:Using the CURSOR Operator for Nested Rowsets
    https://myswat.swarthmore.edu/xsql/java/xsql/relnotes.html#ID2602

  • Can I use XSQL pages & XSQL Servlet for oracle 7.3 ?

    Can I use XSQL pages & XSQL Servlet
    for oracle 7.3 or not?,if it is possible
    please give me reply.
    Thanks.
    Ramesh Nallapu.

    Can I use XSQL pages & XSQL Servlet
    for oracle 7.3 or not?,if it is possible
    please give me reply.
    Thanks.
    Ramesh Nallapu.
    null

  • Character problems with xsql:include-xsql reparse="yes"

    I have a problem retrieving XML-fragments from CLOB columns.
    Danish ISO-8859-1 characters (aelig, oslash, aring) are returned as "?" from Apache/Jserv when using xsql:include-xsql reparse="yes".
    My platform is Solaris9/Oracle-9.2.0.2/XDK-9.2.0.4.
    Database characterset is we8iso8859p1.
    I'm using the Apache/Jserv that comes with Oracle 9.2.0.1.
    Steps to reproduce problem:
    -- Table data:
    create table tab1 (id number,clob_col clob);
    insert into tab1 values(1, '<x>fxe</x>');
    /*inserted characters are aelig(230), oslash(248), aring(229)*/
    commit;
    -- test.xsql:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <testdata xmlns:xsql="urn:oracle-xsql" connection="pnrtest">
    <xsql:include-xsql reparse="yes" href="inc.xsql" />
    </testdata>
    -- inc.xsql:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <?xml-stylesheet type="text/xsl" href="unquote_clob_col.xsl"?>
    <xsql:query
    xmlns:xsql="urn:oracle-xsql"
    connection="pnrtest"
    tag-case="lower"
    >
    select clob_col
    from tab1
    </xsql:query>
    -- unquote_clob_col.xsl:
    <xsl:stylesheet
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    version="1.0">
    <xsl:output method="xml" indent="yes" omit-xml-declaration="no" encoding="ISO-8859-1"/
    <xsl:include href="identity.xsl"/>
    <xsl:template match="clob_col">
    <clob_col>
    <xsl:value-of select="." disable-output-escaping="yes"/>
    </clob_col>
    </xsl:template>
    </xsl:stylesheet>
    -- identity.xsl:
    <!-- The Identity Transformation -->
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <!-- Whenever you match any node or any attribute -->
    <xsl:template match="node()|@*">
    <!-- Copy the current node -->
    <xsl:copy>
    <!-- Including any attributes it has and any child nodes -->
    <xsl:apply-templates select="@*|node()"/>
    </xsl:copy>
    </xsl:template>
    </xsl:stylesheet>
    -- Notes:
    Running test.xsql works fine with XSQL command-line, but FAILS through Apache/Jserv (danish characters are returned as "?").
    inc.xsql works fine through XSQL command-line and Apache/Jserv, problem only happens with xsql:include-xsql reparse="yes" (e.g. test.xsql).
    xsql:include-xml works fine, but I cannot use this, bca. in my real business case I'm selecting more than one row from the database.
    I've checked and double-checked my jserv.properties several times, and believes it to be correct.
    The xsql:include-xsql reparse="yes" technique works fine in our Solaris9/Oracle-8.1.7/iAS-1.0.2.2 environment.
    Any suggestions ?
    -- Peter ([email protected])

    If I put the following line in jserv.properties:
    wrapper.env=LANG=en_US.ISO8859-1
    the problem with xsql:include-xsql reparse="yes" seems to go away.
    Really strange, since Oracle products in my experience normally only uses NLS_LANG, not LANG.
    Also, we're accessing several databases with different charactersets from the same ApacheJserv installation, so I don't understand why LANG (or NLS_LANG) should be set to a particular value.
    Can anybody explain ?
    -- Peter

  • Xsql:include-xsql problem

    I am attempting to include an authentication widget into each page of a site I am working on using the following code:
    <?xml version="1.0"?>
    <datapage connection="myDB" xmlns:xsql="urn:oracle-xsql">
    <xsql:include-xsql href="authenticate.xsql?xapi_version=1&co_num=106&username=useruser&password=password"/>
    </datapage>
    The included page is as follows:
    <?xml version="1.0"?>
    <auth connection="myDB" xmlns:xsql="urn:oracle-xsql">
    <xsql:include-owa>
    BEGIN
    XAPI.Test('{@xapi_version}','{@co_num}','{@username}','{@password}');
    END;
    </xsql:include-owa>
    </auth>
    I have tried the xsql:include-xsql tag with the reparse attribute set to both 'yes' and the default value but each time I attempt to access the page I receive the following error:
    XSQL-005: XSQL page is not well-formed.
    XML parse error at line 3, char 67
    Expected ';'.
    I cannot source the reason for this error because if I access the page to be included direct (with parameters on the query string) it works fine. Any help would be greatly appreciated.
    thanks-->cristian
    null

    This bug was fixed in XSQL 1.0.4.3, the latest production release that is part of the XDK for Java 8.1.7.1 download here on OTN.

  • Error: XSQL-005: XSQL page is not well-formed

    I am tring to execute the following simple query:
    <?xml version="1.0"?>
    <xsql:query connection="rio" xmlns:xsql="urn:oracle-xsql">
    select user from dual
    </xsql:query>
    using XSQL with Sun's JavaWebServer2.0 and am getting the following error:
    Oracle XSQL Servlet Page Processor 1.0.4.1 (Production)
    XSQL-005: XSQL page is not well-formed.
    XML parse error at line 2, char 1
    Expected 'EOF'.
    Running the XML syntax check in JDeveloper shows no errors. Any ideas of where the configuration may have gone wrong?
    Thanks,
    Claire
    null

    Steve,
    Actually any file name (even if the file does not exist) is returning the same error.
    I tried using Web-to-Go and I am getting the following error:
    "WTG-10109: Web-to-go could not locate requested URL
    Web-to-go could not locate requested URL /xsql/index.html"
    I have my test .xsql files in a c:/xsql/xtest folder and am calling them through http://localhost:8080/xsql/xtest/message.xsql for the JWS and trying http://localhost:7070/xsql/index.html (WTG)to see the index.html, but no joy..
    Any other ideas?
    Thanks,
    Claire
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Steve Muench ([email protected]):
    Do you maybe have two versions of this file? One that JDev is checking and the other that the web server is reading?
    Try renaming the file you think that the XSQL Servlet is serving, then re-request it through the browser with the OLD name. Do you now get an error like "unable to locate file?" or do you still see the parse error?<HR></BLOCKQUOTE>
    null

  • Passing parameters to an included xsql file (using xsql:include-xsql)

    Hi,
    because I want to use different stylesheets for my transformations I use the setup with including the actual query xsql file from a sort of wrapper xsql files around it with a different stylesheet instruction.
    All is fine but request parameters given to the wrapper xsql file are not visible in the actual query xsql file.
    I pass values to the included file as follows:
    <xsql:include href="url_off_file_to_include?p_par1={@p_par1}" reparse="yes" />
    The wrapper file has received the p_par1 parameter first.
    The value of the parameter does not end up in the included file.
    Any ideas ??
    Cumquat
    Dave Ruzius

    The include directive <%@ include %> adds the included file inline into including JSP.
    You probably would want to use the include action: <jsp:include page="includedPage.jsp" />. This will add the response of the included page at that location.
    However, keep in mind that the var in <c:forEach> would be scoped to within the tag, so it won't be accessible to the included page. What you can do, is use <c:set var="anotherVar" value="${vf}" scope="request" />. This will allow the contents of vf to be accessible in the included page via "anotherVar".
    People on the forum help others voluntarily, it's not their job.
    Help them help you.
    Learn how to ask questions first: http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
    (Yes I know it's on JavaRanch but I think it applies everywhere)
    ----------------------------------------------------------------

  • Generate XSQL from XSQL/XSL

    Hi all,
    is it possible to generate dynamically a temporary XSQL (many querys) with XSQL/XSL and ececute this immediately.
    Thanks for any help !!
    Achim

    No, but you can simplify your problem by doing the following:
    <!-- Base stylesheet base.xsl -->
    <xsl:stylesheet ...>
    <!-- All your templates go in here -->
    <xsl:template ...>
    </xsl:template>
    </xsl:stylesheet>
    <!-- Base with ISO-XXXX encoding -->
    <xsl:stylesheet ...>
    <!-- This imports the base -->
    <xsl:import href="base.xsl"/>
    <!-- And changes the output encoding to ISO-XXXX -->
    <xsl:output encoding="ISO-XXXX"/>
    </xsl:stylesheet>
    Repeat to handle other encodings.
    You still have multiple stylesheets,
    but only one place to worry about
    managing your templates.

  • 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) ?

  • XSQL DTD, XSQL command line, XSL parameters

    I have three quick XSQL questions:
    1. Is there a DTD available for XSQL? I'd like to feed it to Emacs' PSGML mode (http://www.lysator.liu.se/projects/about_psgml.html). What do you other Emacsers use to edit XSQL and XSL files?
    2. XSQL is working fine under Apache/jserv, but the command line isn't finding my DB connections as defined in XSQLConfig.xml:
    XSQL-004: Could not acquire a database connection named: lcbean@isis
    Does this mean XSQL couldn't find the connection description, or couldn't connect to it after finding it? It does use CLASSPATH to locate XSQLConfig.xml, right?
    3. I'm trying to use parameters in an XSL stylesheet as follows:
    <html xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xsl:version="1.0">
    <xsl:param name="store_code" select="'999'"/>
    <head><title>Test</title></head>
    <body><p><xsl:value-of select="$store_code"/></p></body>
    </html>
    But I keep getting:
    XSL-1031: Variable not defined: 'store_code'
    What am I missing?
    null

    [list=1]
    [*]No. Since XSQL action elements are allowed to appear anywhere in any well-formed XML document, you cannot really describe this in a DTD.
    [*]This means you put a connection="lcbean@isis" attribute on the document element of your XSQL page, but that it could not find a <connectiondef> for that name in XSQLConfig.xml (which is found successfully if it got this far!).
    [*] See Section 11.5 in the XSLT 1.0 specification. <xsl:param> must appear immediately at the top of a template before any literal result elements. This means that <xsl:param> cannot be used in a "simple-form" stylesheet. You can either use <xsl:variable> instead, or you'll have to change to the full-form of the <xsl:stylesheet> and place the <xsl:param> at the top-level of the stylesheet, outside of any <xsl:template>.
    [list]

  • Problem testing XSQL Servlet, XSQL-0007

    Hi,
    I'm testing the XSQL Servlet, as a lot of people do. I installed
    it on Apache Web Server with JRUN servlet engine, following the
    Release Notes, but it does not work at all. I get the following
    message, when I try to run helloworld.xslq:
    Oracle XSQL Servlet Error
    XSQL-0007: XML Parsing error on requested page
    <2,1>: Expected EOF
    I checked it several times but it seems to be right, exactly as
    in the release notes.
    I read here that other people (SHankar) had the same problem, but
    your answer did not solve it:
    : : Oracle XML Team wrote:
    : : : I presume by XML source code, you are referring to
    the .xsql
    : : : source code. If that is the case then you have not
    : registered
    : : : the XSQL servlet to that extension in the web server you
    are
    : : : using. Check out that section of the installation
    : : instructions.
    Please, tell me what can I do to start testing it, since I can
    test nothing, it does not work.
    Regards,
    Esteban
    null

    Oracle XML Team wrote:
    : The only thing that can cause
    : this error is if the page you
    : are requesting is not a well-formed
    : XML document.
    : Oracle XML Team
    : http://technet.oracle.com
    : Oracle Technology Network
    I'm requesting the page that you provide as a demo:
    helloworld.xsql
    I checked it and it is a well-formed XML document.
    Anyway, other examples that you provide with the xsqlservlet zip
    file don't work either.
    null

  • 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-007 Database connection error.

    I got following message when click sample heloworld.xsql:
    Oracle XSQL Servlet Page Processor 0.9.9.1 (Technology Preview)
    XSQL-007: Cannot acquire a database connection to process page.
    Invalid Oracle URL specified: OracleDriver.connect
    We're using RH Linux 6.1, Apache Tomcat 3.1 Beta and XSQL 0.9.9.1. The database connection string in XSQLConfig.xml is:
    <connection name="demo">
    <username>scott</username>
    <password>tiger</password>
    <dburl>jdbc:oracle:jdbc:@home:1521:home</dburl>
    <driver>oracle.jdbc.driver.OracleDriver</driver>
    </connection>
    null

    <dburl> as posted is incorrect.
    A sample that is correct for the JDBC thin
    driver is:
    <connection name="demo">
    <username>scott</username>
    <password>tiger</password>
    <dburl>jdbc:oracle:thin:@localhost:1521:xml</dburl>
    <driver>oracle.jdbc.driver.OracleDriver</driver>
    </connection>
    Note "jdbc:oracle:thin" and not "jdbc:oracle:jdbc"
    hope this helps.

Maybe you are looking for