users@glassfish.java.net

Glassfish + mysql + taglibs in portlets.

From: <glassfish_at_javadesktop.org>
Date: Tue, 03 Jul 2007 04:08:03 PDT

Hi all.
I'm using Glassfish + Open source portlet container + netbeans + netbeans portal framework to develop portlets.
I use mysql-connector library to do some simple queries, using jstl tags. Mysql jar file is bundled with my webapp. The problem is that when after deploying the project on my glassfish instance i couldn't connect to mysql. It seems that client libraries are not initialized.
the logs are saying:

javax.servlet.jsp.JspException: Unable to get connection, DataSource invalid: "java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost/db?user=root&password=root".

When i deploy war file on my WebSphere Server all works fine.

I appreciate any help.
Thanks in advance.
Alexey Grigoriev
[Message sent by forum member 'agrigoriev' (agrigoriev)]

http://forums.java.net/jive/thread.jspa?messageID=225020