Help XSQL Servelet

Hi!
Could any please help in XSQL SERVELET
I downloaded the xsql servelet for genrating XML pages.
But when I run the demo file that come with it, It gives me this error :
" Oracle XSQL Servlet Page Processor 1.0.0.0.0
XSQL-004: Could not acquire a database connection named: demo
XSQL-007: Cannot acquire a database connection to process page"
Even though I have set up a connection name Demo.
I would really appreciate your help.
Look forward to hearing from you soon
Thanks
Kaiser
[email protected]

hi
i am not able to connect to the remote database
my xsqlconfig file is
<connection name="demo1">
<username>itrade</username>
<password>itrade</password>
<dburl>jdbc:oracle:thin:@itrade.itradeB2B:1521:itradeEnglish</dburl>
<driver>oracle.jdbc.driver.OracleDriver</driver>
</connection>
where itrade.itradeB2B is my connectstring
and my sid of the Remoteserver is itradeEnglish.
any where i have gone wrong
the error is
XSQL-007: Cannot acquire a database connection to process page.
I/O?????: The Network Adapter could not establish the connection
thanks
null

Similar Messages

  • Xsql Servelet

    Hi!
    I download and XSQL serverlet from oracle site.
    But i have problems running the demo.
    when ever i click on one the demo for example hello world it give me this error
    Oracle XSQL Servlet Page Processor 1.0.0.0 (Production)
    XSQL-004: Could not acquire a database connection named: demo
    XSQL-007: Cannot acquire a database connection to process page.
    Could anyone please help me . I really appricate it.
    Thanks
    Kaiser
    [email protected]
    null

    Try changing the configuration file in both
    the places,the directory like c:\xsql as well as c:\xsql\lib. For me It couldn't able
    to start the Web-to-Go server without the configuration file in the root directory.Once I modified the XsqlConfig.xml file in the c:\xsql directory, I got the same error message that you got. Then I did the same
    cut and paste in the .\lib directory XsqlConfig.xml file it started working fine.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by kaiser [email protected]):
    Hi!
    I download and XSQL serverlet from oracle site.
    But i have problems running the demo.
    when ever i click on one the demo for example hello world it give me this error
    Oracle XSQL Servlet Page Processor 1.0.0.0 (Production)
    XSQL-004: Could not acquire a database connection named: demo
    XSQL-007: Cannot acquire a database connection to process page.
    Could anyone please help me . I really appricate it.
    Thanks
    Kaiser
    [email protected]
    <HR></BLOCKQUOTE>
    null

  • Help xsql

    I have a big problem, this is the result when I try to run the demo of ORACLE XSQL Servlet (1.0) under Apache Jserv. My db is oracle8i Enterprise Edition.
    XSQL-007: Cannot acquire a database connection to process page.
    Eccezione IO: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=135286784)(ERR=12505)(ERROR_STACK=(ERROR= (CODE=12505)(EMFI=4))))
    Can you help me ?
    Thank you ,Marco
    null

    hi
    i am not able to connect to the remote database
    my xsqlconfig file is
    <connection name="demo1">
    <username>itrade</username>
    <password>itrade</password>
    <dburl>jdbc:oracle:thin:@itrade.itradeB2B:1521:itradeEnglish</dburl>
    <driver>oracle.jdbc.driver.OracleDriver</driver>
    </connection>
    where itrade.itradeB2B is my connectstring
    and my sid of the Remoteserver is itradeEnglish.
    any where i have gone wrong
    the error is
    XSQL-007: Cannot acquire a database connection to process page.
    I/O?????: The Network Adapter could not establish the connection
    thanks
    null

  • Chaining stylesheets with XSQL!

    I am attemping to post a form to an XSQL page and insert the parameters into an Oracle database. The easiest way to do the tranformation is to apply a stylesheet to the XML generated automatically by the XSQL servelet and then apply another stylesheet to the result of the first transformation. I guess my real question is how can I apply a series of XSLT stylesheets in succession with each one operating on the results of the previous transformation?
    Thank you in advance for your time,
    Jason Long

    Dear Steve,
    My problem is that the <OPTIONS>...</OPTIONS> is not present in the orginal post. I am having a problem selecting this node in order to apply ext:xmlMarkup. The following is the exact code I am trying to use:
    This is the stylesheet that I am applying to the posted request. This works just fine.
    addItem.xsl
    <?xml version="1.0" encoding="iso-8859-1" ?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:ext="http://www.oracle.com/XSL/Transform/java/MarkupExtensions"
    exclude-result-prefixes="ext">
    <xsl:output method="xml" indent="no" />
    <!-- Root template -->
    <xsl:variable name="sku" select="//sku" />
    <xsl:template match="/">
    <ROWSET>
    <ROW>
    <xsl:apply-templates select="//sku | //quantity | //specialRequests | //customerID"/>
    <OPTIONS>
    <xsl:apply-templates select="//dropDown | //checkbox | //addOn"/>
    </OPTIONS>
    </ROW>
    </ROWSET>
    </xsl:template>
    <xsl:template match="dropDown">
    <dropdown id="{substring-before(text(),'|')}" value="{substring-after(text(),'|')}" />
    </xsl:template>
    <xsl:template match="OPTIONS">
    <OPTIONS>
    <xsl:value-of select="ext:xmlMarkup(*)" />
    </OPTIONS>
    </xsl:template>
    <xsl:template match="addOn">
    <addOn sku="{text()}" />
    </xsl:template>
    <xsl:template match="checkbox">
    <checkbox value="{text()}" />
    </xsl:template>
    <xsl:template match="dropDown">
    <dropdown id="{substring-before(text(),'|')}" value="{substring-after(text(),'|')}" />
    </xsl:template>
    <xsl:template match="quantity">
    <QUANTITY><xsl:value-of select="//quantity" /></QUANTITY>
    </xsl:template>
    <xsl:template match="specialRequests">
    <SPECIAL_REQUESTS><xsl:copy-of select="//specialRequests/text()" /></SPECIAL_REQUESTS>
    </xsl:template>
    <xsl:template match="customerID">
    <CUSTOMER_ID><xsl:value-of select="//customerID" /></CUSTOMER_ID>
    </xsl:template>
    <xsl:template match="sku">
    <SKU><xsl:value-of select="//sku" /></SKU>
    </xsl:template>
    <xsl:template match="submit" />
    </xsl:stylesheet>This is the XSQL page I am sending the request to for insert into the DB.
    addItem.xsql
    <?xml version = '1.0'?>
    <root xmlns:xsql="urn:oracle-xsql" connection="connJMLIE">
    <xsql:insert-request
    table="cart"
    transform="addItem.xsl" />
    </root>Every column is added except OPTIONS. This is null if any "<" are present. This is why I am trying to use ext:xmlMarkup.
    My problem is how do I apply the OPTIONS template to the results of the addItem.xsl in order to escape "<" and add the data as I intended?
    Thank you for your time Steve,
    Jason

  • XSQL and 8.0.5

    Does anyone have XSQL running with 8.0.5?
    null

    If you mean using XSQL Servelet and XSQL pages that retrieve, insert and update data then yes. I have used 7.3.4, 8.05, 8.1.5, 8.1.6 and 8.1.7 on Solaris and 8.1.7 on NT.
    Obviously you cannot use 8i features such as Objects and CURSOR queries if the database does not support them.
    null

  • Are there any loggin capabilities in the xsql servlet??

    Hi,
    I would like to log things like query results, errors etc on the file system when using the xsql servlet.
    Is there facility in say XSQLConfig.xml, that will allow me secify a file name that will be subsequently used by the xsql servelet to do this.
    Note I know this can be done using standard Java methods, when using the XSQLRequest object. I am trying to avoid doing this, if the xsql servlet itself can be used.
    Thanks,
    - Manish

    Hello Michael,
    You may use Java callouts with Oracle B2B for transformation purpose but it is not recommended to do heavy transformations in that. For light transformations you may use this. TP facing callouts are also supported.
    Please refer -
    http://download.oracle.com/docs/cd/E14571_01/integration.1111/e10229/callouts.htm#CHDEFBDG
    Does the EDIFECS XEngine, used by the Oracle SOA Suite 11g B2B at runtime, have hooks that can be used to configure custom transformation logic and associate it with specific trading partner agreements or channels?No. EDIFECS Xengine is used for translation purpose only. It uses ecs file for translation and validation. In short, it is for translation support.
    Regards,
    Anuj

  • Xsl always escaping in attributes

    I am using latest XDK Beta on Solaris.
    Specifically, the xsql servelet.
    The servelet is always escaping an apostrophe (as &apos;) in xml attributes. It is required to escape < or >, but should allow '(in a "quoted" string") or "(in a 'quoted' string).
    At the same time, it escapes < and > in CDATA nodes, although not I believe ' or " in CDATA.
    Sample starting xml:
    <text name=" 'foo' ">foo</text>
    <![CDATA[ <foo> ]]>
    Will be translated to:
    <text name=" &apos;foo&apos; ">foo</text>
    <![CDATA[ <foo> ]]>
    I found this problem when trying to output html with embedded javascript activities. Which requires literal strings be quoted when referenced.
    Any help much appreciated. Thanks in advance.
    Gene Smith

    Hi,
    < and > shouldn't be (and aren't) escaped by the processor for the html output method if they are contained in a script or style element. You can either use a CDATA section as you described, or escape < and > in your stylesheet or source document using &;lt; and &;gt;.
    For example,
    escaping1.xsl:
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:output method="html" />
    <xsl:template match="somefile">
    <html>
    <head>
    <script type="text/javascript">
    function lessThanTwo(number) {
    if (number &;lt; 2) return true;
    return false;
    </script>
    <script type="text/javascript">
    <![CDATA[
    function moreThanFive(number) {
    if (number > 5) return true;
    return false;
    ]]>
    </script>
    <script type="text/javascript">
    <xsl:value-of select="myscript" />
    </script>
    </head>
    <body>
    </body>
    </html>
    </xsl:template>
    </xsl:stylesheet>testescaping.xml:
    <?xml version="1.0"?>
    <?xml-stylesheet type="text/xsl" href="escaping1.xsl" ?>
    <somefile>
    <myscript>
    function lessThanTwenty(number)
    if (number &;lt; 20) return true;
    return false;
    </myscript>
    </somefile>results in:
    output.html:
    <html>
    <head>
    <META http-equiv="Content-Type" content="text/html">
    <script type="text/javascript">
    function lessThanTwo(number) {
    if (number < 2) return true;
    return false;
    </script>
    <script type="text/javascript">
    function moreThanFive(number) {
    if (number > 5) return true;
    return false;
    </script>
    <script type="text/javascript">
    function lessThanTwenty(number)
    if (number < 20) return true;
    return false;
    </script>
    </head>
    <body></body>
    </html>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?

  • Please Help me in finding XDK for XSQL Software

    In some Application (what I am devbeloping) I need to fetch data from Oracle 8i and embed it into an XML for further processing.
    I read that XSQL Server pages is capable to generate XML with data embedded in it. For this operation XDK is Required. I don't know where I can get the XDK software for Oracle 8i. Please help.
    Thanks in advance.
    Vivek.
    E-mail:- [email protected]

    Hi,
    914618 wrote:
    WITH mydata AS
    SELECT 1 emp_id, 'John Smith' emp_name FROM DUAL UNION ALL
    SELECT 2 emp_id, 'Steve Jobs' emp_name FROM DUAL UNION ALL
    SELECT 3 emp_id, 'Larry Allison' emp_name FROM DUAL
    SELECT emp_id, emp_name
    FROM mydata;
    after executing the above query the o/p I am getting is in the normal format like EMP_ID and EMP_NAME
    not according to my requirement like
    Emp Emp
    Id NameWhat are the results you reaally want? Do you want this?
    `   EMP_ID SPLIT_NAME
             1 John
               Smith
             2 Steve
               Jobs
             3 Larry
               AllisonIf so:
    SELECT  emp_id
    ,      REPLACE (emp_name, ' ', CHR (10))     AS split_name
    FROM      mydata
    ;The results above are 3 rows, not 6.
    What results would you want if emp_name contained 3 or more words? For example, if you add this to the sample data:
    SELECT 9 emp_id, 'Aung San Suu Kyi' emp_name FROM DUAL UNION ALL

  • XSQL/XSL help (iPlanet): Error processing XSLT stylesheet

    hello-
    i am running XSQL and XSL pages on an iPlanet web server and i am receiving the following error:
    XSQL-011: Error processing XSLT stylesheet: /xslt/page/xsl_page.xsl
    XSL-1002: Error while processing include XSL file (\xslt\util\other_xsl.xsl (The system cannot find the path specified)).
    here's the deal: other_xsl.xsl (the one it says it can't find) is there in the right place, but the web server is not looking from the document root (which IS set correctly on the web server). it is looking for the file starting at the current directory.
    for example, the server is processing /xslt/page/xsl_page.xsl. it is then looking for the include file using this path: /xslt/page/XSLT/UTIL/other_xsl.xsl --- instead of the correct /xslt/util/other_xsl.xsl.
    the include statement uses the full path starting from the web root (<xsl:include href="/xslt/util/other_xsl.xsl"/>)
    any help would be appreciated.

    thanks for the response. the /xslt/util directory is browsable by the web server, and using relative paths does work (that is one of the ways i discovered what was going on in the first place), but i am rebuilding a machine and redeploying an exisiting application-- the intention is to not re-write any code.
    the part that is most confusing is that the current code/directory structure works on the current box, but not on my rebuilt box. i have gone through every config file with a fine tooth comb. it appears that the current box and my build are set up exactly the same-- but, like i said, on one it reads the include-path from the document root, on the other from the current directory.
    so confusing.

  • HELP : Using XSQL programmatically

    Hi,
    I'd like to use XSQLRequest into a program, but the problem is what i want the XSQLRequest to process isn't a file but a buffer in memory such as a String.
    As XSQLRequest doesn't have a constructor with a String which contents a XSQL buffer
    and I can't create a file on the system because of performance.
    Thank you for your help

    I, too, am getting the error
    java.lang.RuntimeException: oracle.aurora.rdbms.ModifyPermissionException: In [email protected](byte[], int, int)
    under 8.1.7. My Java program ran correctly when executed from a client machine but as soon as I converted it to a Java stored procedure and loaded it into our 8.1.7 database, weird things started to happen.
    It is nice to know I'm not crazy.

  • Help me in writing XSQL

    Please find the XML file in a XMLTable at the end.
    Please help me out to extract the node value for the fragement <CUST_TRX_TYPE_NAME> and when the TRX_NUMBER value is 00037994.
    Thanks in Advance
    cheers
    anu...
    <?xml version="1.0"?>
    <?xml-stylesheet type="text/xsl" href="sj-trx-line.xsl"?>
    <DOCUMENT>
    <TRX>
    <RA_INTERFACE_LINE>
    <MEMO_LINE_NAME> FREIGHT </MEMO_LINE_NAME>
    <TRX_NUMBER> 00037994 </TRX_NUMBER>
    <CUST_TRX_TYPE_NAME> SAN JOSE INVOICE </CUST_TRX_TYPE_NAME>
    </RA_INTERFACE_LINE>
    <RA_INTERFACE_LINE>
    <MEMO_LINE_NAME> SAN JOSE FREIGHT/TAX LINE </MEMO_LINE_NAME>
    <TRX_NUMBER> 00037995 </TRX_NUMBER>
    <CUST_TRX_TYPE_NAME> SAN JOSE INVOICE </CUST_TRX_TYPE_NAME>
    </RA_INTERFACE_LINE>
    </TRX>
    </DOCUMENT>

    <?xml version="1.0"?>
    <?xml-stylesheet type="text/xsl"?>
    <xsql:query connection="demo"
    SELECT CUST_TRX_TYPE_NAME From table WHERE TRX_NUMBER ='00037994'
    </xsql:query>

  • BIND-PARAMS HELP PLEASE IN XSQL

    Hello All,
    I have 3 tables these are track, album and a join table called albumTrack I need to use bind-params to link album and track up with the join table so that when i select an album I can view all the tracks associated with that album. Here is my XSQL page:
    <xsql:query  rowset-element="albums" row-element="album">
    SELECT
    dbalbumid AS albumid,
    dbalbumname AS albumname
    FROM
    album
    </xsql:query>
    <xsql:query  rowset-element="albumTracks" row-element="albumTrack">
    SELECT
    dbalbumid AS albumId,
    dbalbumtrackid AS albumTrackId
    FROM
    albumTrack
    </xsql:query>
    <xsql:query  rowset-element="tracks" row-element="track">
    SELECT
    dbtrackid AS trackid,
    dbtrackname AS trackname
    FROM
    track
    </xsql:query>Edited by: user10711723 on 13-Jan-2009 11:22

    solved.

  • Help Install XSQL servlet on OAS 4.0.8.1

    We are having difficulties installing XSQL Servlet on our Oracle Application Server (4.0.8.1). Is there any documentation on how to complete this installation?
    Thanks in advance

    Bugs in 4.0.8.1 make running the XSQL Servlet unreliable with that release.
    I'd suggest trying the 4.0.8.2 release or using a combination of Apache + JServ to work with XSQL Servlet.
    Thanks.

  • XSQL version upgrade / help

    I want to upgrade from XSQL 1.0.4 to XSQL 9.2.0.5 on a AIX (unix) server.
    This is because I want to use some of the advanced features available in this upgrade.
    ( Eg: setting multiple parameters using xsql:set-page-params ...)
    But our server's base oracle version is Oracle 8.1.7.
    My doubt is weather I can upgrade the XSQL without changing my old oracle installation.
    What other upgrades would I have to make for this?
    Thanks in advance,
    Deepak

    You'd need to upgrade to the full, new set of Oracle XDK jar files that comes with XDK 9.2.0.5
    For example, you would need (from the ./lib directory of the XDK for Java 9.2.0.5 release...):
    xmlparserv2.jar
    oraclexsql.jar
    xsqlserializers.jar
    xsu12.jar
    at a minimum for things to work correctly.

Maybe you are looking for