Bonjour à tous,
j'ai une base Informix et je déploi sur Weblogic 8.1. Quand je fais l'appel suivant:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
 
Session hibernateSession = HibernateUtil.getSessionFactory().getCurrentSession();
            tx = hibernateSession.beginTransaction();
j'ai une exception sur le beginTransaction:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
 
org.hibernate.exception.GenericJDBCException: Cannot open connection
voici mon hibernate.cfg.xml:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
 
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC
		"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
		"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
    <session-factory>
        <property name="hibernate.connection.driver_class">com.informix.jdbc.IfxDriver</property>
        <property name="hibernate.connection.password">monMotDePasse</property>
        <property name="hibernate.connection.url">jdbc:informix-sqli://MonServeur:60000/MaBase:INFORMIXSERVER=MonServeurBase</property>
        <property name="hibernate.connection.username">MonUserName</property>
        <property name="hibernate.dialect">org.hibernate.dialect.InformixDialect</property>
		<property name="hibernate.connection.pool_size">1</property>
		<property name="hibernate.current_session_context_class">thread</property>
		<property name="hibernate.cache.provider_class">org.hibernate.cache.NoCacheProvider</property>
		<property name="hibernate.show_sql">true</property>
 
	    <mapping resource="1.hbm.xml"/>
	    <mapping resource="2.hbm.xml"/>
	    <mapping resource="3.hbm.xml"/>
    </session-factory>
</hibernate-configuration>
Si quelqu'un a une idée, merci.