473,386 Members | 1,652 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Troubles using DB2, Websphere 3.5 and Java

Hello partners.
I have some troubles trying to connect to a remote database from a Java Class.

I`m using the following code:

Expand|Select|Wrap|Line Numbers
  1. String DRIVER = "COM.ibm.db2.jdbc.app.DB2Driver";
  2.  
  3. String URL = "jdbc:db2://200.33.154.10:50200/BAFBP001";
  4.  
  5.    try
  6.    {
  7.       Class.forName(DRIVER);
  8.        }
  9.  
  10.    catch(Exception ex)
  11.    {
  12.       System.out.println("Error");
  13.    }
  14. //more code
  15. .
  16. .
  17.      Connection con = DriverManager.getConnection(URL,"dbjj","dbjjk002");
  18.  
  19. //more code
  20.  
The problem is that the program can find the driver, but in the moment that tries to find the DB, I got a SQL exception: "No suitable Driver"

The driver used is DB2Java.zip. I tried with db2jcc.jar and the license driver and it worked perfectly in my local host and local server, but I found that those drivers are not compatible with the JDK 1.2, used by the Websphere 3.5, and I got the horrible "Major minor exception". The big deal is that I need to make it work on that old Websphere.

The weird thing that I found is that when I try to contact the Database using Eclipse or my DB2 Client, I can do it without any problems, using the same IP, Port and DataBase name.

I hope I explain myself well. If any of you have some suggests or solutions, are well received. Or if you have an old DB2 driver for jdk 1.2, you will save my life.

Thank you all.
Jun 22 '07 #1
0 1243

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: atlantis | last post by:
Hi, I have a very strange problem with xsl:import when usig RELATIVE path on AIX 5.2 server. I have two XSL files in the same directory: "ists_xslt3.xsl" and "ists_xslt3_layout.xsl". This...
1
by: Atul Agarwal | last post by:
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...
2
by: PM \(pm3iinc-nospam\) | last post by:
db2 v8 fp2-fp4 Problem : Deploying DB2 Web Tools on WebSphere application servers ... ws 5.0 XMLConfig.bat has been replaced by wsadmin. doc provided for : on WebSphere 4.0 Prerequisites
0
by: John | last post by:
We are doing integration with an AS400 running websphere - webservices. When the customer (AS400) calls the .Net webservice the customers java code (every other request or so) throws the following...
3
by: s.satoko | last post by:
My IT dept person is comparing Web Sphere and MS Share Point to decide which one to imply. So far we have found 1 of good and bad on each: Web Sphere : support multi languages, but no programmer...
0
by: luckystarduke | last post by:
Location:Chicago or MN Duration:- 6 months The WebSphere Portal Server administration position requires a great deal of flexibility, both in background and in skill set. Though some tasks...
2
by: mahesh.mohan1 | last post by:
Hi All, I am trying to deploy one of the portal applications on websphere 6.1. During the course of deployment, I get the following error: EJPPC0005E: portlet.xml validation caught a...
2
by: sridevigummadi | last post by:
Hi I get the following error when i access my application from websphere. com.ibm.db2.jcc.b.SqlException: Invalid operation: result set closed at com.ibm.db2.jcc.b.ad.lb(ad.java(Compiled...
0
by: herbman | last post by:
Ciao guys, I am working with WebSphere 5.1 (and soon with 6.0) and DB2 8.x on z/ OS. And here is my problem. I have a Stored Procedure (now SQL but if needed could also be Java) running on DB2....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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,...

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.