[opencms-dev] Error connection

Rafael Braza Polanco rafaelbrazapolanco at gmail.com
Fri Mar 23 17:28:15 CET 2012


How does OpenCms connect to a database? with sql taglib or java code?

El 22 de marzo de 2012 19:46, Rafael Braza Polanco <
rafaelbrazapolanco at gmail.com> escribió:

> Hello,
>
> I'm working with OpenCms 8.0.3 and MySQL. I'm trying to connect to a
> schema (database) called *test* using the *sql* taglib. This the code:
>
> ...
> <%@ taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql" %>
>
> *<sql:query
> dataSource="jdbc:mysqld://localhost:3306/test,com.mysql.jdbc.Driver,user,password"
> *
> *sql="SELECT * FROM test.cliente" var="datos" />*
> ...
>
> But the next SQLException appears:
>
> *Unable to get connection, DataSource invalid: "java.sql.SQLException: No
> suitable driver found for jdbc:mysqld://localhost:3306/test*
> *
> *
> Does somebody know the reason?
>
> Thank you.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20120323/29e73630/attachment.htm>


More information about the opencms-dev mailing list