PDA

View Full Version : [ubuntu] tomcat 6.0.20 netbeans connector/j



vatoer
February 6th, 2010, 12:52 PM
Dear all,
iam newbie in J2EE,
i just finished intallation with netbeans, tomcat 6.0.20, java-6-sun
i get this error in my tes App
OS ubuntu 9.10
javax.servlet.ServletException: javax.servlet.jsp.JspException: Unable to get connection, DataSource invalid: "org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Communications link failure

Last packet sent to the server was 0 ms ago.)"
org.apache.jasper.runtime.PageContextImpl.doHandle PageException(PageContextImpl.java:862)
org.apache.jasper.runtime.PageContextImpl.access$1 100(PageContextImpl.java:71)
......

i've search entire google but i still can't fix my problems, pls help..
i've found link
http://stackoverflow.com/questions/2172570/tomcat6-cant-connect-to-mysql-the-driver-has-not-received-any-packets-from-the

he say that it may because the tomcat from repo

is that true.. pls help me :((