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
|