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

Similar Messages

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

  • Can I ? - XSQL dynamic database connection

    [raised this a couple of days ago on the 9iJDeveloper forum - but that's vanished]
    How do you write XSQL without knowledge of username and passwords.
    The physical user will be supplying their DbUser and DbPassword in a
    web login
    page and these are to be used throughout the web application.
    XSQL requires a connection alias. i.e. "demo"
    <page xmlns:xsql="urn:oracle-xsql" connection="demo" >
    <xsql:query max-rows="-1" null-indicator="no" row-element="USER"
    rowset-element="" tag-case="upper">
    select user from sys.dual
    </xsql:query>
    </page>
    But I need to set the username and password for "demo" in runtime.
    (Reason: Each database user has specific roles and limits on viewable
    information)
    Chris Wilson

    Not with the default implementation of oracle.xml.xsql.XSQLConnectionManager and oracle.xml.xsql.XSQLConnectionManagerFactory, however I've worked with customers who have written a custom XSQL Connection Manager to handle connections in any way that's appropriate for your application. Some have used Oracle8i OCI8 JDBC's proxy connection feature, others have implemented a custom strategy.
    The online documentation for XSQL (part of the doc for the XDK for Java on OTN that ships with the database documentation set) talks about the two interfaces above that your implementation must implement.

  • 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

  • XSQL - unable to connect to database

    I have installed the XSQL Servlet. I am trying to access an Oracle 8i database on a WinNT server (the client is on a WinNT workstation) using XSQL pages.
    The lines in the XSQLConfig.xml file are as follows:
    <connection name="testdb">
    <username>scott</username>
    <password>tiger</password>
    <dburl>jdbc:oracle:thin:@bert:1521:ORCL</dburl>
    <driver>oracle.jdbc.driver.OracleDriver</driver>
    where bert is the WinNT server that Oracle 8i is running on.
    My XSQL page is as follows:
    <?xml version="1.0"?>
    <xsql:query connection="testdb" xmlns:xsql="urn:testdb">
    SELECT *
    FROM emp
    </xsql:query>
    The error message I receive is
    XSQL-007: Cannot acquire a database connection to process page.
    Io exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=135286784)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4))))
    What is the problem here?
    Also, is there a document giving more detail on XSQL-007?
    Thanks,
    Madhu
    null

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Madhu Garlanka:
    Based on answers to other similar queries in this forum, I went ahead and plugged in different values of dburl, etc. in a JDBC sample program and now the connection error message has vanished.
    For the thin driver, I used
    <dburl>jdbc:oracle:thin:@bert:1521:xml</dburl>
    instead of
    <dburl>jdbc:oracle:thin:@bert:1521:ORCL</dburl>
    Madhu<HR></BLOCKQUOTE>
    null

  • 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

  • Problem in using XSQL-session and connecting database

    Hello
    Let me explain clearly. We have some data entry screens for which we want to use session with time out option. Normally in Servlet, we use to create a session with max age option. Then everytime the browser call the servlet we use to check for session.isnew(). If it is new session then we will forward the page to Relogin (because session is timed out) or we proced with further action.
    In XSQLServlet, how will do this. Do I have to create my own servlet extended from XSQLServlet ? Override the Service method and write about the session part and call
    super(). Here only I am getting confused. In servlet mapping we have given for every .XSQL call run the XSQLServlet. How will I override this ?
    And also we have problem with user id and password. We don't want to use the same id (system id as defined in XSQLConfig.xml) for every database connection. We want to define only the connection information like SID, Server, Port number. But user id and password should be dynamic. How can I achieve this ?
    Please help us on solving these problem. Thanks.
    Lakshmi
    null

    You'll need to implement your own classes that implement the:
    oracle.xml.xsql.XSQLConnectionManagerFactory
    and
    oracle.xml.xsql.XSQLConnectionManager
    to change the way XSQL handles connections. Using this mechanism, you should be able to implement any alternative connection scheme you choose.
    If you run into problems implementing these interfaces, give us a shout here in the forum.

  • Database: Listener refused the connection -please help

    middlegen:
    [middlegen] Database URL:jdbc:oracle:thin:@localhost:1521:PUSSDB
    BUILD FAILED
    C:\cvs-1-11-17\middlegen\samples\build.xml:232: middlegen.MiddlegenException: Couldn't connect to database: Listener refused the connection with the following error:
    ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
    The Connection descriptor used by the client was:
    localhost:1521:PUSSDB
    Total time: 8 seconds
    C:\cvs-1-11-17\middlegen\samples>

    Did you try a tnsping to see if it can provide name resolution? Can you connect to the database using the connect string service name such as sys@pussdb? These would indicate whether the database has been properly defined in your databse names resolution method (e.g. tnsnames).

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

  • XSQL Database connection error

    Cannot acquire a database connection to process page.
    Io exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=135290880)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4))))
    I use jdk1.2
    JRun
    Oracle 8i
    Does anyone have an idea. Thanks alot.

    Hello,
    Check the ORACLE_SID parameter in the connection. That is incorrect I believe. Make sure that your connection information is correct like port no., type of driver, hostname.
    HTH
    Prakash
    null

  • Database control shows java.lang.Exception: IOException in connect refuse

    Hi All,
    I need some help on this issue.
    I followed MOS Doc 259387.1 to reset dbsnmp password because its password is unknown.
    The error is
    Error
    java.lang.Exception: IOException in sending Request :: Connection refused
    Thanks in advance.
    leim

    Hi,
    Posting this error in metalink you could get nice directions...
    I have the same problem, and looks fixed now...
    Try review doc 420761.1
    And what I do, was:
    Stop dbconsole
    start dbconsole (fails)
    review logs generated and look this errors:
    $ORACLE_HOME/<hostname>_<instance_name>/sysman/log
    doing there a directory listing by date, "ls -ltr" the last file showed is the modified one, in my case was:
    rw-r--- 1 oracle oinstall 920007 Oct 27 19:33 emoms.log
    -rw-r----- 1 oracle oinstall 522694 Oct 27 19:34 emdb.nohup
    -rw-r----- 1 oracle oinstall 39130 Oct 27 19:38 emdctl.trc
    tail emdctl.trc
    2009-10-27 19:19:05 Thread-14236448 ERROR main: nmectl.c: nmectl_validateTZRegion, agentTZoffset =-360,and testTZoffset for -05:00:-300 do not match
    2009-10-27 19:19:05 Thread-1125024 WARN http: snmehl_connect: connect failed to (<hostname>:3938): Connection refused (error = 111)
    And tail emdb.nohup gives you the instructions to fix the first one, in my case, solving the TZRegion was enough.
    $ tail emdb.nohup
    ----- Tue Oct 27 19:19:05 2009::The agentTZRegion value in /oracle/product/102/db_1/dbserver.uadec.mx_siin/sysman/config/emd.properties is not in agreement with what agent thinks it should be.Please verify your environment to make sure that TZ setting has not changed since the last start of the agent.
    If you modified the timezone setting in the environment, please stop the agent and exectute 'emctl resetTZ agent' and also execute the script 'mgmt_target.set_agent_tzrgn' to get the value propagated to repository -----
    Hope this could help you.
    Regards
    Edited by: EnriqueGB on 27/10/2009 08:16 PM

  • 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

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

  • XSQL-007 and list of XSQL error codes.

    I have a situation where I need to replay a request if I cannot acquire a database connection, and to not replay a request otherwise. Is the XSQL-007 code the only code that deals with database connections?
    XSQL-007: Cannot acquire a database connection to process page.
    Do you have a published list of XSQL codes? Is there a method in java code to generate the full list of XSQL codes? For example to get a list of database error codes, one can in PL/SQL use:
    set serveroutput on size 2000
    begin
    for i in 1..9999 loop
    dbms_output.put_line ( sqlerrm(-i) ) ;
    end loop ;
    end ;
    Steve.

    There's not a way to loop through the errors in Java. Here's the list.
    XSQL-001: Cannot locate requested XSQL file. Check the name.
    XSQL-002: Cannot acquire database connection from pool: {0}
    XSQL-003: Failed to find 'XSQLConfig.xml' file in server CLASSPATH.
    XSQL-004: Could not acquire a database connection named: {0}
    XSQL-005: XSQL page is not well-formed.
    XSQL-006: XSLT stylesheet is not well-formed: {0}
    XSQL-007: Cannot acquire a database connection to process page.
    XSQL-008: Cannot find XSLT Stylesheet: {0}
    XSQL-009: Missing arguments on command line
    XSQL-010: Error creating: {0}\nUsing standard output.
    XSQL-011: Error processing XSLT stylesheet: {0}
    XSQL-012: Cannot Read XSQL Page
    XSQL-013: XSQL Page URI is null or has an invalid format.
    XSQL-014: Resulting page is an empty document or had multiple document elements.
    XSQL-015: Error inserting XML Document
    XSQL-016: Error parsing posted XML Document
    XSQL-017: Unexpected Error Occurred
    XSQL-018: Unexpected Error Occurred processing stylesheet {0}
    XSQL-019: Unexpected Error Occurred reading stylesheet {0}
    XSQL-020: XSQLConfig.xml file is not well-formed.
    XSQL-021: Serializer {0} is not defined in XSQLConfig.xml
    XSQL-022: Cannot load serializer class {0}
    XSQL-023: Class {0} is not an XSQL Serializer
    XSQL-024: Attempted to get response Writer after getting OutputStream
    XSQL-025: Attempted to get response OutputStream after getting Writer

  • XSQL-007 using Personal Oracle 8.1.6

    I get
    XSQL-007: Cannot acquire a database connection to process page.
    Io exception: The Network Adapter could not establish the connection
    message when running hello world demo.
    I have set up Oracle 8i on Windows 98, installed Oracle 8.1.6 for Windows 98, installed XSQL.
    Here is the tnsnames entry for the 8.1.6 database:
    TEST.GLOBAL =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = dcmli)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = test.global)
    I changed the word "demo" to "test" in helloworld.xsql and xsqlconfig.xml. xsqlconfig.xml now reads:
    <connection name="test">
    <username>scott</username>
    <password>tiger</password>
    <dburl>jdbc:oracle:thin:@localhost:1521:ORCL</dburl>
    <driver>oracle.jdbc.driver.OracleDriver</driver>
    </connection>
    null

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Steven Muench ([email protected]):
    Is your database SID the four upper-case letters 'ORCL' ?
    The demos are looking for a connection named "demo" (unless you edited the demo directories' XSQL files, too).
    Can you ping your "localhost" from a DOS box?<HR></BLOCKQUOTE>
    How do I check whether the SID is ORCL and if not, can I change it? I did a default database installation.
    When I look at the tnsnames.ora their is no mention of SID=ORCL - I don't know where to look or how to make the SID=ORCL. I added it after CONNECT_DATA =
    CONNECT_DATA =
    (SID=ORCL) <== added line
    following example of another database, restarted database, but it did no good. Another aspect I don't understand - I can start SQLPLUS without specifying a database, but if I specify test or test.global, which is in the tnsnames.ora, it does not work. So what connect string is it using when I don't provide one? When I look in the Oracle home for the database, it says ORACLE_SID=test, but neither test or test.global works as connect strings.
    I can ping local host.
    null

Maybe you are looking for

  • FCP shuts down when trying to import

    I recently upgraded from standard definition to high def by purchasing a sony HDR-FX7 video camera. i adjusted all my final cut pro presets in the audio/video preset menu in accordance with m owners manuel. however. now when i try to do log and captu

  • How can i delete a corrupted picture/movie?

    On my iPhone I have since quite a while a movie with 0 sec that is only shows with the dotted frame you usally get in iPhoto with photos that are not linked anymore. If I import photos from my iPhone to my mac I always get the message, that "movieABC

  • What are the differences between ESB 10g and OSB 10g

    Hi, I'm newbie to OSB 10g. I have installed OSB 10g. I came to know after Oracle acquired BEA, the ALSB is renamed as OSB. I'm curious to know what are the differences between ESB and OSB. If there are many differences, please post any links which pr

  • Since lightroom version 5.6 i couldn´t open lightroom from Zoner Photostudio

    I work with Zoner PhotoStudio 16 and open from zoner the pictures with lightroom. Now i´ve updated to lightroom 5.6 and i couldn´t open from zoner to lightroom.

  • Error while ODS activation

    Hi Every body,           I got this error while activation of data in an ODS. The data is avaliable in the New dta atable , but while activation it is giving the errors of Invalid characters and error when assigning SID. Can anyone help. Thnaks in ad