XSQL-007: Cannot acquire a database connection to process page.

Just getting started with XSQL with Oracle 8.1.7. Ran the
helloworld demo and got XSQL-007 error. How do I map
connection="demo" to a database service or SID name?

I ran into somthing similar earlier. Checked an article off
ORAMAG, january 01 called 'Generating XSQL Server Pages'.
(http://www.oracle.com/oramag/oracle/01-jan/o11xml.html)
I found that if I verified the settings in the jserv.properties
file under Apache, and also verified the connetion info in the
XSQLConfig.xml file (Do a search) that you can eliminate the
issue. (I was using JDeveloper 3.2.3, and have some trouble with
JDev 9i, but I assume you can get some good info none-the-less
from this article).
Best of luck.
Scott Rappoport, OCP
AT&T Enhanced Network Services

Similar Messages

  • Xsql setup problem. 'Cannot acquire a database connection to process page.'

    This is probably a really basic problem, but I am getting the following error when I try to use the xsql demos.
    Oracle XDK Java 9.2.0.2.0 Production
    XSQL-007: Cannot acquire a database connection to process page.
    Io exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=150999297)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4))))
    I really don't know what I am doing wrong, so any help would be appreciated.
    My jserv.properties file:
    wrapper.classpath=s:\xdk_java\lib\xsu12.jar
    wrapper.classpath=s:\xdk_java\lib\oraclexsql.jar
    wrapper.classpath=s:\orant\jdbc\lib\classes12.zip
    wrapper.classpath=s:\xdk_java\lib\xmlparserv2.jar
    wrapper.classpath=s:\orant\xdk\admin
    Thankyou
    Adrian

    hehehhe
    I had the connection wrong in the XSQLConfig.xml file.
    It's all working nicely now.
    Ade

  • Unable to get demo's working, "XSQL-007: Cannot acquire...."

    I must be missing something simple but when I try to run the demo's I get the following error...
    XSQL-007: Cannot acquire a database connection to process page.
    Io exception: The Network Adapter could not establish the connection
    My XSQLConfig file has the following connection information:
    <connection name="demo">
    <username>scott</username>
    <password>tiger</password>
    <dburl>jdbc:oracle:thin:@localhost:1521:ORCL</dburl>
    <driver>oracle.jdbc.driver.OracleDriver</driver>
    <autocommit>true</autocommit>
    Do I need to upload anything to an ORACLE table to get the demo's working?
    Thanks in advance...
    Stephen

    - Can you connect your database using your JDBC connection string?
    "jdbc:oracle:thin:@localhost:1521:ORCL"
    - What is your SQL query?
    null

  • XML-25004: Could not acquire a database connection named: gksconnection

    HI Gentlemen,
    I am trying to build up an XSQL page with a query against an XMLTYPE table, to display the contents using a stylesheet. I have set up an IDE connection, the test was successful. Now I would like to start the page just to see if it works altogether. Now without a stylesheet, only that the page executes. And I am constantly running into
    XML-25004: Could not acquire a database connection named: gksconnection
    I entered the connection in the XSQLConfig file by manual editing--it did not help. Well, there is some stuff in the forum about setting some preferences for OC4J, but in my version of JDeveloper only Weblogic Server is available. So I am prevented from clearing the cause of the problem.
    My JDeveloper is a Studio Edition Version 11.1.1.3.0, Build JDEVADF_11.1.1.3.PS2_GENERIC_100408.2356.5660.
    Please help me if you can.
    Many thanks in advance,
    kind regards from
    Miklos HERBOLY

    Sorry, I found a solution in My Oracle Support which will suffice.
    Thank you very much
    Miklos

  • Cannot acquire a managed connection

    Dear All,
    I am very new to the SSIS package development so please point out my stupidity If I have done any. I am trying to ETL data from excel spreadsheet to SQL server using Excel data connections and OLE DB and ADO.Net data connection. I am using CDC task to monitor
    any changes done in the source excel file. I am doing it in a way same package extract information from the spreadsheet and import in to Server 1 (CDC enabled) and compared it to the same table hosted on another server 2 which is a production server.
    When I run this package on DTS it runs fine and I am able to generate Deployment Manifest file. When I try to run the same Manifest file I am getting below error
    Error: Failed to Decrypt an encrypt XML node because the password was not specified or not correct. Package load will attempt to continue without the encrypted information.
    Error: Cannot acquire a managed Connection from the run-time connection Manager
    I have change the package encryption level from "EncryptSensitivewithUserkey" to "EncryptsensitivewithPassword" and have added password to the PackagePassword it the package property and saved this project.
    when i add this package to the SQL agent job I am still getting below error message
    Message
    Executed as user: administrator. Microsoft (R) SQL Server Execute Package Utility  Version 11.0.2100.60 for 32-bit  Copyright (C) Microsoft Corporation. All rights reserved.    Started:  11:44:49  Error: 2014-12-04 11:44:52.10
        Code: 0xC020801F     Source: CDC Control Task CDC Control Task     Description: Cannot acquire a managed connection from the run-time connection manager.  End Error  Error: 2014-12-04 11:44:52.10     Code:
    0xC0024107     Source: CDC Control Task      Description: There were errors during task validation.  End Error  DTExec: The package execution returned DTSER_FAILURE (1).  Started:  11:44:49  Finished: 11:44:52
     Elapsed:  2.215 seconds.  The package execution failed.  The step failed.
    Please help I am stuck on this issue from last 2 days now. If you need more info please let me know.
    regards
    JK

    Looks like you run the package in thee Agent for this purpose you should use the 'Rely on server storage for encryption' (ServerStorage) protection
    In the "EncryptsensitivewithPassword" scenario you need to provide the actual password by editing the command line in there:
    with adding switch /De <password> to it
    Arthur
    MyBlog
    Twitter

  • SSIS 2012 OData - Cannot acquire a managed connection

    I have an SSIS project in SQL Server 2012 deployed via  VS 2012 SSDT-BI.
    If I run this from my local SQL Server it works correctly, however if I push it to another server and run it I always get a
    Cannot acquire a managed connection from the run-time connection manager.
    The connection looks like this..
    Document Url=http://myodata;Include Atom Elements=Auto;Include Expanded Entities=False;Integrated Security=SSPI;Persist Security Info=False;Time Out=600;Schema Sample Size=25;Retry Count=5;Retry Sleep=100;Keep Alive=True;Max Received Message Size=4398046511104
    Any ideas?
    Paul

    Can you try passing "User ID" and "Password" instead of "Integrated Security=SSPI"?
    Example,
    Base Url=http://dynamicsnav:7048/dynamicsnav70/OData/;Include Atom Elements=Auto;Include Data Services Content=True;Include Expanded Entities=False;Namespaces to Include=*;Integrated Security=Basic;User ID=navadmin;Password=**********;Time
    Out=600;Persist Security Info=False;Schema Sample Size=25;Retry Count=5;Retry Sleep=100
    Regards, RSingh

  • How to establish a MYSQL Database connection in JSP page.

    Hi People,
    Tell me how to establish mysql database connection in JSP page.
    Needed details on:
    1) what are all the mysql drivers need to be included.
    2) what is the syntax for establish a database connection

    hi,
    http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.htmlsee down for mysql config with tomcat

  • Answer: XSQL-004: Could not acquire a database connection named: gov

    I think is this the CLASSPATH issue. Please take look if there is another XSQLConfig.xml in your classpath.

    Are using 9.0.1 version of XSQL?
    Oracle XSQL Programmatic Page Processor 9.0.1.0.0 (Production) Actually ... yes and no.
    The latest version I could find for AIX was 9.0.1.0.0
    Using that version, I had the database connection error
    The production version of my program uses version 1.0.4.1 on AIX
    That version works
    I also downloaded version 9.0.2 for Windows NT from the OTN and copied my program to the PC.
    That version works when I run it on my PC
    I have a couple ideas to try this morning, with hope ... The latest version for XSQL is 9.2.0.3 on OTN, please use the latest version.

  • Cannot create a database connection

    Hi,
    I am installing WebCenter Suite 11g. In the first time I install oracle 11g in a VM since the oracle 10.2.0.2 is running in my machine and it cannot be stopped.
    The VM is in my machine.
    In the DB of VM, I create a user named user2 for testing and connect it via SQL developer.
    username: test2
    password: test2
    Host name: 192.168.222.222
    Port: 1521
    SID: orcl
    It works.
    Then, I install the RCU in my machine (not in VM). The rcu need me to key in the DB information.
    Host name: 192.168.222.222
    Prot: 1521
    Service name: orcl
    username: sys
    passord:********
    Role: SYSDBA
    However, it shows error messages:
    Unable to connect to the database useing the provided details.
    Please enter a valid hostname and port or check if the listener is up and running
    I also try to create a connection in oracle (10.2.0.2) Net manager (my machine, not the VM) and key the above information. However, it is failed.

    I check the IP address of VM and find the correct IP address is 192.168.1.30
    I also key in this address in to network connection of the VM. Then, I close the firewall.
    Then, in my machine, I can ping this addresss.
    In the VM, I can create database connection using 192.168.222.222 as host name. If I use 192.168.1.30 as hostname, the connection cannot be connected.
    But when I install the RCU, and key in the following information, it still shows error:
    Unable to connect to the database using the provided details.
    Please enter a valid hostname and port or check if the listener is up and running. But the oracle in VM is running.
    Host name: 192.168.1.30
    Port: 1521
    Service name: orcl
    username: sys
    password: ********
    Role: SYSDBA

  • Cannot establish mysql database connection with j2ee application

    Hello All,
    I started studying J2EE technology about a month back. I have this simple application involving a couple of servlets and jsps. The code is from a reliable source , so I know that there is nothing wrong with the prog code. Now the code uses a simple database, where I am stuck! I just can't connect to the database Mysql.
    I downloaded Mysql database from the mysql site.
    I downloaded JDBC driver for mysql from the same site.
    Can somebody please tell me which files(from the driver that I downloaded) have to be unzipped to jar files to be set in the class location?
    Any help is highly appreciated.
    Thanks
    Starting WithJ2EE

    Hello All,
    I started studying J2EE technology about a month back. I have this simple application involving a couple of servlets and jsps. The code is from a reliable source , so I know that there is nothing wrong with the prog code. Now the code uses a simple database, where I am stuck! I just can't connect to the database Mysql.
    I downloaded Mysql database from the mysql site.
    I downloaded JDBC driver for mysql from the same site.
    Can somebody please tell me which files(from the driver that I downloaded) have to be unzipped to jar files to be set in the class location?
    Any help is highly appreciated.
    Thanks
    Starting WithJ2EE

  • Sharing Portal database connection with JSP page

    Hi out there,
    I implemented a JSP page as a selection form to be integrated into Oracle Portal. This JSP page contains a 'dynamic' form which needs to send queries to the database also integrated in the Portal.
    For this I am currently using a JDBC connection but I would prefer to use the internal db connection of the Portal System.
    Explanation: The user has to log in to the Portal and after that can call the JSP form. To poulate some comboboxes within this form I need some data from the database and the user does have READING privileges on that database.
    Can anybody tell me how to use the user's login and password (or the established connection) to fetch the needed data from the database OTHER than with a jdbc connection?
    Thanx in advance!
    Cheers,
    Thomas

    sorry. not going to happen. you're running in a completely different environment when running Java on Portal. Portal is running in the database; your Java is running on the application server. your Java code must use JDBC to access any database resources, even if Portal related.
    it is essential that you implement a connection pool on the application server to optimize your database traffic. check out bitmechanic for a very good open source option.
    good luck,
    rich

  • Database connection to jsp page

    I have a data entry form in HTML and done validation in javascript.
    From that form the values entered by the user, is displayed on JSP page by method.
    <%=request.getParameter(" ")%
    MY problem is:
    i want that the values shown by the jsp page, is submitted or saved into database automatically, when i click submit button on the page.
    How can i do this.
    I have to use jdbc driver to make a connection for the database.
    plzz help me, as it is very urgent.
    my jsp page is as follow:
    <%@ page language="java" import="java.sql.*" %>
    <html>
    <head>
    <title></title>
    <body>
    <%
    try {
    //Load the jdbc driver
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    //Create a connection object
    Connection con=DriverManager.getConnection("jdbcdbc:jspsql","java","java");
    System.out.println("got connection");
    // Create a statement object and call its executeUpdate method to insert a record
    Statement s=con.createStatement();
    String sql = "INSERT INTO Gl_Mast VALUES ('1','ABHI','120','520')";
    s.executeUpdate(sql);
    // Step 4. Use the same Statement object to obtain a ResultSet object
    sql = "SELECT GL_CODE, GL_DESCR FROM Gl_Mast";
    ResultSet rs = s.executeQuery(sql);
    while (rs.next()) {
    out.println(rs.getString(1) + " " + rs.getString(2) + "<br>");
    rs.close();
    s.close();
    con.close();
    catch (ClassNotFoundException e1) {
    // JDBC driver class not found, print error message to the console
    System.out.println(e1.toString());
    catch (SQLException e2) {
    // Exception when executing java.sql related commands, print error message to the console
    System.out.println(e2.toString());
    catch (Exception e3) {
    // other unexpected exception, print error message to the console
    System.out.println(e3.toString());
    %>
    <form name="display" ACTION="" >
    <table width="100%" border="3">
    <tr>
    <TD COLSPAN=5><center><h3><b><i>GL MASTER INFORMATION</i></b></h3></center></TD>
    </TR>
    <tr>
    <th>Code No.</th>
    <th>Description</th>
    <th>Dr. Amount</th>
    <th>Cr. Amount</th>
    <th>Type</th>
    </tr>
    <tr>
    <td> <%=request.getParameter("code")%></td>
    <td> <%=request.getParameter("Description")%></td>
    <td> <%=request.getParameter("DrAmount")%></td>
    <td> <%=request.getParameter("CrAmount")%> </td>
    <td> <%=request.getParameter("type")%></td>
    </tr>
    </table>
    <p>
    <INPUT TYPE="submit" VALUE="SAVE" >
    <INPUT TYPE="button" VALUE="BACK" onClick="history.go(-1)">
    </body>
    </html>
    thanx..
    abhijit

    X POST

  • XSQL-007 Database connection error.

    I got following message when click sample heloworld.xsql:
    Oracle XSQL Servlet Page Processor 0.9.9.1 (Technology Preview)
    XSQL-007: Cannot acquire a database connection to process page.
    Invalid Oracle URL specified: OracleDriver.connect
    We're using RH Linux 6.1, Apache Tomcat 3.1 Beta and XSQL 0.9.9.1. The database connection string in XSQLConfig.xml is:
    <connection name="demo">
    <username>scott</username>
    <password>tiger</password>
    <dburl>jdbc:oracle:jdbc:@home:1521:home</dburl>
    <driver>oracle.jdbc.driver.OracleDriver</driver>
    </connection>
    null

    <dburl> as posted is incorrect.
    A sample that is correct for the JDBC thin
    driver is:
    <connection name="demo">
    <username>scott</username>
    <password>tiger</password>
    <dburl>jdbc:oracle:thin:@localhost:1521:xml</dburl>
    <driver>oracle.jdbc.driver.OracleDriver</driver>
    </connection>
    Note "jdbc:oracle:thin" and not "jdbc:oracle:jdbc"
    hope this helps.

  • XSQL-007: Database connection refused

    I am running Demos on JavaWebServer, IE 5.0, Oracle Lite database. When I am trying to access http://Computer:port/xsql/demo/helloworld.xsql
    it is giving me this error, any thoughts...
    XSQL-007: Cannot acquire a database connection to process page.
    Connection refused
    null

    Now my XSQLConfig.xml settings are:
    <connectiondefs dumpallowed="no">
    <connection name="demo">
    <username>SYSTEM</username>
    <password>234khan</password>
    <dburl>jdbc:Polite:POlite</dburl>
    <driver>oracle.lite.poljdbc.POLJDBCDriver</driver>
    </connection>
    <connection name="lite">
    <username>system</username>
    <password>manager</password>
    <dburl>jdbc:Polite:POlite</dburl>
    <driver>oracle.lite.poljdbc.POLJDBCDriver</driver>
    </connection>
    </connectiondefs>
    and I am getting this error:
    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/util/HashMap. Please report this to the administrator of the web server.
    java.lang.NoClassDefFoundError: java/util/HashMap at oracle.lite.poljdbc.OracleConnection.(Unknown Source) at oracle.lite.poljdbc.POLJDBCDriver.connect(Compiled Code) at java.sql.DriverManager.getConnection(Compiled Code) at java.sql.DriverManager.getConnection(DriverManager.java:126) at oracle.xml.xsql.XSQLConnectionPool.newConnection(XSQLConnectionPool.java:256) at oracle.xml.xsql.XSQLConnectionPool.(Compiled Code) at oracle.xml.xsql.XSQLConnectionManager.getPool(XSQLConnectionManager.java:270) at oracle.xml.xsql.XSQLConnectionManager.getPool(XSQLConnectionManager.java:250) at oracle.xml.xsql.XSQLConnectionManager.getConnection(XSQLConnectionManager.java:63) at oracle.xml.xsql.XSQLPageRequestImpl.setConnectionName(XSQLPageRequestImpl.java:189) at oracle.xml.xsql.XSQLPageProcessor.process(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(Compiled Code) at com.sun.server.ServletState.callService(Compiled Code) at com.sun.server.ServletManager.callServletService(Compiled Code) at com.sun.server.ProcessingState.invokeTargetServlet(Compiled Code) at com.sun.server.http.HttpProcessingState.execute(Compiled Code) at com.sun.server.http.stages.Runner.process(Compiled Code) at com.sun.server.ProcessingSupport.process(Compiled Code) at com.sun.server.Service.process(Compiled Code) at com.sun.server.http.HttpServiceHandler.handleRequest(Compiled Code) at com.sun.server.http.HttpServiceHandler.handleRequest(Compiled Code) at com.sun.server.HandlerThread.run(Compiled Code)
    I hope this would be the final step. Please reply thanks
    null

  • 9.0.4: XSQL-003/XSQL-007

    My colleague is creating XSQL/XSL pages to return query results from an XML Schema in the DB. I have some JSPs that provide front-end UIs for these queries. We devoloped this in 9.0.3.3 and it worked fine. She sent the XSQL files and I included them into my project and called them from a JSP. Everything worked fine. I was forced to upgrade to 9.0.4 due to a bug and now when I call her XSQL files I get a connection not found error like follows:
    Oracle XSQL Servlet Page Processor 9.0.3.0.0 (Production)
    XSQL-004: Could not acquire a database connection named: iidev
    XSQL-007: Cannot acquire a database connection to process page.
    The connection iidev exists and I use it in the JSP that calls this xsql. I tried creating a new connection and a basic XSQL page like this:
    <?xml version="1.0" encoding='windows-1252'?>
    <page xmlns:xsql="urn:oracle-xsql" connection="TestConnection">
    </page>
    Which throws the same error.

    If you don't have an XSQLConfig.xml file, then XSQL won't work, so you must have one. :-)
    JDeveloper will include one in your classpath at runtime automatically. It also manages to keep your XSQLConfig.xml up to date with your IDE's connections. However, here's probably what's happening.
    You upgraded from 9.0.3 to 9.0.4
    In 9.0.3, each time you defined a new database connection in the JDeveloper IDE, JDeveloper fixed up your XSQLconfig.xml file to match, so that there was a corresponding entry in the XSQLConfig.xml file for each connection you defined in the IDE.
    When you migrate, even if you migrated all your settings, we don't migrate the XSQLConfig.xml file, so you're basically starting with a "fresh" one, which only has a "demo" connection defined for scott/tiger.
    What I'd recommend is to:
    1. Look at the top of your XSQL pages, and find the connection="XXXX" attribute in the file. It will be on the root element of the document.
    2. You probably have a connection named XXXX under your Jdeveloper connections node.
    3. Delete that "XXXX" connection in JDeveloper, and recreate a new "XXXX" connnection with the same information.
    Doing this, JDeveloper will add the newly created "XXXX" connection to your XSQLConfig.xml file.
    Then, it should work.

Maybe you are looking for