-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Problem with german umlauts and DB2 universal driver
PostPosted: Tue Nov 14, 2006 6:06 am 
Beginner
Beginner

Joined: Mon Nov 13, 2006 9:43 am
Posts: 30
Hi hibernate gurus,

this issue is not only hibernate specific but as I use hibernate in my application I thought maybe someone had the same problem...


Environment

DB: DB2 7.x
Web-Server: Tomcat 5.x
Hibernate: 3.1.x
Struts+JSP

I have 2 problems:

1. In my application the special german characters(umlauts...) are not shown correctly when I'm using IBM jdbc driver(type 2). When I switch to jdbcodbc driver everything is correct. So is there any trick, some connection parameter, some property or something like this? Something like "setCharset" or "umlauts" or something? I could not find anything in web :-(

2. OK. We said that's a problem with driver, let's replace the driver. So I have now IBM jdbc driver type 4(db2jcc_license_cu.jar, db2jcc.jar).
They are in WEB-INF/lib, but tomcat can't find a driver!!! I'm getting

org.hibernate.connection.C3P0ConnectionProvider - JDBC Driver class not found: COM.ibm.db2.jcc.DB2Driver

I don't have that problem when I switch back to db2java.jar(replace db2jcc... files with it).

As I know for this driver(type 4) there is no need to have client installed on developers PC... It can't be also a known classpath problem as as I said both jars are in the application WEB-INF/lib directory...

I know that I'm doing something wrong but what???

Many thanks in advance,

Giorgi


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 14, 2006 9:53 am 
Beginner
Beginner

Joined: Mon Nov 13, 2006 9:43 am
Posts: 30
OK guys,
The problem is solved: only idiot could forget that java is case censitive :-)
this is incorrect:
COM.ibm.db2.jcc.DB2Driver
this is correct:
com.ibm.db2.jcc.DB2Driver


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.