-->
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: Informix problem
PostPosted: Mon Mar 15, 2010 10:57 am 
Newbie

Joined: Mon Mar 15, 2010 10:45 am
Posts: 2
Hi all, I'm new to hibernate (and Java). I don't know is this the right place to ask - but maybe someone can help me sole one "tiny" problem :):)
The problem is - error in using informix JDBC on linux OS (Ubuntu) with hibernate and spring. From the application I'm trying to connect to remote server (in LAN) where informix is running. I get this error message "java.sql.SQLException: Unable to load locale categories." I've installed JDBC and added jars from lib to my project buildpath. Same setup on windows works fine, I receive no errors. Does anyone knows how to solve this?

Bernard


Top
 Profile  
 
 Post subject: Re: Informix problem
PostPosted: Tue Mar 16, 2010 3:45 am 
Newbie

Joined: Mon Mar 15, 2010 10:45 am
Posts: 2
Problem solved. If anyone needs to know how - it was something about local settings. Anyway all I needed to do was to add 2 parameters to URL string in my hibernate xml configuration - CLIENT_LOCALE and DB_LOCALE. Since the server has Croatian setup this is how URL is set:
Code:
<property name="url" value="jdbc:informix-sqli://192.168.0.14:9088/test:informixserver=ifmx_pi;CLIENT_LOCALE=hr_hr.8859-2;DB_LOCALE=hr_hr.8859-2" />


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.