Saltar al contenido

Configurar tomcat para mysql en ubuntu 9.10

diciembre 1, 2009

En ubuntu 9.10, igual que en versiones anteriores, igual que con muchos otros paquetes; tomcat funciona a medias. En una instalación limpia desde los repositorios, al tratar de conectar (tomcat) con una base de datos mysql se obtiene el siguiente error:

“Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.”

Para una solución rápida y no tener que googlear cuatro horas:

  • Editar /etc/init.d/tomcat6 como root y cambiar el valor de la variable TOMCAT_SECURITY  a “no”.
  • Reiniciar tomcat. (sudo /etc/init.d/tomcat6 restart ). Y listo.
6 comentarios dejar un →
  1. diciembre 2, 2009 11:52 pm

    mm simple y MUY UTIL

    muy buen consejo :)

  2. diciembre 7, 2009 4:01 am

    gracias llevaba 3 dias con el ese problema y esto me soluciono todo jaja buen aporte

  3. marzo 11, 2010 7:39 pm

    Thanks. Very good!!!

  4. lUIS fIERRO Enlace permanente
    mayo 27, 2010 4:47 pm

    GRACIAS DE VERDAD T AGRADEZCO NO PODIA SOLUCIONARLO

  5. octubre 25, 2010 6:06 pm

    Alguna forma de solucionarlo en windows’??

Trackbacks

  1. MySQL, Tomcat 6, and Ubuntu 9.10: Blah – aaron-kelley.net

Deja un comentario

Fill in your details below or click an icon to log in:

Logo de WordPress.com

You are commenting using your WordPress.com account. Log Out / Cambiar )

Twitter picture

You are commenting using your Twitter account. Log Out / Cambiar )

Facebook photo

You are commenting using your Facebook account. Log Out / Cambiar )

Connecting to %s

Seguir

Get every new post delivered to your Inbox.