Bonjour,

J'ai une classe ManagedBeanT.java qui contient une méthode pour se connecter à teradata, mais ça ne marche pas.
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
23
    private  Connection getConnection(String host, String user, String password) throws Exception {
            // Driver Teradata
            driver = "com.teradata.jdbc.TeraDriver";
            // URL de la connexion
            url = "jdbc:teradata://"+host+"/database=WTR_1,tmode=ANSI,charset=UTF8";
            try {
 
                Class.forName(driver);
                // On obtient la connexion
                connection = DriverManager.getConnection(url, user, password);
 
                logger.info("Connection obtenue");
                // On retourne la connexion
                return connection;
            } catch (SQLException e) {
                logger.warning("Incorrect Connection Data.");
                throw new TechnicalException("No-Connexion-Established-003");
            }
            catch (ClassNotFoundException e) {
                // logger).fatal("Inexistent or Incorrect Driver.");
                throw new Exception("Driver-Not-Exist-004");
            } 
        }
Erreur:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
javax.servlet.ServletException
    javax.faces.webapp.FacesServlet.service(FacesServlet.java:321)
Alors que j'ai bien rajouté
- tdgssconfig.jar
- terajdbc4.jar
dans le dossier WEB-INF/lib

Quelqu'un aurait-il une idée du problème ?

Merci d'avance pour votre aide