XSQL Servlet Insert error

I understand that this is the more appropriate Forum for my question.
I am struggling with this one:
My test XML is well formed:
<?xml version="1.0"?>
<SC_ESP>
<ResultSet>
<ApplicationID>App0001</ApplicationID>
<Reason>Sucess</Reason>
</ResultSet>
</SC_ESP>
Whan I try to POST this XML data via the XSQL Servlet
I get the following error:
"Character '$' is not allowed in a XML tag name."
Anyone know what it means ?
Thanks
Martin

Oops sorry folks, I see that the Java Forum has lots to do with the xsql stuff.

Similar Messages

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

  • ANN: XSQL Servlet 0.9.8.6 Release Available

    Oracle is excited to announce the 0.9.8.6 technology preview
    release of Oracle XSQL Pages and the XSQL Servlet with major
    new functionality.
    -----------------[ Download Info ]-------------------
    http://technet.oracle.com/tech/xml/xsql_servlet/
    Click on "Software" to Download
    Click on "Release Notes" for Full Documentation
    XSQL Pages are server-side XML templates that make it easy
    to exploit the powerful combination of SQL, XML and XSLT to
    prototype and deploy dynamic, data-powered sites and web
    services.
    The XSQL Servlet installs into your favorite Java Servlet
    environment and works with your favorite relational database,
    making it dead easy to:
    -> Assemble XML "DataPages" from multiple SQL Query
    Results (including full support for Oracle8i's
    richly-structured XML Objects Views), local or remote
    XML resources, Stored Procedure Calls, etc.
    -> Transform the "DataPages" in the server using XSLT,
    optionally using stylesheets that are appropriate to
    the requesting client, including the ability to
    let the client to the stylesheet processing for IE5
    or other clients in the future that support this.
    Our online support forum for XML is at:
    http://technet.oracle.com/support/bboard/discussions.htm
    The XSQL Servlet demos (included in the release) are
    installed on Oracle's OTN site and can be tested from the
    comfort of your browser before you download if you choose:
    http://technet.oracle.com/tech/xml/demo/demo1.htm
    This new 0.9.8.6 release includes...
    More Documentation
    ==================
    More extensive documentation and new tutorial material.
    New Demos
    =========
    New and enhanced demos with additional notes describing key
    points each demo is trying to illustrate.
    New API's and JavaDoc
    =====================
    Programmatically process XSQL Pages from your own Java
    programs using a new XSQLRequest object, as well as write
    custom page "action handlers" with new JavaDoc and
    example code.
    New Features
    ============
    <xsql:query>
    The <query> element from previous releases is now part of
    the xsql namespace and is referred to using the new
    <xsql:query> syntax in your XSQL Page. A new section details
    how to use <xsql:query> to produce XML query results with
    nested structure.
    <xsql:dml>
    Do DML and call stored procedures anywhere you need to in
    your XSQL Pages.
    <xsql:stylesheet-param>
    Use parametrized XSLT Stylesheets and set the stylesheet
    parameter values from your XSQL Page.
    <xsql:insert-request>
    Automatically insert posted XML or HTML Form parameters into
    the database.
    <xsql:include-xml>
    Include arbitrary XML resources at any point in your page by
    relative or absolute URL.
    <xsql:include-request-params>
    Include key information like HTTP Parameters, Session
    Variable values and Cookies into your XSQL Page for
    addressing them in your stylesheet.
    <xsql:include-xsql>
    Include the results of one XSQL Page at any point inside
    another. This allows sophisticated combinations of multiple
    XML data sources and multiple XSLT transformations.
    <xsql:include-owa>
    Include the results of executing a stored procedure that
    makes use of the Oracle Web Agent (OWA) packages inside the
    database to generate XML.
    <xsql:action>
    Invoke a user-defined action handler, implemented in Java,
    for executing custom logic and including custom XML
    information into your XSQL Page.
    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.

  • Posting XML to XSQL servlet

    Hi
    I use Java to post an XMLDocument to the XSQL servlet
    my java program :
    public void envoie() throws java.lang.Exception {
    try{
    Hashtable params = new Hashtable(1);
    URL pageUrl = new URL("http://k2sun2/xsql/insert_crpersonnes_cr.xsql");
    // Construct a new XSQL Page request
    XSQLRequest req = new XSQLRequest(pageUrl);
    org.w3c.dom.Document converted= (org.w3c.dom.Document)xmldoc;
    req.setPostedDocument(converted);
    req.process(params, new PrintWriter(System.out), new PrintWriter(System.err));
    }catch(Exception e){
    System.out.println(e);
    the program returns this error :
    <?xml version = '1.0'?><xsql-status action="xsql:insert-request" result="No posted document to process"/>
    null

    The http get is a "red herring". I wanted to see what was being fired at the xsql page and I thing the "get" referred to the retrieval of the xsql page. Anyway, here's exactly what I've got:
    Receiving Table:
    create table newsstory
    (id number
    ,title varchar2(2000)
    ,url varchar2(2000)
    ,source varchar2(2000)
    XSQL Page:
    <?xml version="1.0"?>
    <testpage connection="demo" xmlns:xsql="urn:oracle-xsql">
    <xsql:include-param name="param1"/>
    <xsql:include-param name="param2"/>
    <xsql:insert-request table="newsstory"/>
    </testpage>
    Java Program:
    import oracle.xml.xsql.XSQLRequest;
    import java.util.Hashtable;
    import java.io.*;
    import org.w3c.dom.*;
    import oracle.xml.parser.v2.*;
    import java.net.URL;
    import com.db.atg.util.XMLUtil;
    import org.apache.xerces.parsers.DOMParser;
    public class XSQLRequestSample {
    public static void main( String[] args) throws Exception {
    // Construct the URL of the XSQL Page
    URL pageUrl = new URL("http://cbitwebd1.dev.lon.deuba.com:9091/tramp_dev/jmw1.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(3);
    params.put("param1","value1");
    params.put("param2","value2");
    // Prepare an XML Document to post
    String xmldocstring = "<ROWSET><ROW><ID>55</ID><TITLE>Test Title</TITLE><URL>Test URL</URL><SOURCE>Test Source</SOURCE></ROW></ROWSET>";
    oracle.xml.parser.v2.DOMParser d = new oracle.xml.parser.v2.DOMParser();
    d.parse(new StringReader(xmldocstring));
    Document doc2Post = d.getDocument();
    // Print out the contents of do2Post to check there is something to post.
    System.out.println("value is " + XMLUtil.dom2XmlString(doc2Post));
    req.setPostedDocument(doc2Post);
    // Process the page, passing the parameters and writing the output
    // to standard out.
    req.process(params,new PrintWriter(System.out)
    ,new PrintWriter(System.err));
    Output:
    value is <ROWSET><ROW><ID>55</ID><TITLE>Test Title</TITLE><URL>Test
    URL</URL><SOURCE>Test Source</SOURCE></ROW></ROWSET>
    <?xml version = '1.0'?>
    <testpage>
    <param1/>
    <param2/>
    <xsql-status action="xsql:insert-request" result="No posted document to process"/>
    </testpage>
    null

  • 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

  • XSQL-017: Unexpected Error Occurred with fo:list-block

    I will create a list in a pdf-file. I'm using:
    <fo:list-block>
    <fo:list-item>
    <fo:list-item-label>
    <fo:block>&bull;</fo:block>
    </fo:list-item-label>
    <fo:list-item-body>
    <xsl:apply-templates select="PARAGRAPH"/>
    </fo:list-item-body>
    </fo:list-item>
    </fo:list-block>
    This makes following error:
    Oracle XSQL Servlet Page Processor 9.0.2.0.0 (Beta)
    XSQL-017: Unexpected Error Occurred
    java.lang.RuntimeException: java.lang.NullPointerException
    at oracle.xml.xsql.serializers.XSQLFOPSerializer.serialize(XSQLFOPSerializer.java:80)
    at oracle.xml.xsql.XSQLPageProcessor.process(XSQLPageProcessor.java:273)
    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 org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
    at org.apache.tomcat.core.Handler.service(Handler.java:287)
    at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
    at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
    at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
    at org.apache.tomcat.service.connector.Ajp13ConnectionHandler.processConnection(Ajp13ConnectionHandler.java:160)
    at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
    at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
    at java.lang.Thread.run(Thread.java:484)
    If I create the list without the xsl:apply-templates, works it fine.
    If I only use the xsl:apply-templates without fo:list, works it fine.
    Is this a bug in the servlet?

    Forget about it. I found the error: I forgot to use the fo:block tag surrounding the xsl:apply-templates-tag.
    Sorry!

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

  • 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

  • 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();
    }

  • How do I get XSQL Servlet to work with OCI 9i

    I'm using the most recent jdbc driver (ojdbc14.jar) that works with jdk 1.4. I'm using a 9.0.1 db, and I'm using xdk for java 9.2.0.3. If I specify an oci driver in the XSQLConfig.xml file, I get the following error with a xsql:query request:
    Oracle XDK Java 9.2.0.3.0 Production
    XSQL-017: Unexpected Error Occurred
    java.lang.UnsatisfiedLinkError: no ocijdbc8 in java.library.path
    Now why does XDK insist to look for ocijdbc8 if I only have ocijdbc9.dll installed on my client? The config file only allows oci8 in the dburl specification, which is probably why XDK insists to look for ocijdbc8, but I CANNOT specify oci9, which would make sense to me, although it's most likely not a valid specification.
    <connection name="9ic">
    <username>scott</username>
    <password>tiger</password>
    <dburl>jdbc:oracle:oci8:@</dburl>
    <driver>oracle.jdbc.OracleDriver</driver>
    <autocommit>true</autocommit>
    </connection>
    So how do get XSQL Servlet to work with OCI 9i?

    If you are using the latest Oracle9i JDBC driver, which you should be able to get from OTN, it should look for the DLL with 9 in the name.
    Perhaps you have a "stale" JDBC driver somewhere earlier on the classpath?
    Steve Muench
    JDeveloper/BC4J Development Team
    Author, Building Oracle XML Applications

  • How to configure XSQL-Servlet with Weblogic 6.0

    Hi,
              what are the steps to configure the xsql-servlet? I downloaded ora xdk 9.2 and getting the following error when requesting demo via url= http://localhost:7001/xsql/home.xsql:
              Oracle XDK Java 9.2.0.6.0 Production
              XSQL-001: Cannot locate requested XSQL file. Check the name.
              In general, I can't run either demo that came with XDK... please help!
              

    Vipul,
    Can you try adding them as the first entry in the classpath in the
    startWebLogic.smd file.
    Raj Alagumalai

  • 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());

  • Download of XSQL Servlet

    I have been trying to download the XSQL Servlets for oracle 9i by going to the site as follows:
    http://technet.oracle.com/tech/xml
    I cannot find the file like "xsqlservlet.zip" to download. All I can find is the XDK distribution. After I download the XDK, it does not have the xsql\lib\ directory to configure for the servlets engine.
    Can someone point me on how to download the XSQL Servlets on technet ?

    Steve,
    Thanks for the reply.
    I followed your lead.
    Could you please clarify this for me.
    I installed XDK for Java v. 9.0.1.1.0A (Linux, Oracle 8.1.7
    server, jdk 1.1.8).
    Loaded xmlparserv2.jar
    Loaded xmlplsql.jar
    Loaded oraclexsql.jar
    Loaded xsu111.jar (loaded with errors like
    oracleXMLSave, oracleXMLStatisSave, oracleXMLQuery could not be
    resolved).
    Executed xmlload.sql, dbmsxsu.sql, xdkplsql.sql.
    Now trying to execute script xsutest.sql from .../xdk/admin
    gives me the error 'ORA-29541: class
    SCOTT.oracle/xml/sql/query/OracleXMLStaticQuery could not be
    resolved...'
    Is it possible to say what I missed?
    Thank you
    Anatoliy

  • 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

Maybe you are looking for

  • When I touch photos the heading albums is covering "camera roll" so I can't see my pictures.  What do I do?

    When I touch "photos" the heading "Albums" is covering 'camera roll' and I can't see my pictures.  What do I do to  fix this?

  • Downloaded Videos Don't Appear in Video App on iPad

    Please help, I've tried to research this everywhere and can't find an answer. I have purchased and downloaded many shows from the itunes store onto my iPad 2 and have previously successfully watched them. All of a sudden, not sure when, all the video

  • Latest version of gstreamer?

    Hey everyone, I'm new here but I've been using Arch for a while now, so I'm pretty familiar with how to run things. I'm going to try and help out if I can, but I had this question which has been on my mind for a while now. Is there any idea on a newe

  • Can i get HBO Go without a cable provider

    I have recently purchased an Apple TV and am planning on canceling my cable. The only thing holding me back is the thought of loosing HBO Go. After some reading on apples website, all i can find is that i will need a provider inorder to utlize HBO on

  • Time machine interface glitch

    Has anyone else noticed that the text displaying the date and time is behind the forward and back arrows? I find it frustrating and it restricts usability.