XSQL Servlet problem

I'm working on a paper about databaseaccess with XML. I plan to use XSQL to illustrate this. Because of this, I need to know how the logic behind the XSQL servlet work!!?
More spesifically:
1. Does the servlet convert the rowset from the database to XML, or is this done by database itself.
2. Is it possible to put together the XSL with the XML on the client, instead of doing this in the servlet, or do you have to use for instance XSU to do this?
Hope anyone can help :)

1.The servlet uses internally called XML SQL Utility that does the work for you. It sends the query to the database and generate a XMl document from the results.
2.For the servlet you can pass a parameter to specify the XSL in which you want the output i.e. the XML generated in 1 is transformed using XSL sent as a parameter.
Hope this helps.
-Kg
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Jalla Jalla ([email protected]):
I'm working on a paper about databaseaccess with XML. I plan to use XSQL to illustrate this. Because of this, I need to know how the logic behind the XSQL servlet work!!?
More spesifically:
1. Does the servlet convert the rowset from the database to XML, or is this done by database itself.
2. Is it possible to put together the XSL with the XML on the client, instead of doing this in the servlet, or do you have to use for instance XSU to do this?
Hope anyone can help :)<HR></BLOCKQUOTE>
null

Similar Messages

  • XSQL Servlet Problems

    I installed Apache Jserv and it works, I cannot seem to get the oracle stuff working,
    everytim a open the URL
    http://localserver/xsql/demo/hellowrold.xsql
    it just displays the code....
    null

    It seems that the .xsql extension
    mapping is not working in your
    environment for some reason.
    Are you sure it is in the
    config file for JServ that
    is being used by the JServ
    server? I'm grasping for straws
    now since I've set this up in
    your exact scenarios more times
    than I can count. My only thought
    is that if somehow the .xsql extension
    line is not getting picked up by
    your JServ environment...

  • 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

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

  • 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

  • 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

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

  • XSQL servlet behave strange in Websphere 5.1 but not in Jboss/tomcat

    Hi, we have been using XSQL Servlet (come with 9i) in jboss for a few years without any problem.
    (The oracle database is 10g, but I don't think this is related since the XSQL use jdbc connection.)
    Recently we try to migrate the app server to websphere app server 5.1 and the majority of xsql scripts work fine (still using the original xdk/xsql jars)
    But for a few with xsql script using:
    <xsql:include-request-params xmlns:xsql="urn:oracle-xsql"/>
    it works for simple test xsql script with just this line at the very begining.
    Then I switch to a more complicated xsql with other lines such as: update-request, delete-request, it throws exceptions all the time, and after that the simple test script also breaks.
    Here is the exception in the xml returned:
    <request>java.lang.NullPointerException at oracle.xml.xsql.XSQLHttpUtil.HttpRequestAsXMLDocument(XSQLHttpUtil.java:116) at oracle.xml.xsql.XSQLServletPageRequest.getRequestParamsAsXMLDocument(XSQLServletPageRequest.java:382) at oracle.xml.xsql.actions.XSQLIncludeRequestHandler.handleAction(XSQLIncludeRequestHandler.java:39) 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:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110) at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174) at com.ibm.ws.webcontainer.servlet.ServicingServletState.service(StrictLifecycleServlet.java:333) at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116) at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283) at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42) at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:974) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:555) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200) at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119) at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276) at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71) at com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:114) at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:186) at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334) at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56) at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618) at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439) at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:593)</request>
    Could this be a bug?
    Did anyone have a clue?
    I also tried to use the xdk for 10g, but the library doesn't work with WAS 5.1 somehow, it complains about:
    javax.xml.namespace.QName: method <init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V not found
    Really appreciate your help.
    Kai.

    The fact that XSQL servlet works in other containers suggests that this is WS problem, not the servlet problem. Probably some misimplementation of a deprecated method or something. What is exact version of XSQL servlet? Have you tried with the latest 9.2.0.9 production that comes with 9.2.0.7 db patch set? If you did and the error persists, does the error stack match the one posted (line numbers are of particular interest?)

  • Retrieving lots of rows through XSQL servlet

    Hi Steve!
    I am currently trying to break XSQL-servlet in order to have some proof of usability for our customers.
    During one of these 'sessions' I discovered that the XSQL servlet throws me out with an exception error (out of memory) when I try to retrieve 70K+ rows from a table using the XSQL commandline utility. The same thing happens when requested through the webserver.
    This is definitely something I would like to be able to do without problems and (preferably) without too much programming.
    Do you know of an elegant way to handle this?
    BTW: We are trying to write a plain-and-simple export-to-XML utility, which dumps all rows of a given table to an XML file which we can feed to the XMLLoader utility from your book (which is -by the way- a great book!!)
    Would you be able to give us some suggestions?

    Here's some working code:
    import org.xml.sax.*;
    import org.xml.sax.helpers.*;
    import java.util.Stack;
    import java.io.*;
    public class ExampleContentHandler extends DefaultHandler {
    PrintWriter p;
    Stack s;
    ExampleContentHandler(PrintWriter p) {
    this.p = p;
    public void startDocument() {
    s = new Stack();
    public void startElement(String uri,
    String localName,
    String qname,
    Attributes attrs) throws SAXException {
    s.push(qname);
    p.print("<"+qname);
    int numAttrs = attrs.getLength();
    for (int j = 0; j < numAttrs; j++) {
    p.print((new StringBuffer(" ")).append(attrs.getQName(j))
    .append("='")
    .append(attrs.getValue(j))
    .append("'").toString());
    p.print(">");
    public void endElement(String uri,
    String localName,
    String qname) throws SAXException {
    s.pop();
    p.print("</"+qname+">");
    public void characters(char[] p0, int p1, int p2) throws SAXException {
    p.print(quote(new String(p0,p1, p2)));
    public void endDocument() {
    p.flush();
    private String quote(String val)
    StringBuffer s = new StringBuffer();
    int len = val.length();
    for (int i = 0; i < len; i++ )
    char c = val.charAt(i);
    switch (c)
    case '\r':
    s.append('\n');
    break;
    case '&':
    s.append("&;");
    break;
    case '<':
    s.append("<");
    break;
    case '>':
    s.append(">");
    break;
    default:
    s.append(c);
    return s.toString();
    import org.xml.sax.*;
    import java.sql.*;
    import java.io.*;
    import oracle.xml.sql.query.*;
    import oracle.xml.parser.v2.*;
    class XMLForQueryResults {
    public static void main (String arg[]) throws Exception {
    Connection cn = ConnectionHelper.getConnection();
    OracleXMLQuery q = new OracleXMLQuery(cn,
    "SELECT empno as EmpNo, " +
    " ename as Name, " +
    " sal as Salary" +
    " FROM emp WHERE empno = 7839");
    String s = q.getXMLString();
    StringReader sr = new StringReader(s);
    SAXParser sp = new SAXParser();
    PrintWriter p = new PrintWriter(System.out);
    ContentHandler c = new ExampleContentHandler(p);
    sp.setContentHandler(c);
    sp.parse(sr);
    q = new OracleXMLQuery(cn,
    "SELECT empno as \"@EmpNo\", " +
    " ename as Name, " +
    " sal as Salary" +
    " FROM emp WHERE empno = 7839");
    p = new PrintWriter(System.out);
    c = new ExampleContentHandler(p);
    q.getXMLSAX(c);
    cn.close();
    }

  • Unable to setup/mapping of XSQL Servlet

    We have installed Apache web server with Tomcat Servlet engine. We have downloaded XDK 9i for Java and we have done the setup of Classpath in tomcat.bat.
    When we try to run the XSQL file from the browser (IE5), it opens as a text file instead of running the query and converting into XML document.
    We are facing the problem in servlet mapping since the file WEB-INF/web.xml is not found in the distribution whereas it is mentioned in the installation document it should be available.
    Please help us on this.
    Thanks

    Hi!
    I think your problem happens because you haven't told Tomcat what to do when a xsql file is invoked.
    Respecting to this, I have the following lines in my web.xml file:
    <servlet>
    <servlet-name>
    xsql
    </servlet-name>
    <servlet-class>
    oracle.xml.xsql.XSQLServlet
    </servlet-class>
    <load-on-startup>
    -2147483646
    </load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>
    xsql
    </servlet-name>
    <url-pattern>
    /home/user/*.xsql
    </url-pattern>
    </servlet-mapping>
    I hope this helps!
    Best Regards,
    Andri Rocha
    PT Inovagco
    Porto - Portugal
    null

  • Simple questions about XSQL Servlet

    I want to make available to a small LAN a small number of
    my schema's tables. I want them to be in XML format so that
    someone can see them with IE5.
    Is it possible to do this with XSQL Servlet?
    My server is MS Personal Webserver on NT Workstation and I use
    Oracle 8.0.5. Can I still use XSQL Servlet?
    George.
    null

    Hi Bertold, thanks for your answer!
    Hi Anton,
    1) The answer is yes. How do you know that the user
    is created without password in AD? Do you have any
    log files available?I solve my problem with synchronization of password - Time on domain controller and Sun ONE Directory Server was different (~10 hours). Now, i fix it, and all work perfectly.
    Thanks for your time, and be happy!

  • 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

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

  • XSQL Servlet + Oracle 8i

    I have 2 questions :
    ==> Is XSQL Servlet is compliant with Oracle 8.1.7 ?
    ==> Can I easily create an SVG with XSQL Servlet ?
    [email protected]

    Hi,
    I am sorry for posting this silly question. Anyhow I have figured it out, the problem was with the oracle driver.
    Thanks anyway,
    Dinesh

Maybe you are looking for

  • Transferring library from one external drive to another

    I'm going a little bit crazy trying to figure this out to be honest. If all you read is the next paragraph that's fine, it's what I want to do. The rest is an explanation of what I've tried already, thanks: *Here is my situation. I want currently hav

  • Running apex_util.get_print_document with APEX_MAIL

    I am trying to automate the running of an apex_util.get_print_document, emailing the output to my users. When the job tries to run I get this error in the log: ORA-20022: Null value supplied for parameter p_attachment. ORA-06512: at "FLOWS_030100.WWV

  • Flash CS6 exported mov color issue

    Hi, I'm using Flash CS6 in mac, I realized that when I export the animation to mov (tested different codec), the color will be lighter, please see the bellowing screenshot. Does anyone have the same issue? how to solve it? Thanks a lot! PY

  • Random Pen Pressure in PS CS4

    Hi, I have a intuos3 with updated drivers. The pen pressure works fine with other programs(illustrator, flash, wacom settings program, etc). But in Photoshop, the pressure recognition is random. Half of the time it works fine, but other times it does

  • How can i use Canny algorithm in imaq

    hi is there Canny algorithm in imaq vision? i need it in iris project thanx