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
Similar Messages
-
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 -
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. -
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 HERBOLYSorry, I found a solution in My Oracle Support which will suffice.
Thank you very much
Miklos -
Problem in getting the database connection from a connection pool
Hai All,
I am facing a problem in getting the database connection from a connection pool created on weblogic server 8.1.
I am using the Oracle database 8.1.7.
I have configured my connection pool, datasource and JNDI in weblogic.
In my java program i have the following code to retrieve the connection.
import java.sql.*;
import java.util.Hashtable;
import javax.naming.Context;
import javax.naming.InitialContext;
class jdbcshp1 {
public static void main(String[] args) {
Connection connection = null;
try {
Hashtable ht = new Hashtable();
ht.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory"); // Wanna get rid of this.
ht.put(Context.PROVIDER_URL,"t3://localhost:7001"); // wanna get rid of this.
// Get a context for the JNDI look up
Context ctx = new InitialContext(ht);
javax.sql.DataSource ds = (javax.sql.DataSource) ctx.lookup ("myjndi1");
//Create a connection object
connection = ds.getConnection();
The above code is working fine but, the two ht.put statements are creating problem.
The problem is, after converting the application into WAR file it can be deployed
on any machine or different port on same machine. My application fails if its deployed on
weglogicserver which is at different port.
Is there any way that i can get rid of those ht.put statements or any other way to solve the problem.
any help is appreciated.
Thanks in advance
Pooja.Hai All,
Firstly, thanks for ur reply.
Even i have seen some code which uses context constructor with out any parameter and works fine.
i dont understand why its not working for my code.
When i remove those ht.put code and use context constructor with out any parameter, it giving an error.
Context ctx = new InitialContext();
javax.sql.DataSource ds = (javax.sql.DataSource) ctx.lookup ("ocjndi");
connection = ds.getConnection();The error is as follows:
javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
the above error is forcing me to include those code but if the port number is changed the code will not work. Plz let meknow if some setting have to be made.
I appreciate all ur valuable help.
Thanks once again.
Pooja. -
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
JKLooks 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?
PaulCan 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 connectionhi,
http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.htmlsee down for mysql config with tomcat -
JDeveloper problem setting up a database connection
I am having some problem setting up a connection to my database. Before I say any more let me explain what I need. I need 2 database connections 1 to a 10g R3 database and one to an 8.0.5.
I do realize that JDeveloper will only connect back to 8.1.7 because of the JDBC version that is installed with it.
What I really need to know is "Is it possible to define and use 2 different versions of JDBC" I really don't want to move back to the version that works with both because I am afraid of what performance/benefits I will lose from the latest and greatest.
The latest version that I can determine will work with 8.0.5 is the last version for 9i.
Any Ideas would be helpful.
The reason for this situation is that I have a production database that I will have to keep up with until the full version of the system is complete so that is why I even care about 8.0.5.
Thanks alot for your time,
ThomI have a similar problem and I would much appreciate any help in this matter.
I have a wireless network set at home with two computers connected to it:
My workstation called Home-ws and my laptop called Acer. I can access the d:\ drive of my workstation from my laptop without any problem.
On my workstation I installed the Oracle 10g product and on my laptop I installed Oracle SQL Developer. On SQL developer I am trying to create a connection to the Oracle server:
My settings are as below:
Connection name: orcl_system
User name: system
Password: ******
Host name: Home-ws
Port: 1521
SID: orcl
When I push test I am getting the following error message:
Status: Failure –Io exception: The Network Adapter could not establish the connection
Are there any special settings that should be made set up a wireless connection to my database?
Then I did the following things below:
1. I downloaded from oracle.com the instantclient-basic-win32-10.2.0.2-20060508.zip file and unzipped it in a folder called instantclient_10_2. There were a number of DLL and two jar files plus sqlplus.exe
2. I started sqlplus from that server
3. sqlplus failed with a similar error as sql developer.
4. I checked for tnsping. There is no tnsping such and exe on my laptop. I looks like I have to install the DLLs I downloaded them but there are no instructions about how to install them. Should I just copy them in system32 folder?
5. I looked for firewalls on my Home-ws workstation (where my oracle server is installed) and on my Acer laptop. The firewalls were activated. I added on exception called oracle for port 1521 on both computers and tried to connect again. I tried with both TCP and UDP options and it did not work in both cases.
I am out of ideas. Any help would be much appreciated.
Thank you in advance for your help.
Julian -
Problem in using javabean database connections file
Hi..I have a javabean file which contains some database connections.I would like to use this file in another javabean file. However, I got this 'cannot resolve symbol' error on the following line.The two javabean files i have here are sqlBean and TransactInfoBean which are contained in the same package.
<coding>
public class TransactInfoBean extends sqlBean {
</coding>Did you check the class path.
The folder containg the package shold be set to classpath.
If you send your total error messages , i can help you more.
Regards -
Problem in Setting up database connection
Hi,
When i try to create a new database connection on jdeveloper 9.0.3 and click on test connections i get this error:ORA-28030: Server encountered problems accessing LDAP directory service. Can anyone help me out of this problem.
Infact i copied a dbc file from the server and pasted it in the local directory dbc_files/secure/.Hi,
seems that your database is configured to perform Enterprise User Security (EUS) for which it needs to access LDAP. Check with your DB administrator if this is the case
Frank -
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 -
Problem with having several database connection registered in JDEVElOPER
Hi
Thank you for reading my post
I have several AS registered in my Jdeveloper environemtn and several database connections.
unfortunately some times Jdeveloper can not deploy an application into a server beacause it say that "I failed to create the connection pool", the project has no database stuff at all but Jdeveloper try to register and create connection pools for those connection that i hace registered in the Databse coonnection node.
It fails because in that particular server which i want to deploy the application i have not add all databases JDBC driver.
is there any solution for it?
thanksHi,
see Tools --> Preferences --> Deployment
Uncheck the "Bundle default data-sources.xml during deployment
Frank -
Extreme Problem - Cannot browse, or even connect.
Setup: Airport Extreme connected to Unwired (ISP) ADSL modem by ethernet cable. Local ISP (Australia) ramps down the speed to dial-up speed if monthly download (1GB) limit is exceeded - that is the situation now.
Problems: (1) I have an I-book that is "connected" to the airport, but the web browser (IE) cannot browse. I keep getting a "connection failure" message. Internet Connect shows a successful connection tot he wireless and to the internet.
(2)I also have a PC connected to the Airport by the ethernet cable and can browse OK (but slow). However, if I try to connect the PC by the wireless to the airport I get the message that Windows cannot make the connection.
The signal strength of the wirelss is very strong for both computers.
I have called the ISP (Unwired) to see if there is some sort of hardware control info they need. No, they say to put everything in automatic.
I have reset both the modem and the Airport's configuraqtion for maximum availability, and have left them off for a few minutes.
Thewre is WEP encryption, but I have included the passwords when necesary.
Any ideas?? Many thanks!gschelz, Welcome to the discussion area!
Sounds like your iBook is experiencing a DNS problem. See KB 106798, Mac OS: Troubleshooting "A connection failure has occurred", "The specified server could not be found" or Similar Messages. -
Setup problem with acquired ipad
When setting up a 16gb ipad I acquired from a former employee, I use my apple ID the same as for my iphone but it doesn't accept it and when selecting the "forgot password" option, I get the message Cannot Load iForgot. I'm stuck in setup right now.
I don't understand because the Apple ID is the same I use for my iPhone and earlier in the setup of the ipad, it appeared to recognize that and let me continue, but following software updates, this is no longer the case.Try clicking on Skip so that you can get past that screen. Run through the rest of the setup wizard. Then add your Apple ID to your iPad (App Store, Messages, iCloud, etc).
Hope this helps!
~Joe
Maybe you are looking for
-
TS4425 How can i do when the latest iCloud Terms & Condition does not pop up?
When I go to photo stream on my appletv, it says "unable to sign in The icloud terms of service have changed. For more info, go to http://www.apple.com/support/icloud". I have tried this resolution on my iphone and ipad already: On your iOS device, t
-
Can't move ANY documents or folders in the Finder!
Please help... I have 10.5.1, luckily, when logged in as myself as a user the computer operates normally, when logged in as my wife she (or I) cannot move any document or folder ANYWHERE not on the desktop, from a flash drive, from any folder... I ev
-
Does A2DP support in leopard mean A2DP driver for Vista on MBP?
Would love to have A2DP bluetooth support for my MBP, and I know it's coming next month. Also next month in leopard is the official release of Boot camp and therefore I should imagine a full bunch of windows drivers for the MBP. My question is, if th
-
Display technical names of restricted key figures
Hi everybody, In a query, I would like to display the technical names of restricted key figures instead of their description as a heading. Is that possible and how can I do this? Thank you for any help, regards, Kathrin!
-
Blocking of Material at Plant level
Hi Gurus, My requirement is to block the material at plant level i.e. to disallow any transaction for a material in a specific plant.. Is is possible in SAP and if yes ,then what are the steps to achieve this.