Buenas,
tengo una pagina web que funcionaba correctamente pero hace un dia que al intentar acceder me da una serie de errores. Si voy a la dirección web, en lugar de salirme la pagina principal me sale esto:
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Estado HTTP 500 -
type Informe de Excepción
mensaje
descripción El servidor encontró un error interno () que hizo que no pudiera rellenar este requerimiento.
excepción
javax.servlet.ServletException: Server connection failure during transaction. Due to underlying exception: 'java.net.SocketException: java.net.ConnectException: Connection refused'.
** BEGIN NESTED EXCEPTION **
java.net.SocketException
MESSAGE: java.net.ConnectException: Connection refused
STACKTRACE:
java.net.SocketException: java.net.ConnectException: Connection refused
at com.mysql.jdbc.StandardSocketFactory.connect(Stand ardSocketFactory.java:156)
at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:284)
at com.mysql.jdbc.Connection.createNewIO(Connection.j ava:2680)
at java.lang.Thread.run(Thread.java:534)
etc...
** END NESTED EXCEPTION **
Attempted reconnect 3 times. Giving up.
org.apache.jasper.runtime.PageContextImpl.doHandle PageException(PageContextImpl.java:825)
org.apache.jasper.runtime.PageContextImpl.handlePa geException(PageContextImpl.java:758)
org.apache.jsp.contingut_jsp._jspService(contingut _jsp.java:459)
org.apache.jasper.runtime.HttpJspBase.service(Http JspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet .java:802)
org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:324)
org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet .java:802)
causa raíz
java.sql.SQLException: Server connection failure during transaction. Due to underlying exception: 'java.net.SocketException: java.net.ConnectException: Connection refused'.
** BEGIN NESTED EXCEPTION **
java.net.SocketException
MESSAGE: java.net.ConnectException: Connection refused
STACKTRACE:
java.net.SocketException: java.net.ConnectException: Connection refused
at com.mysql.jdbc.StandardSocketFactory.connect(Stand ardSocketFactory.java:156)
at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:284)
etc...
at java.lang.Thread.run(Thread.java:534)
** END NESTED EXCEPTION **
Attempted reconnect 3 times. Giving up.
com.mysql.jdbc.Connection.createNewIO(Connection.j ava:2749)
com.mysql.jdbc.Connection.<init>(Connection.java:1 485)
com.mysql.jdbc.NonRegisteringDriver.connect(NonReg isteringDriver.java:266)
java.sql.DriverManager.getConnection(DriverManager .java:512)
java.sql.DriverManager.getConnection(DriverManager .java:171)
org.apache.jsp.contingut_jsp._jspService(contingut _jsp.java:93)
org.apache.jasper.runtime.HttpJspBase.service(Http JspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet .java:802)
org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:324)
org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet .java:802)
nota La traza completa de la causa de este error se encuentra en los archivos de diario de Apache Tomcat/5.0.28.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Entonces tengo un servidor linux, al intentar rearrancar el servicio httpd me da un error:
"syntax error on line 200 of /etc/httpd/conf/httpd.conf. Cannot load /etc/httpd/modules/mod_jk.so into server: /etc/httpd/modules/mod_jk.so: undefined symbol: ap_null_cleanup"
Al mirar los logs, salen estas lineas, mas o menos:
Error connecting to tomcat
tomcat is probably not started or is listening on the wrong port worker0ajp12 failed errno=104
[jk_ajp_common.c(1250)] ERROR receiving from tomcat failed recoverable operation. err=0
sending request to tomcat failed in send loop
Entonces me fui a init.d e intente reiniciar el servicio tomcat (TOMCAT) pero poner tomcat restart me salia un error que me ponia que este comando no existe.....
Ya no se que hacer, por favor teneis alguna idea......es bastante crítico
Gracias por adelantado