XML/XSQL Usage

Hi
Can anybody guide me how to install and use XML parsers along with sample code running on Oracle 8i ?
Also installed is IIS 4.0, Oracle JDeveloper Suite, and Web-DB.
What is the steps to follow and different tools that i will need to fetch data from database using XML, generating html and displaying it on to the Browser ?
Thanks
Pranav
null

The XSQL Servlet's release notes contain all of this info. If you have specific questions, please do post them. thanks.

Similar Messages

  • Oracle.xml.xsql.XSQLServlet in Java Web Server 2.0

    Does anyone know how to add the oracle.xml.xsql.XSQLServlet in the Java Web Srever 2.0? When running the helloworld.xsql I am now getting the following error message.
    "500 Internal Server Error
    The servlet named oracle.xml.xsql.XSQLServlet at the requested URL
    http://nw601250:8080/xsql/demo/helloworld.xsql
    reported this exception: java.security.AccessControlException: access denied (java.io.FilePermission C:\JavaWebServer2.0\public_html\xsql\demo\helloworld.xsql read). Please report this to the administrator of the web server.
    java.lang.RuntimeException: java.security.AccessControlException: access denied (java.io.FilePermission C:\JavaWebServer2.0\public_html\xsql\demo\helloworld.xsql read) at oracle.xml.xsql.XSQLPageManager.getPage(XSQLPageManager.java:122) at oracle.xml.xsql.XSQLPageProcessor.process(XSQLPageProcessor.java, Compiled Code) at oracle.xml.xsql.XSQLServlet.doGet(XSQLServlet.java:124) at javax.servlet.http.HttpServlet.service(HttpServlet.java:715) at javax.servlet.http.HttpServlet.service(HttpServlet.java:840) at com.sun.server.ServletState.callService(ServletState.java:226) at com.sun.server.ServletManager.callServletService(ServletManager.java:936) at com.sun.server.ProcessingState.invokeTargetServlet(ProcessingState.java:423) at com.sun.server.http.HttpProcessingState.execute(HttpProcessingState.java:79) at com.sun.server.http.stages.Runner.process(Runner.java:79) at com.sun.server.ProcessingSupport.process(ProcessingSupport.java, Compiled Code) at com.sun.server.Service.process(Service.java:204) at com.sun.server.http.HttpServiceHandler.handleRequest(HttpServiceHandler.java:374) at com.sun.server.http.HttpServiceHandler.handleRequest(HttpServiceHandler.java:166) at com.sun.server.HandlerThread.run(HandlerThread.java:162)"
    I have the alias *.xsql set to map to the servlet named oracle.xml.xsql.XSQLServlet under the Servlet Aliases section, but I'm not sure how to add the servlet under the Servlet section, as I'm guessing that this is the problem I'm now experiencing. I tried adding oracle.xml.xsql.XSQLServlet as both the servlet name and class, but this is not working.
    Any help would be greatly appreciated. Thanks!

    Rani,
    The following is part of a message that was posted back on Nov. 7 of '99 from Steve Muench. I just followed this exactly with the Java Web Server 1.0.1 and it worked fine (including adding the classpath settings and xsql servlet mappings as it says below). Thanks,Dan
    Here's the steps I just followed to run all the XSQL Demos under JSWDK 1.0.1
    (1) Downloaded jswdk1_0_1-win.zip from Sun
    (2) Installed in D:\jswdk-1.0.1
    (3) Edited "startserver.bat" to add the
    classpath entries needed by XSQL Servlet:
    set CLASSPATH=%CLASSPATH%;d:\xsql\lib
    set CLASSPATH=%CLASSPATH%;d:\xsql\lib\classes111.zip
    set CLASSPATH=%CLASSPATH%;d:\xsql\lib\oraclexsql.jar
    set CLASSPATH=%CLASSPATH%;d:\xsql\lib\oraclexmlsql.jar
    set CLASSPATH=%CLASSPATH%;d:\xsql\lib\xmlparserv2.jar
    (4)Edited d:/jswdk-1.0.1/webpages/WEB-INF/servlets.properties and added the line:
    xsql.code=oracle.xml.xsql.XSQLServlet
    (5) Edited d:/jswdk-1.0.1/webpages/WEB-INF/mappings.properties
    and added the line:
    .xsql=xsql
    (6) Copied D:\xsql\demo to D:/jswdk-1.0.1/webpages/xsql/demo
    (7) Started the Webserver with "startserver.bat"
    (8) Browsed http://localhost:8080/xsql/demo/index.html
    (9) Exercised all the demos.
    Hope this helps.
    Steve Muench
    Oracle XML Team

  • Error class cannot be loaded (oracle.xml.xsql.ViewObject)?

    Hallo,
    i want to use oracle.xml.xsql.ViewObject and i become the error class cannot be loaded in xsql action.
    What can it be?
    Any help is appreciated

    Thanks lot for the quick response.
    I have copied the sqljdbc.jar file to the ThirdParty folder and restarted in App server. Now that the earlier error "The target database JDBC driver class cannot be loaded" is not appearing while provisioning in the rejected task.
    I am getting a new error "GCPROV.ProvTransportProvider.DBProvisioningTransport.DB_GET_CONNECTION_ERROR".
    Can you please let me know the reason for this. All the connections parameters are correct to connect to the target databse.
    Waiting for the response.

  • XML/XSQL pages not running in 9iAS 903

    (Hopefully, this is the right place for this posting)
    I am trying to get my XML/XSQL pages to work with 9iAS 903 and I'm stuck.
    I am completely new to the XML and the XDK and have been trying since Friday to get the XDK installed and the demos to work as I'm hoping that this will get my runtime 9iAS 903 environment setup properly so that I can run my XSQL pages.
    Note I was able to install either XDK version 902 or 10 beta into the OC4J Standalone that comes with JDeveloper but when I issue the same command to install into 9iAS 903 it fails with the error listed below:
    C:\oracle\Ora9ias_j2ee\j2ee\home>java -jar admin.jar ormi://myhost.mydomain/ ias_admin welcome -deploy -file C:\oracle\xdk10beta\xdk\demo\java\xsql\xsqldemos.ear -deploymentName xsqldemos
    error:
    Error: javax.naming.NamingException: Lookup error: java.net.ConnectException: Connection refused: connect; nested exception is:
    java.net.ConnectException: Connection refused: connect
    So, now I'm wondering if something else need to be installed, but what?
    Bill G...

    Hi,
    Can you post your question at
    Oracle Application Server - General
    Regards,
    Anupama

  • XSQL-022: Cannot load serializer class oracle.xml.xsql.serializers.fop203

    Hi,
    I' have used Tomcat 4.0.3 with XSQL Servlet 9.2 for about a half year. All is working fine. When I now change to 4.1.18 the most things are also working fine. The are to problems:
    1. I have to save the XSQLConfig.xml in a jar file.
    2. My fop serializer doesn't work any longer. I'm getting all the time the following error: XSQL-022: Cannot load serializer class oracle.xml.xsql.serializers.fop203.
    I'm using the XDK 9.2.0.4 with jsdk 1.4.1 and tomcat 4.1.18 on Redhat Linux.
    Has anyone had have the same problem? Has anyone a solution for this problem?
    Regards
    Uwe

    Does the XSQLSampleSerializer exhibit the same problem?
    That is, can we rule out the fact that it's related at all to FOP?
    If you browse the following page, does it work?
    <?xml version="1.0"?>
    <?xml-stylesheet serializer="java:oracle.xml.xsql.serializers.XSQLSampleSerializer"?>
    <foo-with-java/>This sample serializer should be in your xsqlserializers.jar file.

  • Java.lang.NullPointerException at oracle.xml.xsql.XSQLHttpUtil.HttpRequestAsXMLDocume

    Hello Everyone,
    I get the following error in the <request> element of my XML result from any XSQL page. This always occurs when the page is linked from a JSP page using a simple hyperlink, accessed with <jsp:forward> or accessed with <jsp:include>. This occurs both when I include a request parameter and when I don't.
    If I access the XSQL page directly through its URL in my browser or as a link from a regular HTML page this does not occur.
    However, once I link or include to the XSQL page and get the error I continue to get it until I stop and restart the server.
    Oracle XDK Java 9.2.0.2.0 Production
    Development Environment: WebSphere Studio Application Developer 4.02
    OS: NT 4.0 SP6
    Even this simple Hello World! example produces the error when linked from a JSP page:
    <?xml version="1.0"?>
    <page connection="ghms" xmlns:xsql="urn:oracle-xsql">
         <xsql:include-request-params/>
    <xsql:query>
              SELECT 'Helo World!' AS text
              FROM DUAL
    </xsql:query>
    </page>
    Error:
    <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.servlet.engine.webapp.StrictServletInstance.doService(ServletManager.java:827)
         at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycleServlet.java:167)
         at com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServlet.java:297)
         at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycleServlet.java:110)
         at com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:472)
         at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletManager.java:1012)
         at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManager.java:913)
         at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:523)
         at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:282)
         at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:112)
         at com.ibm.servlet.engine.srt.WebAppInvoker.doForward(WebAppInvoker.java:91)
         at com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:184)
         at com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:67)
         at com.ibm.servlet.engine.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:106)
         at com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:125)
         at com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener.java:315)
         at com.ibm.servlet.engine.http11.HttpConnection.handleRequest(HttpConnection.java:60)
         at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:323)
         at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:252)
         at com.ibm.ws.util.CachedThread.run(ThreadPool.java:122)
    </request>

    Please refer to Oracle bug 3973353 in Metalink. The solution is as following:
    - extract BC4JRequestProcessor.java from \BC4J\src\bc4jstrutssrc.zip
    - copy BC4JRequestProcessor.java to ...\project\src\oracle\jbo\html\struts11\BC4JRequestProcessor.java
    - comment the following lines (lines 347 to 351):
    // Overide only if the action mapping is a BC4JActionMapping.
    // ActionMapping mapping = (ActionMapping)
    // request.getAttribute(Globals.MAPPING_KEY);
    // if (! (mapping instanceof BC4JActionMapping) )
    // return super.processMultipart(request);
    Regards,
    Rayyen

  • XML-XSQL-XML

    I would appreciate any advice on how to tackle this situation.
    We have an XML document. We want to pull one element out of each rowset in this document and put it into XSQL (e.g., satellite_number). While in XSQL we want to pull all the matching data for that satellite number from our Oracle database, which should create another XML document we intend to pass on.
    However, we don't want to use a form to send the parameter to the XSQL and we'd prefer to send all the satellite numbers to XSQL in one string.
    If I read the release notes correctly, the new version of XSQL can pull in a parameter from a session variable, which should help us get the data in there.
    Can XSQL also parse through the parameter string, (e.g., 20455, 27566, 45677) in order to select from the database to match each number? We want to have the output in one XML document rather than a separate one for each satellite number.
    Thank you for any assistance you can provide.

    If you have a comma-separated list of
    numbers in a parameter, you can do:
    <xsql:query>
    select a,b,c
    from yourtable
    where id in ( {@theparam} )
    </xsql:query>and this will return all rows
    matching any id in the comma-separated list.

  • Xml file usage

    A customer of mine is using a custom made Real Estate management software which extracts the properties' relevant data to an xml file of about 700.000 lines. I will create a website which will give the website visitor the ability to search for the available properties. I am not sure about which is the best way to manage the xml file. Should I use it natively and run the search queries on it? Should I export the data to an MS SQL Server database and run the queries on the database? I have never worked with XML before so I do not have a clue. Of course I would prefer to use the power of coldfusion.
    The xml file attached...
    Thanks in advance...

    I would recommend putting it into a database.  An XML file that big will not perform well.

  • XML Api usage

    I am trying to add "folder" nodes to this xml
    String xmlstr = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><definition><folders><folder><folderid>1234</folderid></folder><folder><folderid>5678</folderid></folder></folders></definition>";
    XMLDocument xmldoc = new XMLDocument();
    xmldoc.initialize(content : xmlstr);
    Do i have to first create & then append a node tag. Can any one suggest how new XML Nodes can be added to the existing xml. Also how do i update folderid = 1234 to ABCD
    Thanks in advance

    String xmlstr = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><definition><folders><folder><folderid>1234</folderid></folder><folder><folderid>5678</folderid></folder></folders></definition>";
    XMLDocument xmldoc = XMLDocument();
    xmldoc.initialize(content : xmlstr);
    XMLNode rootNode = xmldoc.rootFor();
    display(xmldoc.print());
    XMLNode folders = xmldoc.createXMLNodeFor(tag : "folders");
    XMLNode xmlNodeFolders = folders.appendTo(xmlNode : rootNode);
    display(xmldoc.print());
    XMLNode folder = xmldoc.createXMLNodeFor(tag : "folder");
    XMLNode xmlNodeFolder = folder.appendTo(xmlNode : xmlNodeFolders);
    display(xmldoc.print());
    the display statements are coming out blank. I am trying to append folder node to the existing XML document. Any suggestions where i am going wrong?

  • Error XSQL-017 Running XML Document Demo

    Environment: Oracle 8.1.6 (NT 4.0)
    XSQL 1.0.4.1
    JDK 1.1.8
    While running the XML Document Demo, I enter the Author, Title, Stylesheet and XML Document fields, and click the "Validate and Insert" button. Then I get the messages shown below. Any ideas? Thanks.
    ===== ===== Start Of Messages ===== =====
    XSQL-017: Unexpected Error Occurred
    java.lang.NoClassDefFoundError: java/sql/Clob
    at
    oracle.jdbc.driver.OracleStatement.get_clob_value(OracleStatement.java:4447)
    at
    oracle.jdbc.driver.OracleStatement.getCLOBValue(OracleStatement.java:3025)
    at
    oracle.jdbc.driver.OracleCallableStatement.getCLOB(OracleCallableStatement.java:439)
    at
    oracle.xml.sql.dml.OracleXMLSave.createTempCLOBFromString(Compiled
    Code)
    at
    oracle.xml.sql.dml.OracleXMLSave.getLobVal(OracleXMLSave.java:765)
    at
    oracle.xml.sql.dml.OracleXMLSave.getObjectVal(OracleXMLSave.java:690)
    at oracle.xml.sql.dml.OracleXMLSave.getStructVal(Compiled
    Code)
    at
    oracle.xml.sql.dml.OracleXMLSave.setBindValue(OracleXMLSave.java:1206)
    at oracle.xml.sql.dml.OracleXMLSave.saveNodeVal(Compiled
    Code)
    at
    oracle.xml.sql.dml.OracleXMLSave.saveNode(OracleXMLSave.java:2146)
    at oracle.xml.sql.dml.OracleXMLSave.saveNodes(Compiled
    Code)
    at
    oracle.xml.sql.dml.OracleXMLSave.saveXML(OracleXMLSave.java:1954)
    at
    oracle.xml.sql.dml.OracleXMLSave.insertXML(OracleXMLSave.java:1060)
    at
    oracle.xml.xsql.actions.XSQLInsertRequestHandler.handleAction(XSQLInsertRequestHandler.java:126)
    at oracle.xml.xsql.XSQLDocHandler.getDocument(Compiled
    Code)
    at oracle.xml.xsql.XSQLPageProcessor.process(Compiled Code)
    at oracle.xml.xsql.XSQLServlet.doGet(XSQLServlet.java:60)
    at oracle.xml.xsql.XSQLServlet.doPost(XSQLServlet.java:81)
    at
    javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at
    javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at oracle.lite.web.JupServlet.service(JupServlet.java:186)
    at oracle.lite.web.MimeServletHandler.handle(Compiled Code)
    at oracle.lite.web.JupApplication.service(Compiled Code)
    at oracle.lite.web.JupHandler.handle(Compiled Code)
    at oracle.lite.web.HTTPServer.process(Compiled Code)
    at oracle.lite.web.HTTPServer.handleRequest(Compiled Code)
    at oracle.lite.web.JupServer.handle(Compiled Code)
    at oracle.lite.web.SocketListener.process(Compiled Code)
    at oracle.lite.web.SocketListener$ReqHandler.run(Compiled
    Code)
    ===== ===== End Of Messages ===== =====
    null

    Using JDK 1.1.8 you must use the JDBC 1.x driver in classes111.zip and the companion version of the XML SQL Utility xsu111.jar.
    You'll need to download these from OTN from http://otn.oracle.com/tech/xml and then replace them in your classpath for the classes12.zip and xsu12.jar that you're using.

  • XSQLActionHandler extracting XML from ViewObject not displaying on XSQL pag

    I have the following XSQLActionHandler for a STRUTS project which is supposed to extract the XML from a view object. When I call this from a xsql page I get nothing. I have examined the Node (n) and have seen that it does get XML but after I assign it to root nothing shows up on the XSQL page. Any ideas about what might be wrong?
    package XSQLActionHandler;
    import oracle.xml.xsql.XSQLActionHandlerImpl;
    import oracle.xml.xsql.XSQLServletPageRequest;
    import oracle.xml.xsql.XSQLPageRequest;
    import org.w3c.dom.Node;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import javax.servlet.ServletContext;
    import oracle.jbo.html.BC4JContext;
    import oracle.jbo.ViewObject;
    import oracle.jbo.XMLInterface;
    import oracle.xml.parser.v2.XMLNode;
    import oracle.jbo.html.databeans.XmlData;
    public class ActionHandlerTestVO extends XSQLActionHandlerImpl {
    public void handleAction(Node root) {
    XSQLServletPageRequest xspr = (XSQLServletPageRequest)getPageRequest();
    HttpServletRequest request = xspr.getHttpServletRequest();
    BC4JContext context = BC4JContext.getContext(request);
    XSQLActionHandlerModuleImpl appmod = (XSQLActionHandlerModuleImpl) context.getApplicationModule();
    ViewObject vo = context.getApplicationModule().findViewObject("DisciplineView1");
    Node n = (Node) vo.writeXML(1, XMLInterface.XML_OPT_ALL_ROWS);
    root=n;

    You need to append your generated content as a child of "root".
    It's best practice if you call adoptNode() on it first before appending it.
    Like this:
    XMLDocument rootDoc = (XMLDocument)root.getOwnerDocument();
    rootDoc.adoptNode(n);
    root.appendChild(n);

  • SetClob error, when putting XML doc to CLOB col via XSQL

    Hi,
    When I am trying to put an XML to a VARCHAR2 column, it works fine.
    However,
    when I am trying to put it to a CLOB column,
    the Apache Server generates an Internal Server Error.
    And the error_log of the Apache contains following error message:
    java.lang.NoSuchMethodError: oracle.jdbc.driver.OraclePreparedStatement: method setClob(ILjava/sql/Clob;)V not found
    at org.apache.jserv.JServConnection.processRequest(JServConnection.java:320)
    at org.apache.jserv.JServConnection.run(JServConnection.java:188)
    at java.lang.Thread.run(Thread.java)
    I am running Oracle8i (8.1.7) on Linux 2.2.16-3.
    Please give me a help.
    Thanks,
    Joseph
    The Table:
    SQL> desc XML_TEST;
    Name Null? Type
    CLOBTEST CLOB
    SQL>
    The XSQL File, test.xsql:
    <?xml version="1.0"?>
    <test connection="xxxx" xmlns:xsql="urn:oracle-xsql">
    <xsql:insert-request table="XML_TEST"
    transform="test.xsl"/>
    </test>
    The XSL File, test.xsl:
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:output method="xml" cdata-section-elements="CLOBTEST"/>
    <xsl:template match="/">
    <ROWSET>
    <xsl:for-each select="request/parameters">
    <ROW>
    <CLOBTEST><xsl:value-of disable-output-escaping="yes" select="txtTest"/></CLOBTEST>
    </ROW>
    </xsl:for-each>
    </ROWSET>
    </xsl:template>
    </xsl:stylesheet>
    The HTML File, test.html:
    <HTML>
    <HEAD>
    </HEAD>
    <BODY>
    <FORM name="frmTest" action="test.xsql" method="POST">
    <B>Type in an XML Document:</B><BR>
    <TEXTAREA rows="10" style="width:100%" cols="70" name="txtTest"></TEXTAREA>
    <INPUT type="submit" value="Post XML Document">
    </FORM>
    </BODY>
    </HTML>
    null

    Steve,
    Your guess was right!!! Thank You.
    In my jserv.properties file,
    there were "classess111.zip" and "xsu12.jar" for the "wrapper.classpath".
    So, I modified the file to include only:
    "classess12.zip" and "xsu12.jar".
    After that, Internal Server Error was disappeared,
    but I got new errors for the response, as following:
    Oracle XSQL Servlet Page Processor 1.0.4.1 (Production)
    XSQL-017: Unexpected Error Occurred
    java.lang.NoClassDefFoundError: java/sql/Clob
    at oracle.jdbc.driver.OracleStatement.get_clob_value(OracleStatement.java:4447)
    at oracle.jdbc.driver.OracleStatement.getCLOBValue(OracleStatement.java:3025)
    at oracle.jdbc.driver.OracleCallableStatement.getCLOB(OracleCallableStatement.java:439)
    at oracle.xml.sql.dml.OracleXMLSave.createTempCLOBFromString(OracleXMLSave.java:2283)
    at oracle.xml.sql.dml.OracleXMLSave.setBindValue(OracleXMLSave.java:1218)
    at oracle.xml.sql.dml.OracleXMLSave.saveNodeVal(OracleXMLSave.java:2259)
    at oracle.xml.sql.dml.OracleXMLSave.saveNode(OracleXMLSave.java:2146)
    at oracle.xml.sql.dml.OracleXMLSave.saveNodes(OracleXMLSave.java:2061)
    at oracle.xml.sql.dml.OracleXMLSave.saveXML(OracleXMLSave.java:1954)
    at oracle.xml.sql.dml.OracleXMLSave.insertXML(OracleXMLSave.java:1060)
    at oracle.xml.xsql.actions.XSQLInsertRequestHandler.handleAction(XSQLInsertRequestHandler.java:126)
    at oracle.xml.xsql.XSQLDocHandler.getDocument(XSQLDocHandler.java:132)
    at oracle.xml.xsql.XSQLPageProcessor.process(XSQLPageProcessor.java:131)
    at oracle.xml.xsql.XSQLServlet.doGet(XSQLServlet.java:60)
    at oracle.xml.xsql.XSQLServlet.doPost(XSQLServlet.java:81)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:521)
    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)
    I am wondering if there are other mismatches.
    Thanks again,
    Joseph

  • XSQL output (XML) rows are clubbed

    Any idea Why: When I run multiple xsql queries in xsql file
    (One dml follwed by an xsql), all the rows the xml returned
    are clubbed in to a single line.
    ie. there's no line feed between elements? (Unix /Oracle8i)
    Thanks - vma
    Sample query/xsql:
    <?xml version="1.0"?>
    <Emp-Rec connection="test" xmlns:xsql="urn:oracle-xsql">
    <xsql:dml rowset-element="" row-element="">
    alter session set nls_date_format="dd-mon-yy"
    </xsql:dml>
    <xsql:query b="%" a="%" rowset-element="NAME" row element="TRANS">
    SELECT
    EMP,
    NAME,
    ID,
    TEL,
    DEPT,
    F1,
    F2,
    JOIN_DT
    FROM EMP_TBL
    WHERE EMP = '{@b}'
    AND ID = '{@a}'
    AND JOIN_DT = '07-AUG-02'
    </xsql:query>
    </Emp-Rec>

    Thanks.
    But unfortunaely I don't use any browser.
    but just the command line:
    ( java oracle.xml.xsql.XSQLCommandLine file.xsql)
    Any how it looks like the effects are same.
    However, if I use the program TestXpath, and retreive
    all the elements and rows form the xml doc,
    I get properly indented multi-row out put,
    which leads that the output data it self is OK.
    So, I still don't know why do I get all the elements
    is a sigle line. May be line/row size got to do
    some thing with it?

  • 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

  • Error when try to call a pl/sql procedure from the .xsql file

    I tried to call a pl/sql procedure like this:
    <?xml version="1.0"?>
    <page connection="omtest5" xmlns:xsql="urn:oracle-xsql">
    <xsql:include-owa>
    sampleowaxml.testone
    </xsql:include-owa>
    </page>
    but I got the following error message:
    <?xml version="1.0" ?>
    - <page>
    - <xsql-error action="xsql:include-owa">
    <statement>declare buf htp.htbuf_arr; param_names owa.vc_arr; param_values owa.vc_arr; rows integer := 32767; outclob CLOB;begin param_names(1) := 'HTTP_COOKIE'; param_values(1) := ''; param_names(2) := 'SERVER_NAME'; param_values(2) := 'mxfang-nt.us.oracle.com'; param_names(3) := 'SERVER_PORT'; param_values(3) := '80'; param_names(4) := 'SCRIPT_NAME'; param_values(4) := '/servlets/oracle.xml.xsql.XSQLServlet'; param_names(5) := 'PATH_INFO'; param_values(5) := '/xsql/test/myproject.xsql'; param_names(6) := 'HTTP_USER_AGENT'; param_values(6) := 'Mozilla/4.0 (compatible; MSIE 5.01; Windows NT)'; owa.init_cgi_env(6,param_names,param_values); sampleowaxml.testone owa.get_page(buf,rows); dbms_lob.createtemporary(outclob,true,dbms_lob.session); for i in 1..rows loop dbms_lob.writeappend(outclob,length(buf(i)),buf(i)); end loop; ? := outclob; ? := DBMS_LOB.INSTR(outclob,CHR(10)&#0124; &#0124;CHR(10));end;</statement>
    <message>ORA-06550: line 3, column 3: PLS-00103: Encountered the symbol "OWA" when expecting one of the following: := . ( @ % ; The symbol ":=" was substituted for "OWA" to continue.</message>
    </xsql-error>
    - <xsql-error action="xsql:include-owa">
    <message />
    </xsql-error>
    </page>
    This error message is very similiar to the message that Shanthir posted on Jan, 21. I did run the dbmslob.sql, but it doesn't help. Anybody has ideas how to solve it?
    I used the PL/SQL web toolkit provided by OAS4.0.8.1. I believe oracle web agent is replaced by this toolkit.
    Thanks,
    Min
    null

    Hi,
    Glad that somebody else too got this problem. Well, as I had mentioned in my previous posting too, I think there are some procedures in the package, dbms_lob, like the writeappend, createtemporary etc.. which is not found in my dbms_lob.sql file, I am using 8.0.5, but I found these procedures in the 8i, I think it is becos of that.
    By the way if anybody got this solution and got any workaround, please help me too.
    I am still waiting for the solution to that.
    Shanthi

Maybe you are looking for

  • After more than a year of success, email will not sync

    After more than a year of successfull syncs with iTunes, my iPhone GS will not sync with my Outlook Calendar. I get the message, "Either there is no default mail client or the current mail client cannot fulfill the messaging requrest. Pleae run Micro

  • Exit CL_GUI_FRONTEND_SERVICES= FILE_OPEN_DIALOG once I get the file name

    Hi I have where I have a selection screen that finds the file, you can say where to get the file. After that I need to close that window. How do I close it??? Below is an example of my program. After I choose the file and execute the program, I have

  • IC Web Client , what went wrong ?

    Hi Folks , after getting the user name and password screen i got this message in the browser window : < body onload="forward('/sap/bc/bsp/sap/ic_base/default.htm?sap-syscmd=nocookie&icwc-param1=66DBD846682F504193B70DEFD93ACFF1');" > could anyone let

  • Need help!!!  Getting frustrated!!!

    This question may have already been answered but if so then I can't find it on here. When I plug my iPhone into the docking station iTunes does not see it. I am getting the camera detect window. How do I fix this? It worked just fine a few weeks ago.

  • Why has my apple id been disabled

    All of a dudden my apple id is diabled when I try to install apps but works for everything else