Tomcat 4.0.6 503 error - Need help !

I am running jsp and servlets in tomcat 4.0.6 server..(commercial server)...

My application runs well in my pc.. but when i upload the webapps/xxx folder into mainwebsite_html folder in the server a 503 error with "the servlet jsp is currently unavailable"..constantly appears.. I asked for a restart and still same message appears.

My web.xml is posted here:

<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">

<web-app>

<display-name>UCanExport</display-name>

<description>UCanExport description page</description>

<taglib>

<taglib-uri>http://java.sun.com/jstl/sql</taglib-uri>

<taglib-location>/WEB-INF/sql.tld</taglib-location>

</taglib>

<taglib>

<taglib-uri>http://java.sun.com/jstl/core</taglib-uri>

<taglib-location>/WEB-INF/c.tld</taglib-location>

</taglib>

<resource-ref>

<description>MySQL Datasource</description>

<res-ref-name>jdbc/devDb</res-ref-name>

<res-type>javax.sql.DataSource</res-type>

<res-auth>Container</res-auth>

</resource-ref>

<resource-ref>

<description>Resource reference to a factory for javax.mail.Session</description>

<res-ref-name>mail/Session</res-ref-name>

<res-type>javax.mail.Session</res-type>

<res-auth>Container</res-auth>

</resource-ref>

</web-app>

I have a simple jsp page ..index.jsp.. just to verify..with the following code:

<%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" session="true" errorPage="genericError.jsp" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<% response.write("no problem with jsp");%>

</body>

</html>

The html pages load properly... I have a mysql database ..some background might also help.. Initially i developed the whole site in tomcat 5 and migrated it backwards to tomcat 4.0.6 to ensure compatibility with my commerical server...

Full error message: given by browser:

type Status report

message Servlet jsp is currently unavailable

description The requested service (Servlet jsp is currently unavailable) is not currently available.

--

My lib folder inside my WEB-INF has servlet.jar and other jar files..

Looking forward to get some help..

Thanks in advance

Arumugam

[2915 byte] By [tarumugama] at [2007-11-27 3:42:14]
# 1
You'll need to get access to the Tomcat logs to see the errors in there. Without those it will be impossible to determine what the problem is.
RichFearna at 2007-7-12 8:45:49 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

Thanks RichFearn

I checked the log files..this is what i found inside the error log files..

[Mon May 07 16:17:25 2007] [error] [client 24.224.220.177] Directory index forbidden by rule: /home/virtual/site91/fst/var/www/html/

[Mon May 07 16:18:50 2007] [error] [client 24.224.220.177] File does not exist: /home/virtual/site91/fst/var/www/html/etc

[Mon May 07 16:18:53 2007] [error] [client 24.224.220.177] Directory index forbidden by rule: /home/virtual/site91/fst/var/www/html/

[Mon May 07 16:39:22 2007] [error] [client 24.224.220.177] Directory index forbidden by rule: /home/virtual/site91/fst/var/www/html/

[Mon May 07 16:48:30 2007] [error] [client 24.224.220.177] Directory index forbidden by rule: /home/virtual/site91/fst/var/www/html/

[Mon May 07 16:52:28 2007] [error] [client 24.224.220.177] Directory index forbidden by rule: /home/virtual/site91/fst/var/www/html/

[Mon May 07 16:55:58 2007] [error] [client 24.224.220.177] File does not exist: /home/virtual/site91/fst/var/www/html/etc

Message was edited by:

tarumugam

tarumugama at 2007-7-12 8:45:49 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
That looks like an error log from the Apache web server. You need the Apache Tomcat logs.
RichFearna at 2007-7-12 8:45:49 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4

Unfortuntely, I dont have an access to the log files.. anyways.. after troubleshooting the error message is as follows:

type Exception report

message Internal Server Error

description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: This absolute uri (http://java.sun.com/jstl/sql) cannot be resolved in either web.xml or the jar files deployed with this application

at org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:194)

at org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:174)

at org.apache.jasper.compiler.JspParseEventListener.processTaglibDirective(JspParseEventListener.java:1170)

at org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEventListener.java:765)

at org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingListener.java:125)

at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:255)

at org.apache.jasper.compiler.Parser.parse(Parser.java:1145)

at org.apache.jasper.compiler.Parser.parse(Parser.java:1103)

at org.apache.jasper.compiler.Parser.parse(Parser.java:1099)

at org.apache.jasper.compiler.ParserController.parse(ParserController.java:214)

at org.apache.jasper.compiler.Compiler.compile(Compiler.java:210)

at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:548)

at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:176)

at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:188)

at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)

at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:683)

at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)

at org.apache.catalina.core.ApplicationDispatcher.access$100(ApplicationDispatcher.java:115)

at org.apache.catalina.core.ApplicationDispatcher$PrivilegedInclude.run(ApplicationDispatcher.java:146)

at java.security.AccessController.doPrivileged(Native Method)

at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)

at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:819)

at org.apache.jsp.loginpage$jsp._jspService(loginpage$jsp.java:69)

at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)

at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)

at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)

at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:98)

at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:176)

at java.security.AccessController.doPrivileged(Native Method)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:172)

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)

at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)

at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)

at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)

at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)

at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)

at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)

at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)

at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)

at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)

at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)

at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)

at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)

at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)

at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)

at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)

at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)

at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)

at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)

at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:458)

at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)

at java.lang.Thread.run(Thread.java:534)

I have ensured that that the uri parameter value

is same in web.xml lib files and in jsp files... i am using jstl 1.0 as this version is compatible with a older jstl and core files.

any sugggestions..

tarumugama at 2007-7-12 8:45:49 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5
do yo have sql.tld in the WEB-INF directory ?
java_2006a at 2007-7-12 8:45:49 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 6

I have both c.tld and sql.tld in WEB-INF directory as well as inside web-in//lib folder. Apart from this, i have the standard.jar and jstl.jar inside the lib folder.

The uri's match still I have this error. I have to say I initially developed the application in tomcat 5 and migrated backwards to 4.0.6 version due to compatibility with the commerical server. Anyways I have replaced the 1.1 taglib versions to 1.0.6 to ensure comaptibility with tc 4.0.6 version.

Anything to do with classpath of the server..?

tarumugama at 2007-7-12 8:45:49 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...