Oracle XSQL Servlet Page Processor 0.9.9.1 (Technology Preview)

I trying XSQL Servlet in oracle8.1.6,Java Web Server.
When I access http://localhost:8080/xsql/index.html
I am getting this error.
"Oracle XSQL Servlet Page Processor 0.9.9.1 (Technology Preview)
XSQL-013: XSQL Page URI is null or has an invalid format."
Any suggestion....
null

JWS is not one of the supported Servlet Engines in 1.0.0.0 please see the release notes for supported engines (there are lots of them).
The XSQL 1.0.1.0 release will support and
additional set of engines that cause XSQL-013 errors becuase the return null for
the Servlet API call:
req.getRealPath(req.getServletPath());

Similar Messages

  • XSQL Servlet Page Processor 0.9.8.6 won't run

    Hi...
    I just upgraded the Servlet and keep getting
    XSQL-003: Failed to find 'XSQLConnections.xml' file in server CLASSPATH.
    XSQL-004: Could not acquire a database connection named: demo
    XSQL-007: Cannot acquire a database connection to process page.
    The classpaths are all setup correctly and the previous version worked fine. The
    setup xml file (XMLConfig.xml) is in the classpath.
    From what i can see, XSQLConnections.xml is
    not even included in the distribution so i don't understand why i get this error.
    I am using Apache + Jrun 2.3.3
    thanks for any help
    null

    That error message is outdated and should read:
    Cannot find XSQLConfig.xml in your server-side classpath. The error is definitely that it's not finding XSQLConfig.xml on your classpath. The likely cause is that you did not add the directory:
    ./xsql/lib
    to your CLASSPATH in the JRun Servlet Engine Java environment.

  • Oracle XSQL Servlet Parse Error when anchoring a link to an image

    I have a database of document links that I wish to portray in a table as graphic images. In other words, each image is a hypertext link to the document.
    From my HTML 101 I used to do this as follows:
    <IMG SRC="image.gif">
    Note, no </IMG> end tag, but this produces an image that I can click to access that document. Lousy form, but it works.
    When I run my XSL with corresponding XSQL file to create the HTML file I get the following Servlet Parse Error:
    Oracle XSQL Servlet Page Processor 1.0.1.0 (Production)
    XSQL-006: XSLT stylesheet is not well-formed: ucmDatabase3.xsl
    XML parse error at line 66, char 15
    End tag does not match start tag 'img'
    I then added the </IMG> end tag,
    <IMG SRC="image.gif"> </IMG>
    which satisfies the parser, but now I get my graphic image AND the underlined linked text together in the same table cell, which SUCKS...
    Is there a way around this madness?
    Thanks for your comments..
    Jon Kotas
    Boeing
    Canoga Park, CA

    Remember that an XSLT stylesheet is, in particular, a well-formed XML document. In a well-formed XML document, you
    cannot have an unterminated element like:
      <foo>
        <bar>  <!-- This elemenent is not closed correctly -->
      </foo>So, in your example, you're running into the problem with
    your <IMG> tag, since you have:
      <A>
        <IMG src="...">  <!-- This elt is not closed correctly -->
      </A>You just need to close the IMG tag by changing the closing > to /> instead, like this:
      <A>
        <IMG src="..."/>  <!-- This elt *IS* closed correctly -->
      </A>When it's written out to the browser, you'll see that the
    trailing slash will be removed, so the browser will be
    happy, too.

  • How to install oracle xsql servlet on bea weblogic 5.1

              Hi there,
              I tried to install oracles xsql servlet (1.0.4.1) on bea weblogic 5.1 without
              any success.
              in weblogic.properties I started with:
              weblogic.httpd.webApp.xsql=c:\\weblogic\\myserver\\servletclasses\\xsql
              And in this dir I have WEB-INF with the following web.xml:
              <?xml version="1.0" encoding="ISO-8859-1"?>
              <!DOCTYPE web-app
              PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
              "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd">
              <web-app>
              <servlet>
              <servlet-name>oracle-xsql-servlet</servlet-name>
              <servlet-class>oracle.xml.xsql.XSQLServlet</servlet-class>
              </servlet>
              <servlet-mapping>
              <servlet-name>oracle-xsql-servlet</servlet-name>
              <url-pattern> *.xsql </url-pattern>
              </servlet-mapping>
              </web-app>
              So the xsql extension is mapped to the named servlet which is found in a jar file
              contained in subdirectory lib.
              The problem is that the general mapping of *.xsql extension to specified class
              does not work at all. And there are no errors...
              Application server just presents me with the content of the xsql file instead
              of executing servlet whith the xsql file as input.
              Any ideas??
              Thanx in advance.
              JK
              

    What kind of problem do you have?
    If it's not connected with JDBC, you'd better post your question
    in webservices newsgroup.
    Regards,
    Slava Imeshev
    "leopld goess" <[email protected]> wrote in message
    news:[email protected]..
    hy out there.
    i've been working with apache soap on wl 5.1 for a while now, and
    everything seems to be working allright- as long as i don't try to
    install a servicepack, namely sp8 or sp10. if i do that, the entire
    soap service fails to deploy.
    any ideas...
    thanx
    leopold

  • Oracle XSQL Servlet entries in jserv.properties

    In my oracle 8.7 instllation on Win NT, the jserv.properties file has the foll entries
    # Oracle XSQL Servlet
    wrapper.classpath=D:\oracle\ora81/lib/oraclexsql.jar
    wrapper.classpath=D:\oracle\ora81/jdbc/lib/classes12.zip
    wrapper.classpath=D:\oracle\ora81/lib/xmlparserv2.jar
    wrapper.classpath=D:\oracle\ora81/rdbms/jlib/xsu12.jar
    wrapper.classpath=D:\oracle\ora81/xdk/lib
    Is this correct, or should the slashes in be changed as in D:\oracle\ora81\lib\oraclexsql.jar
    null

    I may sound stupid,
    But why does it not matter?
    null

  • Trying to make oracle-xsql-servlet to work under tomcat

    I am trying setup Setup "oracle-xsql-servlet" to work under tomcat.
    #1. I have installed the xdk from orcale at "C:\xdk_nt_10_1_0_2_0_production"
    #2. I have installed "Apache Tomcat Version 6.0.14"
    #3.
    I have made the following changes to "catalina.bat"
    REM Added for Oracle XSQL Servlet
    REM -----------------------------
    set CLASSPATH=%CLASSPATH%;C:\xdk_nt_10_1_0_2_0_production\lib\xsu12.jar
    set CLASSPATH=%CLASSPATH%;C:\xdk_nt_10_1_0_2_0_production\lib\oraclexsql.jar
    set CLASSPATH=%CLASSPATH%;C:\xdk_nt_10_1_0_2_0_production\lib\xmlparserv2.jar
    set CLASSPATH=%CLASSPATH%;C:\xdk_nt_10_1_0_2_0_production\lib\classes111.zip
    set CLASSPATH=%CLASSPATH%;C:\xdk_nt_10_1_0_2_0_production\xdk\admin
    echo %CLASSPATH%
    #4 created a new folder under "C:\apache-tomcat-6.0.14\apache-tomcat-6.0.14\webapps" xdk
    and created a web.xml in it. Following are the entries is the web.xml:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5">
         <description>
    XDK Examples.
    </description>
         <display-name>XDK Examples</display-name>
         <servlet>
              <servlet-name>oracle-xsql-servlet</servlet-name>
              <servlet-class>oracle.xml.xsql.XSQLServlet</servlet-class>
              <load-on-startup>1</load-on-startup>
         </servlet>
         <servlet-mapping>
              <servlet-name>oracle-xsql-servlet</servlet-name>
              <url-pattern> *.xsql </url-pattern>
         </servlet-mapping>
    </web-app>
    PROBLEM. When I start up tomcat, I keep getting the following errors.
    SEVERE: Error deploying web application directory xdk
    java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
         at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)     
    OTHER APPLICATIONS such as Examples (provided by apache) work fine.
    Any ideas ?

    XSQL may be used with Tomcat 3.1 and 3.2.
    Refer to section Jakarta Tomcat 3.1 or 3.2
    http://www.oracle.com/technology/tech/xml/xdk/doc/production10g/doc/java/xsql/xsql_userguide.html#ID3386

  • Oracle XSQL Servlet & IIS4.0

    Is it possible for Oracle XSQL Servlet to work with IIS4.0 ?

    JWS is not one of the supported Servlet Engines in 1.0.0.0 please see the release notes for supported engines (there are lots of them).
    The XSQL 1.0.1.0 release will support and
    additional set of engines that cause XSQL-013 errors becuase the return null for
    the Servlet API call:
    req.getRealPath(req.getServletPath());

  • Setting up the XSQL Servlet engine

    I am trying to set up the XSQL servlet component of 9iAS. From what I read all of the necessary components are included in 9iAS, there is no need to download the XSQL servlet from technet. Is this true? I try to run the demo's (e.g. hello world) but am always getting a connection refused error. I edited the XSQLConfig.xml file to include the host, port and sid but still no luck.
    I am at a loss. I have 8.1.7 SE database installed with JDBC drivers, 9iAS 1.0.2. Is this all I need or do I have to download something else.

    Steven,
    Thanks for responding. I am a DBA so I'm only 50% incompetent. The 9iAS version is 1.0.2.1.0 Solaris and the DB is 8i SE, right now on the same Solaris box. The Jserv and JSP demos on the initial install home page work fine and I was able to get Oracle Portal running etc. so I think the Server is working. When I check the installed products for the DB I see several JDBC drivers appear to be installed.
    segmet from XSQLConfig.xml:
    <connection name="demo">
    <username>scott</username>
    <password>tiger</password>
    <dburl>jdbc:oracle:thin:@192.100.146.22:1521:NPGSDEV</dburl>
    <driver>oracle.jdbc.driver.OracleDriver</driver>
    </connection>
    I can connect scott/tiger@npgsdev in sqlplus as well as tnsping npgsdev and the port is 1521 so the tnslistener is up and running.
    I can call up the demo page at: http://192.100.146.22:7777/xsql/java/xsql/index.html
    but any attempt to run them gives:
    Oracle XSQL Servlet Page Processor 1.0.0.0 (Production)
    Oracle XSQL Servlet Page Processor 1.0.0.0 (Production)
    XSQL-007: Cannot acquire a database connection to process page.
    Io exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=135294976)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4))))
    Any help would be greatly appreciated. -quinn

  • Problems installing latest XSQL Servlet

    After following the instructions for installing XSQL servlet for Apache with Jserv, I get the following error with a simple sql query.
    Oracle XSQL Servlet Page Processor 9.0.1.0.0 (Production)
    XSQL-017: Unexpected Error Occurred
    java.lang.AbstractMethodError: oracle/jdbc/driver/OracleResultSet.getStatement
    at oracle.xml.sql.dataset.OracleXMLDataSetExtJdbc.(OracleXMLDataSetExtJdbc.java:117)
    at oracle.xml.sql.core.OracleXMLConvert.initObject(OracleXMLConvert.java:345)
    at oracle.xml.sql.core.OracleXMLConvert.getXML(OracleXMLConvert.java:823)
    at oracle.xml.sql.query.OracleXMLQuery.getXMLDOM(OracleXMLQuery.java:364)
    at oracle.xml.sql.query.OracleXMLQuery.getXMLDOM(OracleXMLQuery.java:312)
    at oracle.xml.xsql.actions.XSQLQueryHandler.handleAction(XSQLQueryHandler.java:240)
    at oracle.xml.xsql.XSQLDocHandler.getDocument(XSQLDocHandler.java:132)
    at oracle.xml.xsql.XSQLPageProcessor.process(XSQLPageProcessor.java:134)
    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:314)
    at org.apache.jserv.JServConnection.run(JServConnection.java:188)
    at java.lang.Thread.run(Thread.java:475)
    Can anyone help

    I have included the following libs as described in the installation notes
    ie in the jserv.properties file I have
    # Oracle XSQL
    # Oracle XML SQL Utility (XSU)
    wrapper.classpath=C:\xsql\lib\sax2.jar
    wrapper.classpath=/usr/local/src/xdk/lib/xsu12.jar
    # Oracle XSQL Servlet
    wrapper.classpath=/usr/local/src/xdk/lib/oraclexsql.jar
    # Oracle JDBC (8.1.6) -- JDBC 2.0 driver
    wrapper.classpath=/usr/local/src/xdk/lib/classes12.zip
    # Oracle XML Parser V2 (with XSLT Engine)
    wrapper.classpath=/usr/local/src/xdk/lib/xmlparserv2.jar
    # XSQLConfig.xml File location
    wrapper.classpath=/usr/local/src/xdk/xdk/admin
    # FOR Apache FOP Generation, Add
    # wrapper.classpath=C:\xsql\lib\xsqlserializers.jar
    # wrapper.classpath=FOPHOME/fop_bin_0_14_0.jar
    # wrapper.classpath=FOPHOME/lib/w3c.jar
    And in the httpd.conf file I have
    Alias /xsql/ "/usr/local/src/xdk/xdk/"
    Also in the xml config file
    <connection name="promptl">
    <username>******</username>
    <password>******</password>
    <dburl>jdbc:oracle:thin:@192.****:1521:8C</dburl>
    <driver>oracle.jdbc.driver.OracleDriver</driver>
    </connection>
    I think the problem may be with my jdbc file???
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Jinyu Wang ([email protected]):
    Have include all the libs like:
    # Oracle XSQL Servlet
    wrapper.classpath=/private/orahome/lib/oraclexsql.jar
    # Oracle JDBC
    wrapper.classpath=/private/orahome/jdbc/lib/classes12.zip
    # Oracle XML Parser V2 (with XSLT Engine)
    wrapper.classpath=/private/orahome/lib/xmlparserv2.jar
    # Oracle XML SQL Components for Java
    wrapper.classpath=/private/orahome/rdbms/jlib/xsu12.jar
    Especially xsu12.jar?<HR></BLOCKQUOTE>
    null

  • Can not make XSQL servlet running under Jrun 3.1! need help

    Hi,
    I tried to run Oracle XSQL servlet under JRun 3.1,I did servlet mapping, such as
    <servlet-name>oracle-xsql-servlet</servlet-name>
    <servlet-class>oracle.xml.xsql.XSQLServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>oracle-xsql-servlet</servlet-name>
    <url-pattern>*.xsql</url-pattern>
    </servlet-mapping>
    I set classpath for XSQL related library such as oraclexsql.jar, xmlparserv2.jar,etc, I believe everything is setup correctly, however when I invoke .xsql page, I did not get data instead of getting sql text!, here is my xsql file content:
    <?xml version="1.0"?>
    <!-- reports.xsql: List of reports by user id -->
    <?xml-stylesheet type="text/xsl" href="Filter.xsl"?>
    <page connection="reports_8i" xmlns:xsql="urn:oracle-xsql">
         <dataform target="reportFilter.jsp" submit="Go">
    <xsql:set-session-param name="userid" value="{@userid}" ignore-empty-value="no"/>
         <xsql:include-param name="userid"/>
         <xsql:set-session-param name="bu_id" value="{@bu_id}" ignore-empty-value="no"/>
         <xsql:include-param name="bu_id"/>
         <xsql:set-session-param name="client_id" value="{@client_id}" ignore-empty-value="no"/>
         <xsql:include-param name="client_id"/>
         <item type="list" name="targetPage" label="Available Reports">
         <xsql:ref-cursor-function bind-params="userid">
                   reports_generation.getReportList(?)
              </xsql:ref-cursor-function>
              </item>
         </dataform>
    </page>
    What I got when I invoked this page is reports_generation.getReportList(?)!!
    It seems that JRun 3.1 did not understand xsql syntax, it means it can not find XSQL servlet related libraries, come on, I did set classpath.
    Does anyone has this experience to help me out? Highly appreicate you in advance.
    Thanks.

    i think i solved this problem by specifying the full path to javac...
    what must i do to avoid this?

  • XSQL servlet & UTF8

    Hi!
    I have oracle8i database. database's charset is UTF8. Initialization parameter NLS_LANGUAGE=Russian
    When I try to fetch data from database using XSQL pages (which proccessed by ORACLE XSQL servlet) through web server I get questions marks ('?') instead of russian's characters.
    When I fetch data using same xsql pages but invoking XSQL from command line(using oracle.xml.xsql.XSQLCommandLine) I get correct characters.
    So, where is problem? config of servlet engine? something else?
    thank you.

    1. What version of XSQL ?
    1.0.1.0 (Production)
    2. What version of the JDK ?
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0)
    IBM build cx130-20000815
    3. What servlet engine?
    Apache JServ 1.1.2
    In addition I get incorrect national characters only if I select data stored in tables. For example, select to_char(sysdate,'month') from dual
    produce correct output.

  • 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

  • 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

  • Using the XSQL Page Processor Programmatically Issue

    HI,
    I am using the oracle class "oracle.xml.xsql.XSQLRequest " to make use of the XSQL Page Processor from within a Java program and generate a diffenent format files (i.e. HTML, PDF). Everything works fine from the jdeveloper ,but when i deploy the code to Tomcat, I am getting the following error when I click on a submit button(The calls to Java code):
    java.lang.RuntimeException: java.lang.RuntimeException: Fatal error. Cannot create connection manager factory: oracle.xml.xsql.XSQLConnectionManagerFactoryImpl
    Here is the java code for rerfernce:
    // Construct the URL of the XSQL Page
    URL pageUrl = new URL("file://"+ContextPath+"invoice_html.xsql");
    // Construct a new XSQL Page request
    XSQLRequest req = new XSQLRequest(pageUrl);
    // Setup a Hashtable of named parameters to pass to the request
    Hashtable params = new Hashtable(1);
    // pass the invoice value
    params.put("Invoice",rs.getString(3)); //Invoice Id
    // Create a invoice file
    File invoiceFile = new File(rs.getString(7)+rs.getString(3)+rs.getString(5));
    // Create an Output Stream
    FileOutputStream outStream = new FileOutputStream(invoiceFile);
    // Filter bytes to ASCII
    PrintWriter out = new PrintWriter(outStream);
    // Generate a HTML invoice for each account
    req.process(params, out, new PrintWriter (System.err));
    // Close the PrintWriter
    out.close();
    Any Solution or comments will be really appricated.
    Thanks
    Mohammad

    I have fixed the problem.

  • Query handled OK on Oracle server but XSQL Servlet raises OracleXMLSQLException

    After dropping and recreating certain object types, and then using ALTER TYPE on an object dependent on those object types, XSQL Servlet raises exception for a query that is handled fine in the Oracle Server itself (ie, in SQL*Plus) as in the following test case:
    create or replace type o_object_inner as object( char1 char(1) )
    create or replace type n_nested_table as table of o_object_inner
    create or replace type o_object_outer as object (nNestedTab n_nested_table)
    For above, the following query encounters no problems on Oracle Server or in XSQL servlet:
    Select o_object_outer(NULL) as "theOuterObj" from dual
    But then if object types are modified as follows:
    drop type o_object_inner force
    create or replace type o_object_inner as object( char1 char(1) ) --same as above
    drop type n_nested_table force
    create or replace type n_nested_table as table of o_object_inner --same as above
    alter type o_object_outer compile
    The above query now encounters no problems in SQL*Plus but generates exception in XSQL servlet as follows:
    oracle.xml.sql.OracleXMLSQLException: Internal Error: Unable to resolve name
    More complex cases generated the above exception and/or the following exception:
    oracle.xml.sql.OracleXMLSQLException: Internal Error: Invalid ADT attribute
    Any insight or help would be greatly appreciated!
    Other info:
    Oracle Server 8.1.7.3 on HP-UX
    XDK 9.2.0.1 (Production) for Java on NT
    JDBC/OCI8 drivers for NT (latest for 8.1.7)

    Yes,
    I changed most of the cursor functions to cast(multiset()). Sometimes i divided a big query into two or three queries (when there was cursor nested in a cursor). It was one day work for me. Don't forget to change the tags with ROW to ITEM in your xsl-stylesheets.
    Uwe

Maybe you are looking for