473,624 Members | 2,290 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Websphere DB2 Connection problem

We have the following configuration
DB2 8.1 fix Pack 2
Solaris 9
Websphere Portal server 5
JDK 1.4

While installing the product we are facing a problem which seems to be
related to Java connectivity with DB2 through Websphere portal.

/websphere/WebSphere/AppServer/java/bin/native2ascii
.../config/wpconfig.proper ti
es ../config/wpconfig_ascii. properties
Setting cfg.file.name.o riginal to wpconfig.proper ties
Setting cfg.file.name to wpconfig_ascii. properties
Buildfile: wpconfig.xml

validate-database-connection-wmm:
[echo] DbDriver == COM.ibm.db2.jdb c.app.DB2Driver
[echo] WmmDbUrl == jdbc:db2:wmmdb
[echo] WmmDbUser == db2inst1
[echo] DbLibrary == /websphere/database/abp/test/db2java.zip
[echo] WpsInstallLocat ion == /websphere/WebSphere/PortalServer
[java] Could not connect to database
[java] java.sql.SQLExc eption: No suitable driver

BUILD FAILED

/websphere/WebSphere/PortalServer/config/wpconfig.xml:14 4: Java
returned: 2
There is no problem when testing the database connection from a Java
program.
Thanks

Atul Agarwal
at*****@vsnl.co m
Nov 12 '05 #1
1 7646
"No suitable driver" means db2 can't find the place where the db2 shared
library, because you use app jdbc driver. There are two solutions:
(1). Use new jdbc driver - universal t4 jcc jdbc driver.
(2). If you still have to use app driver, you need to specify the
$DB2HOME/sqllib/lib in the library path.

"Atul Agarwal" <at*****@vsnl.c om> wrote in message
news:41******** *************** ***@posting.goo gle.com...
We have the following configuration
DB2 8.1 fix Pack 2bl
Solaris 9
Websphere Portal server 5
JDK 1.4

While installing the product we are facing a problem which seems to be
related to Java connectivity with DB2 through Websphere portal.

/websphere/WebSphere/AppServer/java/bin/native2ascii
../config/wpconfig.proper ti
es ../config/wpconfig_ascii. properties
Setting cfg.file.name.o riginal to wpconfig.proper ties
Setting cfg.file.name to wpconfig_ascii. properties
Buildfile: wpconfig.xml

validate-database-connection-wmm:
[echo] DbDriver == COM.ibm.db2.jdb c.app.DB2Driver
[echo] WmmDbUrl == jdbc:db2:wmmdb
[echo] WmmDbUser == db2inst1
[echo] DbLibrary == /websphere/database/abp/test/db2java.zip
[echo] WpsInstallLocat ion == /websphere/WebSphere/PortalServer
[java] Could not connect to database
[java] java.sql.SQLExc eption: No suitable driver

BUILD FAILED

/websphere/WebSphere/PortalServer/config/wpconfig.xml:14 4: Java
returned: 2
There is no problem when testing the database connection from a Java
program.
Thanks

Atul Agarwal
at*****@vsnl.co m

Nov 12 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1504
by: John Benson | last post by:
Thanks much for help with the Oracle db connection problem. That, plus some local assistance getting the sqlnet.ora default domain right, got everything fixed. Now I'm connected, and have been able to retrieve information from Oracle into my PC Python session. I seem to see a lot of advice asking people to google before submitting a problem to the list. This was nicely illustrated by the suggestion to google on the verbatim Oracle...
5
102527
by: SerGioGio | last post by:
Hello, I am going nuts. I am trying to connect to my local ORACLE instance using ODBC. It used to work few weeks ago, but it fails now. Connection with: - SQL*plus: connection works! - DataDirect 5.0 Oracle Wire protocol (3rd party ODBC driver): connection works when I hit the driver's "test connection"
17
9216
by: Danieltbt05 | last post by:
just installed SQL server 2000 and using my client , i can't locate the server. I used SQL query analyzer to search but no servers were found. Error message is as below Server : Msg17,level 16, state1 SQL server does not exist or denied access.
1
1731
by: Robert Jones | last post by:
I am trying to set up an ASP site on a Windows 2003 server and am having problems connecting to the database. To isolate the problem I created a simple ASP test page which simply created an ADO connection object, connected to the database and returned some results. When I ran the code as a VBS file it worked fine, but when I run it as an ASP page (obviously with slight adjustments such as replacing MsgBox with Response.Write etc) it...
5
23997
by: Suresh | last post by:
Hi Guys I have Db2 server installed on remote server. i am connecting to that remote server by using VPN. I want to connect that remote DB2 server instance using my local machine DB2 development client. Bur Its gives me following error message. I searched lots of things on net and tried on remote server but i didnt got suceess. Can any one tell me how to set TCP\IP
0
9372
by: nleesy | last post by:
Our web application running on WebSphere hits the following two exceptions randomly (once or twice a day) while opening connection to db2. Does anyone has idea about the cause of the exception. We are using connection pool to connect to db2. Database product name : DB2/AIX64 Database product version : SQL08025 JDBC driver name : IBM DB2 JDBC Universal Driver Architecture JDBC driver version : 2.9.31
2
1319
by: junal | last post by:
I developed an web application using ASP.NET. i used MS SQL DB 2000. it worked fine in my local host.Kept the backup of DB when i reinstalled my win XP. problem is i insstalled .NET2005 again like b4 n gave the same name of DB....i mean everything was same as b4.....but when i went to run my application it shows connection problem. why is that ?.....could anybody help me plz?
2
2623
by: dc | last post by:
I have a baffling connection problem from my C# console app to a sql server express database. The console application opens the sql database using the following code:- vDataSource = "server = " + vgSqlServer + "; " + "database = " + vgSqlServerDb + ";" + "uid = XXX; pwd = XXX; ";
1
5116
by: sherifbk | last post by:
Problem description ============== - I have 4 clients and 1 server (SQL server) - 3 clients are Monitoring console 1 client is operation console - Monitoring console collects some data from the control unit and store them into the Sql server - The operation console then retrieve this data from the sql for reporting and statistics purposes - I am using ODBC connection - The problem is that the operation console is not able to...
0
8177
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8681
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8629
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8488
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7170
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6112
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4084
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4183
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2611
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.