dbTalk Databases Forums  

Tomcat Issue with DB2

comp.databases.ibm-db2 comp.databases.ibm-db2


Discuss Tomcat Issue with DB2 in the comp.databases.ibm-db2 forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Biswa
 
Posts: n/a

Default Tomcat Issue with DB2 - 10-04-2011 , 03:45 AM






Hi,
I am migrating my application from MSSQL to DB2. I had some issues
with JDBC/data type, but i was able to fix those issue except this
one.

When i run my web application, i can't update any record. using this
query.
update xyz set abc = '1' where pqr = '3'
I am using tomcat 5.0.28 and JDK 1.4.x

Where am I doing wrong. I am sure this is authentication issue. I am
using DB2ADMIN user. I can do all operations (select/insert/delete/
alter) using DB2 Admin console. but when i use tomcat/web apps, i can
only use select query.

Also, i have observed DB2 is very strict on data type while using
Prepared Statement.

So i can't do this
pstmt.setString (1, '2') if the data type of 1 is Int

Pls confirm if i am correct.

Any help is very much appreciated.

Thanks and best Regards,
Biswa.

Reply With Quote
  #2  
Old   
Lennart Jonsson
 
Posts: n/a

Default Re: Tomcat Issue with DB2 - 10-04-2011 , 06:21 AM






On 2011-10-04 10:45, Biswa wrote:
Quote:
Hi,
I am migrating my application from MSSQL to DB2. I had some issues
with JDBC/data type, but i was able to fix those issue except this
one.

When i run my web application, i can't update any record. using this
query.
update xyz set abc = '1' where pqr = '3'
I am using tomcat 5.0.28 and JDK 1.4.x

What SQL error message do you get?

[...]

/Lennart

Reply With Quote
  #3  
Old   
Biswa
 
Posts: n/a

Default Re: Tomcat Issue with DB2 - 10-07-2011 , 04:37 AM



Hi Lennart,
Thank you for your reply. Sorry I was not able to get back earlier. I
was dead busy, all is good now. Application successfully migrated and
running on DB2. It was merely an authentication issue.

Thank you for your attention.

Best Regards,
Biswa.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.